From 5ef41e4848536af77623a38ce4f313dee9782ad0 Mon Sep 17 00:00:00 2001 From: Sir Richard Date: Wed, 4 Aug 2010 07:52:21 +0000 Subject: [PATCH] [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 --- dll/ntdll/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dll/ntdll/CMakeLists.txt b/dll/ntdll/CMakeLists.txt index 8743951af0a..4432df0db0e 100644 --- a/dll/ntdll/CMakeLists.txt +++ b/dll/ntdll/CMakeLists.txt @@ -1,9 +1,11 @@ + +SET(CMAKE_C_CREATE_SHARED_LIBRARY + " -Wl,--enable-stdcall-fixup -Wl,--kill-at -o ${CMAKE_CURRENT_SOURCE_DIR}/def/ntdll.def ") + 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) \ No newline at end of file