mirror of
https://github.com/reactos/reactos.git
synced 2025-01-10 16:18:16 +00:00
[CMAKE]: Start working on ntdll.
svn path=/branches/cmake-bringup/; revision=48430
This commit is contained in:
parent
f0a4bf29e6
commit
3fff31cd81
2 changed files with 11 additions and 14 deletions
|
@ -1,16 +1,14 @@
|
||||||
|
add_definitions(-D__NTDLL__)
|
||||||
|
add_definitions(-D_NTOSKRNL_)
|
||||||
|
add_definitions(-DCRTDLL)
|
||||||
|
|
||||||
ADD_CUSTOM_COMMAND(
|
file(GLOB_RECURSE SOURCE *.c)
|
||||||
OUTPUT ${REACTOS_BINARY_DIR}/dll/ntdll/ntsys.a
|
list(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/ldr/elf.c ${CMAKE_CURRENT_SOURCE_DIR}/dispatch/dispatch.c)
|
||||||
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
|
list(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/dispatch/amd64/stubs.c)
|
||||||
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)
|
file(GLOB_RECURSE ARCH_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/dispatch/${ARCH}/*.c" "${CMAKE_CURRENT_SOURCE_DIR}/dispatch/${ARCH}/*.s")
|
||||||
|
|
||||||
ADD_CUSTOM_TARGET(ntsys ALL DEPENDS ${REACTOS_BINARY_DIR}/dll/ntdll/ntsys.a)
|
add_library(ntdll SHARED ${ARCH_SOURCE} ${SOURCE})
|
||||||
add_dependencies(ntsys ntsys_pspec)
|
|
||||||
|
target_link_libraries(ntdll rtl ntdllsys libcntpr pseh debugsup_ntdll)
|
||||||
|
add_dependencies(ntdll ntstatus version)
|
|
@ -7,7 +7,6 @@ if(CMAKE_CROSSCOMPILING)
|
||||||
|
|
||||||
add_subdirectory(3rdparty)
|
add_subdirectory(3rdparty)
|
||||||
add_subdirectory(atl)
|
add_subdirectory(atl)
|
||||||
add_subdirectory(debugsup)
|
|
||||||
add_subdirectory(dnslib)
|
add_subdirectory(dnslib)
|
||||||
add_subdirectory(drivers)
|
add_subdirectory(drivers)
|
||||||
add_subdirectory(epsapi)
|
add_subdirectory(epsapi)
|
||||||
|
|
Loading…
Reference in a new issue