[ACLEDIT][ATL][ATL80][FLTMGR] Get the def files out of the source files lists. #179

This commit is contained in:
Amine Khaldi 2017-12-09 19:58:43 +01:00
parent bddb0db469
commit d6cb9f60d1
4 changed files with 25 additions and 15 deletions

View 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)

View 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)

View 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)

View 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})