mirror of
https://github.com/reactos/reactos.git
synced 2025-01-10 08:10:18 +00:00
[CMAKE]
- Add debugsup lib to build. svn path=/branches/cmake-bringup/; revision=48348
This commit is contained in:
parent
a1fc7877ea
commit
007ecbd4c1
2 changed files with 16 additions and 0 deletions
|
@ -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)
|
||||
|
|
15
lib/debugsup/CMakeLists.txt
Normal file
15
lib/debugsup/CMakeLists.txt
Normal 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)
|
||||
|
Loading…
Reference in a new issue