mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 02:13:29 +00:00
[CMAKE]
- Add dciman32, dhcpcsvc, dnsapi, dwmapi and faultrep to build. svn path=/branches/cmake-bringup/; revision=48599
This commit is contained in:
parent
5ff40b3f5c
commit
62c4ea8ac6
|
@ -18,6 +18,11 @@ add_subdirectory(crtdll)
|
|||
add_subdirectory(crypt32)
|
||||
add_subdirectory(cryptdll)
|
||||
add_subdirectory(dbghelp)
|
||||
add_subdirectory(dciman32)
|
||||
add_subdirectory(dhcpcsvc)
|
||||
add_subdirectory(dnsapi)
|
||||
add_subdirectory(dwmapi)
|
||||
add_subdirectory(faultrep)
|
||||
add_subdirectory(gdi32)
|
||||
add_subdirectory(kernel32)
|
||||
add_subdirectory(msvcrt)
|
||||
|
|
19
dll/win32/dciman32/CMakeLists.txt
Normal file
19
dll/win32/dciman32/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_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
spec2def(dciman32 ${CMAKE_CURRENT_SOURCE_DIR}/dciman32.spec ${CMAKE_CURRENT_BINARY_DIR}/dciman32.def)
|
||||
|
||||
add_library(dciman32 SHARED dciman_main.c)
|
||||
|
||||
set_target_properties(dciman32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
||||
|
||||
target_link_libraries(dciman32
|
||||
${CMAKE_CURRENT_BINARY_DIR}/dciman32.def
|
||||
wine
|
||||
mingw_common)
|
||||
|
||||
add_dependencies(dciman32 dciman32_def psdk)
|
41
dll/win32/dhcpcsvc/CMakeLists.txt
Normal file
41
dll/win32/dhcpcsvc/CMakeLists.txt
Normal file
|
@ -0,0 +1,41 @@
|
|||
|
||||
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")
|
||||
|
||||
include_directories(include)
|
||||
|
||||
spec2def(dhcpcsvc ${CMAKE_CURRENT_SOURCE_DIR}/dhcpcsvc.spec ${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc.def)
|
||||
|
||||
list(APPEND SOURCE
|
||||
dhcp/adapter.c
|
||||
dhcp/alloc.c
|
||||
dhcp/api.c
|
||||
dhcp/compat.c
|
||||
dhcp/dhclient.c
|
||||
dhcp/dispatch.c
|
||||
dhcp/hash.c
|
||||
dhcp/options.c
|
||||
dhcp/pipe.c
|
||||
dhcp/socket.c
|
||||
dhcp/tables.c
|
||||
dhcp/util.c
|
||||
dhcpcsvc.c
|
||||
dhcpcsvc.rc)
|
||||
|
||||
add_library(dhcpcsvc SHARED
|
||||
${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc_rosdhcp.h.gch
|
||||
${SOURCE})
|
||||
|
||||
set_target_properties(dhcpcsvc PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
||||
|
||||
target_link_libraries(dhcpcsvc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc.def
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/msvcrt/libmsvcrt.a
|
||||
-lws2_32
|
||||
-liphlpapi
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/advapi32/libadvapi32.a
|
||||
oldnames
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/kernel32/libkernel32.a
|
||||
${REACTOS_SOURCE_DIR}/dll/ntdll/libntdll.a)
|
||||
|
||||
add_pch(dhcpcsvc ${CMAKE_CURRENT_SOURCE_DIR}/include/rosdhcp.h ${SOURCE})
|
||||
add_dependencies(dhcpcsvc dhcpcsvc_def psdk)
|
40
dll/win32/dnsapi/CMakeLists.txt
Normal file
40
dll/win32/dnsapi/CMakeLists.txt
Normal file
|
@ -0,0 +1,40 @@
|
|||
|
||||
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")
|
||||
|
||||
include_directories(include)
|
||||
include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/adns/src)
|
||||
include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/adns/adns_win32)
|
||||
|
||||
add_definitions(-D_DLL -D__USE_CRTIMP)
|
||||
add_definitions(-DADNS_JGAA_WIN32)
|
||||
|
||||
spec2def(dnsapi ${CMAKE_CURRENT_SOURCE_DIR}/dnsapi.spec ${CMAKE_CURRENT_BINARY_DIR}/dnsapi.def)
|
||||
|
||||
list(APPEND SOURCE
|
||||
dnsapi/adns.c
|
||||
dnsapi/context.c
|
||||
dnsapi/memory.c
|
||||
dnsapi/names.c
|
||||
dnsapi/query.c
|
||||
dnsapi/record.c
|
||||
dnsapi/stubs.c
|
||||
dnsapi.rc)
|
||||
|
||||
add_library(dnsapi SHARED
|
||||
${CMAKE_CURRENT_BINARY_DIR}/dnsapi_precomp.h.gch
|
||||
${SOURCE})
|
||||
|
||||
set_target_properties(dnsapi PROPERTIES LINK_FLAGS "-Wl,-entry,0")
|
||||
|
||||
target_link_libraries(dnsapi
|
||||
${CMAKE_CURRENT_BINARY_DIR}/dnsapi.def
|
||||
adns
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/user32/libuser32.a
|
||||
-lws2_32
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/msvcrt/libmsvcrt.a
|
||||
-liphlpapi
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/kernel32/libkernel32.a
|
||||
${REACTOS_SOURCE_DIR}/dll/ntdll/libntdll.a)
|
||||
|
||||
add_pch(dnsapi ${CMAKE_CURRENT_SOURCE_DIR}/dnsapi/precomp.h ${SOURCE})
|
||||
add_dependencies(dnsapi dnsapi_def psdk)
|
19
dll/win32/dwmapi/CMakeLists.txt
Normal file
19
dll/win32/dwmapi/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_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
spec2def(dwmapi ${CMAKE_CURRENT_SOURCE_DIR}/dwmapi.spec ${CMAKE_CURRENT_BINARY_DIR}/dwmapi.def)
|
||||
|
||||
add_library(dwmapi SHARED dwmapi_main.c version.rc)
|
||||
|
||||
set_target_properties(dwmapi PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
||||
|
||||
target_link_libraries(dwmapi
|
||||
${CMAKE_CURRENT_BINARY_DIR}/dwmapi.def
|
||||
wine
|
||||
mingw_common)
|
||||
|
||||
add_dependencies(dwmapi dwmapi_def psdk)
|
20
dll/win32/faultrep/CMakeLists.txt
Normal file
20
dll/win32/faultrep/CMakeLists.txt
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
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_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
spec2def(faultrep ${CMAKE_CURRENT_SOURCE_DIR}/faultrep.spec ${CMAKE_CURRENT_BINARY_DIR}/faultrep.def)
|
||||
|
||||
add_library(faultrep SHARED faultrep.c)
|
||||
|
||||
set_target_properties(faultrep PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
||||
|
||||
target_link_libraries(faultrep
|
||||
${CMAKE_CURRENT_BINARY_DIR}/faultrep.def
|
||||
wine
|
||||
mingw_common
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/advapi32/libadvapi32.a)
|
||||
|
||||
add_dependencies(faultrep faultrep_def psdk)
|
Loading…
Reference in a new issue