Author: sir_richard
Date: Wed Aug 4 07:52:21 2010
New Revision: 48449
URL:
http://svn.reactos.org/svn/reactos?rev=48449&view=rev
Log:
[CMAKE]: Closer to a valid NTDLL. Resources and exports are compiled in now.
[CMAKE]: WIP: CMAKE_C_CREATE_SHARED_LIBRARY breakdown + top-level.
Modified:
branches/cmake-bringup/dll/ntdll/CMakeLists.txt
Modified: branches/cmake-bringup/dll/ntdll/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/ntdll/CMakeLi…
==============================================================================
--- branches/cmake-bringup/dll/ntdll/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/ntdll/CMakeLists.txt [iso-8859-1] Wed Aug 4 07:52:21 2010
@@ -1,8 +1,10 @@
+
+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 @@
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)