- Add debugsup lib to build.

svn path=/branches/cmake-bringup/; revision=48348
This commit is contained in:
Amine Khaldi 2010-07-29 01:53:31 +00:00
parent a1fc7877ea
commit 007ecbd4c1
2 changed files with 16 additions and 0 deletions

View 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)

View file

@ -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)