mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 02:13:29 +00:00
[CMAKE]
- Add activeds, advpack and authz to build. svn path=/branches/cmake-bringup/; revision=48587
This commit is contained in:
parent
a2fdd97426
commit
bdc1e57c6f
|
@ -1,7 +1,10 @@
|
|||
|
||||
add_subdirectory(acledit)
|
||||
add_subdirectory(aclui)
|
||||
add_subdirectory(activeds)
|
||||
add_subdirectory(advapi32)
|
||||
add_subdirectory(advpack)
|
||||
add_subdirectory(authz)
|
||||
add_subdirectory(gdi32)
|
||||
add_subdirectory(kernel32)
|
||||
add_subdirectory(msvcrt)
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
add_definitions(-DUNICODE -D_UNICODE)
|
||||
add_definitions(-DSUPPORT_UXTHEME)
|
||||
|
||||
file(GLOB_RECURSE SOURCE *.c)
|
||||
|
||||
|
|
19
dll/win32/activeds/CMakeLists.txt
Normal file
19
dll/win32/activeds/CMakeLists.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
|
||||
|
||||
add_definitions(-D__WINESRC__)
|
||||
|
||||
include_directories(${REACTOS_BINARY_DIR}/include/reactos/wine)
|
||||
|
||||
spec2def(activeds ${CMAKE_CURRENT_SOURCE_DIR}/activeds.spec ${CMAKE_CURRENT_BINARY_DIR}/activeds.def)
|
||||
|
||||
add_library(activeds SHARED activeds_main.c)
|
||||
|
||||
set_target_properties(activeds PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
||||
|
||||
target_link_libraries(activeds
|
||||
${CMAKE_CURRENT_BINARY_DIR}/activeds.def
|
||||
wine
|
||||
mingw_common)
|
||||
|
||||
add_dependencies(activeds activeds_def psdk)
|
25
dll/win32/advpack/CMakeLists.txt
Normal file
25
dll/win32/advpack/CMakeLists.txt
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
|
||||
|
||||
add_definitions(-D__WINESRC__)
|
||||
|
||||
include_directories(${REACTOS_BINARY_DIR}/include/reactos/wine)
|
||||
|
||||
file(GLOB_RECURSE SOURCE *.c)
|
||||
|
||||
spec2def(advpack ${CMAKE_CURRENT_SOURCE_DIR}/advpack.spec ${CMAKE_CURRENT_BINARY_DIR}/advpack.def)
|
||||
|
||||
add_library(advpack SHARED ${SOURCE})
|
||||
|
||||
set_target_properties(advpack PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
||||
|
||||
target_link_libraries(advpack
|
||||
${CMAKE_CURRENT_BINARY_DIR}/advpack.def
|
||||
wine
|
||||
mingw_common
|
||||
-lole32
|
||||
-lsetupapi
|
||||
-lversion
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/advapi32/libadvapi32.a)
|
||||
|
||||
add_dependencies(advpack advpack_def psdk)
|
24
dll/win32/authz/CMakeLists.txt
Normal file
24
dll/win32/authz/CMakeLists.txt
Normal file
|
@ -0,0 +1,24 @@
|
|||
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
add_definitions(-DUNICODE -D_UNICODE)
|
||||
|
||||
file(GLOB_RECURSE SOURCE *.c)
|
||||
|
||||
spec2def(authz ${CMAKE_CURRENT_SOURCE_DIR}/authz.spec ${CMAKE_CURRENT_BINARY_DIR}/authz.def)
|
||||
|
||||
add_library(authz SHARED
|
||||
${SOURCE}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/authz.rc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/authz_precomp.h.gch)
|
||||
|
||||
set_target_properties(authz PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
||||
|
||||
target_link_libraries(authz
|
||||
${CMAKE_CURRENT_BINARY_DIR}/authz.def
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/advapi32/libadvapi32.a
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/kernel32/libkernel32.a
|
||||
${REACTOS_SOURCE_DIR}/dll/ntdll/libntdll.a)
|
||||
|
||||
add_pch(authz ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
||||
add_dependencies(authz authz_def psdk)
|
Loading…
Reference in a new issue