mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 02:13:29 +00:00
[CMAKE]
- Add ntsys to build. svn path=/branches/cmake-bringup/; revision=48342
This commit is contained in:
parent
666ab7d918
commit
cf9ff97d22
|
@ -16,7 +16,7 @@ include_directories(./include/reactos/wine)
|
|||
add_subdirectory(tools)
|
||||
add_subdirectory(lib)
|
||||
|
||||
export(TARGETS widl wmc nci FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
|
||||
export(TARGETS widl winebuild wmc nci FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
|
||||
|
||||
else()
|
||||
|
||||
|
@ -68,6 +68,7 @@ add_subdirectory(include/psdk)
|
|||
add_subdirectory(include/dxsdk)
|
||||
add_subdirectory(include/reactos/mc)
|
||||
|
||||
add_subdirectory(dll)
|
||||
add_subdirectory(lib)
|
||||
|
||||
# nci generated intermediate files
|
||||
|
@ -103,6 +104,7 @@ SET_SOURCE_FILES_PROPERTIES(${nci_output} PROPERTIES GENERATED TRUE)
|
|||
|
||||
ADD_CUSTOM_TARGET(ntdll_S ALL DEPENDS ${REACTOS_BINARY_DIR}/lib/ntdllsys/ntdll.S)
|
||||
ADD_CUSTOM_TARGET(win32k_S ALL DEPENDS ${REACTOS_BINARY_DIR}/lib/win32ksys/win32k.S)
|
||||
ADD_CUSTOM_TARGET(ntsys_pspec ALL DEPENDS ${REACTOS_BINARY_DIR}/dll/ntdll/def/ntsys.pspec)
|
||||
|
||||
endif()
|
||||
|
||||
|
|
2
dll/CMakeLists.txt
Normal file
2
dll/CMakeLists.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
|
||||
add_subdirectory(ntdll)
|
16
dll/ntdll/CMakeLists.txt
Normal file
16
dll/ntdll/CMakeLists.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${REACTOS_BINARY_DIR}/dll/ntdll/ntsys.a
|
||||
COMMAND ${MINGW_PREFIX}gcc ${CMAKE_C_FLAGS} -xc -E ${REACTOS_BINARY_DIR}/dll/ntdll/def/ntsys.pspec > ${REACTOS_BINARY_DIR}/dll/ntdll/def/ntsys_ntsys.spec
|
||||
COMMAND native-winebuild -o ${REACTOS_BINARY_DIR}/dll/ntdll/def/ntsys_ntsys.stubs.c --pedll ${REACTOS_BINARY_DIR}/dll/ntdll/def/ntsys_ntsys.spec --filename ntdll.dll
|
||||
COMMAND ${MINGW_PREFIX}gcc -o ${REACTOS_BINARY_DIR}/dll/ntdll/def/ntsys_ntsys.stubs.o ${CMAKE_C_FLAGS} -c ${REACTOS_BINARY_DIR}/dll/ntdll/def/ntsys_ntsys.stubs.c
|
||||
COMMAND native-winebuild -o ${REACTOS_BINARY_DIR}/dll/ntdll/def/ntsys_ntsys.auto.def --def -E ${REACTOS_BINARY_DIR}/dll/ntdll/def/ntsys_ntsys.spec --filename ntdll.dll
|
||||
COMMAND ${MINGW_PREFIX}dlltool --def ${REACTOS_BINARY_DIR}/dll/ntdll/def/ntsys_ntsys.auto.def --kill-at --output-lib ${REACTOS_BINARY_DIR}/dll/ntdll/ntsys.a
|
||||
COMMAND ${MINGW_PREFIX}ar -rc ${REACTOS_BINARY_DIR}/dll/ntdll/ntsys.a ${REACTOS_BINARY_DIR}/dll/ntdll/def/ntsys_ntsys.stubs.o
|
||||
DEPENDS native-winebuild
|
||||
)
|
||||
|
||||
SET_SOURCE_FILES_PROPERTIES(${REACTOS_BINARY_DIR}/dll/ntdll/ntsys.a PROPERTIES GENERATED TRUE)
|
||||
|
||||
ADD_CUSTOM_TARGET(ntsys ALL DEPENDS ${REACTOS_BINARY_DIR}/dll/ntdll/ntsys.a)
|
||||
add_dependencies(ntsys ntsys_pspec)
|
Loading…
Reference in a new issue