[ACLEDIT][ATL][ATL80][FLTMGR] Get the def files out of the source files lists. #179
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 9 Dec 2017 18:58:43 +0000 (19:58 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 9 Dec 2017 18:59:02 +0000 (19:59 +0100)
dll/win32/acledit/CMakeLists.txt
dll/win32/atl/CMakeLists.txt
dll/win32/atl80/CMakeLists.txt
drivers/filters/fltmgr/CMakeLists.txt

index 99382a5..fb2222b 100644 (file)
@@ -4,10 +4,13 @@ spec2def(acledit.dll acledit.spec)
 list(APPEND SOURCE
     acledit.c
     stubs.c
-    acleditint.h
+    acleditint.h)
+
+add_library(acledit SHARED
+    ${SOURCE}
+    acledit.rc
     ${CMAKE_CURRENT_BINARY_DIR}/acledit.def)
 
-add_library(acledit SHARED ${SOURCE} acledit.rc)
 set_module_type(acledit win32dll UNICODE)
 add_importlibs(acledit msvcrt kernel32 ntdll)
 add_pch(acledit acleditint.h SOURCE)
index 77904a2..9697e5c 100644 (file)
@@ -14,9 +14,8 @@ list(APPEND SOURCE
     atl30.c
     atl_ax.c
     registrar.c
-    precomp.h
     ${CMAKE_CURRENT_BINARY_DIR}/atl_stubs.c
-    ${CMAKE_CURRENT_BINARY_DIR}/atl.def)
+    precomp.h)
 
 list(APPEND atl_rc_deps
     ${CMAKE_CURRENT_SOURCE_DIR}/atl.rgs
@@ -25,7 +24,12 @@ list(APPEND atl_rc_deps
     ${CMAKE_CURRENT_BINARY_DIR}/atl_lib.tlb)
 
 set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${atl_rc_deps}")
-add_library(atl SHARED ${SOURCE} rsrc.rc)
+
+add_library(atl SHARED
+    ${SOURCE}
+    rsrc.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/atl.def)
+
 add_typelib(atl_lib.idl)
 add_dependencies(atl stdole2)
 set_module_type(atl win32dll)
index 38d395b..6283b49 100644 (file)
@@ -13,11 +13,13 @@ list(APPEND SOURCE
     atl80.c
     ${REACTOS_SOURCE_DIR}/dll/win32/atl/atl_ax.c
     ${REACTOS_SOURCE_DIR}/dll/win32/atl/registrar.c
-    precomp.h
     ${CMAKE_CURRENT_BINARY_DIR}/atl80_stubs.c
+    precomp.h)
+
+add_library(atl80 SHARED
+    ${SOURCE}
     ${CMAKE_CURRENT_BINARY_DIR}/atl80.def)
 
-add_library(atl80 SHARED ${SOURCE})
 set_module_type(atl80 win32dll)
 target_link_libraries(atl80 uuid wine)
 add_importlibs(atl80 oleaut32 user32 ole32 gdi32 advapi32 advapi32_vista shlwapi msvcrt kernel32 ntdll)
index cb6ebbd..8519974 100644 (file)
@@ -1,3 +1,10 @@
+
+include_directories(
+    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers/fltmgr
+    includes)
+
+spec2def(fltmgr.sys fltmgr.spec ADD_IMPORTLIB)
+
 list(APPEND SOURCE
     Context.c
     Dispatch.c
@@ -9,18 +16,12 @@ list(APPEND SOURCE
     Object.c
     Registry.c
     Volume.c
-    ${CMAKE_CURRENT_BINARY_DIR}/fltmgr.def
     fltmgr.h)
 
-include_directories(
-    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers/fltmgr
-    includes)
-
-spec2def(fltmgr.sys fltmgr.spec ADD_IMPORTLIB)
-
 add_library(fltmgr SHARED
     ${SOURCE}
-    fltmgr.rc)
+    fltmgr.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/fltmgr.def)
 
 set_module_type(fltmgr kernelmodedriver)
 target_link_libraries(fltmgr ${PSEH_LIB})