Author: akhaldi
Date: Sun Aug 22 23:59:45 2010
New Revision: 48599
URL:
http://svn.reactos.org/svn/reactos?rev=48599&view=rev
Log:
[CMAKE]
- Add dciman32, dhcpcsvc, dnsapi, dwmapi and faultrep to build.
Added:
branches/cmake-bringup/dll/win32/dciman32/CMakeLists.txt (with props)
branches/cmake-bringup/dll/win32/dhcpcsvc/CMakeLists.txt (with props)
branches/cmake-bringup/dll/win32/dnsapi/CMakeLists.txt (with props)
branches/cmake-bringup/dll/win32/dwmapi/CMakeLists.txt (with props)
branches/cmake-bringup/dll/win32/faultrep/CMakeLists.txt (with props)
Modified:
branches/cmake-bringup/dll/win32/CMakeLists.txt
Modified: branches/cmake-bringup/dll/win32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/CMakeLi…
==============================================================================
--- branches/cmake-bringup/dll/win32/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/CMakeLists.txt [iso-8859-1] Sun Aug 22 23:59:45 2010
@@ -18,6 +18,11 @@
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)
Added: branches/cmake-bringup/dll/win32/dciman32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/dciman3…
==============================================================================
--- branches/cmake-bringup/dll/win32/dciman32/CMakeLists.txt (added)
+++ branches/cmake-bringup/dll/win32/dciman32/CMakeLists.txt [iso-8859-1] Sun Aug 22
23:59:45 2010
@@ -1,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)
Propchange: branches/cmake-bringup/dll/win32/dciman32/CMakeLists.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: branches/cmake-bringup/dll/win32/dhcpcsvc/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/dhcpcsv…
==============================================================================
--- branches/cmake-bringup/dll/win32/dhcpcsvc/CMakeLists.txt (added)
+++ branches/cmake-bringup/dll/win32/dhcpcsvc/CMakeLists.txt [iso-8859-1] Sun Aug 22
23:59:45 2010
@@ -1,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)
Propchange: branches/cmake-bringup/dll/win32/dhcpcsvc/CMakeLists.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: branches/cmake-bringup/dll/win32/dnsapi/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/dnsapi/…
==============================================================================
--- branches/cmake-bringup/dll/win32/dnsapi/CMakeLists.txt (added)
+++ branches/cmake-bringup/dll/win32/dnsapi/CMakeLists.txt [iso-8859-1] Sun Aug 22
23:59:45 2010
@@ -1,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)
Propchange: branches/cmake-bringup/dll/win32/dnsapi/CMakeLists.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: branches/cmake-bringup/dll/win32/dwmapi/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/dwmapi/…
==============================================================================
--- branches/cmake-bringup/dll/win32/dwmapi/CMakeLists.txt (added)
+++ branches/cmake-bringup/dll/win32/dwmapi/CMakeLists.txt [iso-8859-1] Sun Aug 22
23:59:45 2010
@@ -1,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)
Propchange: branches/cmake-bringup/dll/win32/dwmapi/CMakeLists.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: branches/cmake-bringup/dll/win32/faultrep/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/faultre…
==============================================================================
--- branches/cmake-bringup/dll/win32/faultrep/CMakeLists.txt (added)
+++ branches/cmake-bringup/dll/win32/faultrep/CMakeLists.txt [iso-8859-1] Sun Aug 22
23:59:45 2010
@@ -1,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)
Propchange: branches/cmake-bringup/dll/win32/faultrep/CMakeLists.txt
------------------------------------------------------------------------------
svn:eol-style = native