[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 29 Jul 2010 01:53:31 +0000 (01:53 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 29 Jul 2010 01:53:31 +0000 (01:53 +0000)
- Add debugsup lib to build.

svn path=/branches/cmake-bringup/; revision=48348

lib/CMakeLists.txt
lib/debugsup/CMakeLists.txt [new file with mode: 0644]

index 5777534..ffcbb92 100644 (file)
@@ -7,6 +7,7 @@ if(CMAKE_CROSSCOMPILING)
 
 add_subdirectory(3rdparty)
 add_subdirectory(atl)
+add_subdirectory(debugsup)
 add_subdirectory(dnslib)
 add_subdirectory(drivers)
 add_subdirectory(epsapi)
diff --git a/lib/debugsup/CMakeLists.txt b/lib/debugsup/CMakeLists.txt
new file mode 100644 (file)
index 0000000..3b23b2b
--- /dev/null
@@ -0,0 +1,15 @@
+
+ADD_CUSTOM_COMMAND(
+  OUTPUT ${REACTOS_BINARY_DIR}/lib/debugsup/debugsup_ntdll.a
+  COMMAND native-winebuild -o ${REACTOS_BINARY_DIR}/lib/debugsup/debugsup-ntos_debugsup_ntdll.stubs.c --pedll ${REACTOS_SOURCE_DIR}/lib/debugsup/debugsup-ntos.spec --filename ntdll.dll
+  COMMAND ${MINGW_PREFIX}gcc -o ${REACTOS_BINARY_DIR}/lib/debugsup/debugsup-ntos_debugsup_ntdll.stubs.o ${CMAKE_C_FLAGS} -c ${REACTOS_BINARY_DIR}/lib/debugsup/debugsup-ntos_debugsup_ntdll.stubs.c
+  COMMAND native-winebuild -o ${REACTOS_BINARY_DIR}/lib/debugsup/debugsup-ntos_debugsup_ntdll.auto.def --def -E ${REACTOS_SOURCE_DIR}/lib/debugsup/debugsup-ntos.spec --filename ntdll.dll
+  COMMAND ${MINGW_PREFIX}dlltool --def ${REACTOS_BINARY_DIR}/lib/debugsup/debugsup-ntos_debugsup_ntdll.auto.def --kill-at --output-lib ${REACTOS_BINARY_DIR}/lib/debugsup/debugsup_ntdll.a
+  COMMAND ${MINGW_PREFIX}ar -rc ${REACTOS_BINARY_DIR}/lib/debugsup/debugsup_ntdll.a ${REACTOS_BINARY_DIR}/lib/debugsup/debugsup-ntos_debugsup_ntdll.stubs.o
+  DEPENDS native-winebuild
+)
+
+SET_SOURCE_FILES_PROPERTIES(${REACTOS_BINARY_DIR}/lib/debugsup/debugsup_ntdll.a PROPERTIES GENERATED TRUE)
+
+ADD_CUSTOM_TARGET(debugsup_ntdll ALL DEPENDS ${REACTOS_BINARY_DIR}/lib/debugsup/debugsup_ntdll.a)
+