[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 21 Aug 2010 23:52:17 +0000 (23:52 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 21 Aug 2010 23:52:17 +0000 (23:52 +0000)
- Add activeds, advpack and authz to build.

svn path=/branches/cmake-bringup/; revision=48587

dll/win32/CMakeLists.txt
dll/win32/acledit/CMakeLists.txt
dll/win32/activeds/CMakeLists.txt [new file with mode: 0644]
dll/win32/advpack/CMakeLists.txt [new file with mode: 0644]
dll/win32/authz/CMakeLists.txt [new file with mode: 0644]

index 0f45944..ac88d49 100644 (file)
@@ -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)
index 2be028c..216bc05 100644 (file)
@@ -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)
 
diff --git a/dll/win32/activeds/CMakeLists.txt b/dll/win32/activeds/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ae85b61
--- /dev/null
@@ -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)
diff --git a/dll/win32/advpack/CMakeLists.txt b/dll/win32/advpack/CMakeLists.txt
new file mode 100644 (file)
index 0000000..b6b80dc
--- /dev/null
@@ -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)
diff --git a/dll/win32/authz/CMakeLists.txt b/dll/win32/authz/CMakeLists.txt
new file mode 100644 (file)
index 0000000..de97ae9
--- /dev/null
@@ -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)