mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 02:13:29 +00:00
[CMAKE]: Closer to a valid NTDLL. Resources and exports are compiled in now.
[CMAKE]: WIP: CMAKE_C_CREATE_SHARED_LIBRARY breakdown + top-level. svn path=/branches/cmake-bringup/; revision=48449
This commit is contained in:
parent
807b0907d5
commit
5ef41e4848
|
@ -1,9 +1,11 @@
|
|||
|
||||
SET(CMAKE_C_CREATE_SHARED_LIBRARY
|
||||
"<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -Wl,--enable-stdcall-fixup -Wl,--kill-at -o <TARGET> <OBJECTS> ${CMAKE_CURRENT_SOURCE_DIR}/def/ntdll.def <LINK_LIBRARIES>")
|
||||
|
||||
add_definitions(-D__NTDLL__)
|
||||
add_definitions(-D_NTOSKRNL_)
|
||||
add_definitions(-DCRTDLL)
|
||||
|
||||
SET(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE 1)
|
||||
|
||||
include_directories(BEFORE ./include)
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
|
||||
|
||||
|
@ -13,7 +15,7 @@ list(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/dispatch/amd64/stubs.c)
|
|||
|
||||
file(GLOB_RECURSE ARCH_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/dispatch/${ARCH}/*.c" "${CMAKE_CURRENT_SOURCE_DIR}/dispatch/${ARCH}/*.s")
|
||||
|
||||
add_library(ntdll SHARED ${ARCH_SOURCE} ${SOURCE})
|
||||
add_library(ntdll SHARED ${ARCH_SOURCE} ${SOURCE} ${CMAKE_CURRENT_SOURCE_DIR}/def/ntdll.rc)
|
||||
|
||||
target_link_libraries(ntdll rtl ntdllsys libcntpr pseh)
|
||||
add_dependencies(ntdll ntstatus version)
|
Loading…
Reference in a new issue