From 01a4049405f6fe38ce895aba72d34273b0833331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Sat, 25 Jun 2011 18:34:03 +0000 Subject: [PATCH] [CMAKE] - unify spec2def and add_importlib_target, thanks to cmake_parse_arguments. - also generate stub files only when necessary. - better precompiled header support, commented out as it wasn't tested on any other machine than mine, and it depends on cmake features which don't exist yet. For now only for gcc toolchain svn path=/trunk/; revision=52460 --- reactos/base/shell/explorer/CMakeLists.txt | 5 +- .../shell/explorer/notifyhook/CMakeLists.txt | 2 +- reactos/cmake/gcc.cmake | 154 +++++++++++------- reactos/dll/cpl/inetcpl/CMakeLists.txt | 2 +- reactos/dll/directx/dinput/CMakeLists.txt | 2 +- reactos/dll/directx/dinput8/CMakeLists.txt | 2 +- reactos/dll/directx/dplay/CMakeLists.txt | 2 +- reactos/dll/directx/dplayx/CMakeLists.txt | 2 +- reactos/dll/directx/dsound/CMakeLists.txt | 2 +- reactos/dll/directx/ksuser/CMakeLists.txt | 2 +- reactos/dll/directx/wine/d3d9/CMakeLists.txt | 2 +- .../dll/directx/wine/d3dx9_24/CMakeLists.txt | 2 +- .../dll/directx/wine/d3dx9_25/CMakeLists.txt | 2 +- .../dll/directx/wine/d3dx9_26/CMakeLists.txt | 2 +- .../dll/directx/wine/d3dx9_27/CMakeLists.txt | 2 +- .../dll/directx/wine/d3dx9_28/CMakeLists.txt | 2 +- .../dll/directx/wine/d3dx9_29/CMakeLists.txt | 2 +- .../dll/directx/wine/d3dx9_30/CMakeLists.txt | 2 +- .../dll/directx/wine/d3dx9_31/CMakeLists.txt | 2 +- .../dll/directx/wine/d3dx9_32/CMakeLists.txt | 2 +- .../dll/directx/wine/d3dx9_33/CMakeLists.txt | 2 +- .../dll/directx/wine/d3dx9_34/CMakeLists.txt | 2 +- .../dll/directx/wine/d3dx9_36/CMakeLists.txt | 2 +- reactos/dll/directx/wine/ddraw/CMakeLists.txt | 2 +- .../dll/directx/wine/wined3d/CMakeLists.txt | 2 +- reactos/dll/ntdll/CMakeLists.txt | 2 +- reactos/dll/win32/acledit/CMakeLists.txt | 2 +- reactos/dll/win32/aclui/CMakeLists.txt | 2 +- reactos/dll/win32/advapi32/CMakeLists.txt | 2 +- reactos/dll/win32/atl/CMakeLists.txt | 2 +- reactos/dll/win32/authz/CMakeLists.txt | 2 +- reactos/dll/win32/avicap32/CMakeLists.txt | 2 +- reactos/dll/win32/avifil32/CMakeLists.txt | 2 +- reactos/dll/win32/batt/CMakeLists.txt | 2 +- reactos/dll/win32/bcrypt/CMakeLists.txt | 2 +- reactos/dll/win32/beepmidi/CMakeLists.txt | 2 +- reactos/dll/win32/cabinet/CMakeLists.txt | 2 +- reactos/dll/win32/cards/CMakeLists.txt | 2 +- reactos/dll/win32/cfgmgr32/CMakeLists.txt | 2 +- reactos/dll/win32/clusapi/CMakeLists.txt | 2 +- reactos/dll/win32/comctl32/CMakeLists.txt | 2 +- reactos/dll/win32/comdlg32/CMakeLists.txt | 2 +- reactos/dll/win32/compstui/CMakeLists.txt | 2 +- reactos/dll/win32/credui/CMakeLists.txt | 2 +- reactos/dll/win32/crypt32/CMakeLists.txt | 2 +- reactos/dll/win32/cryptdlg/CMakeLists.txt | 2 +- reactos/dll/win32/cryptnet/CMakeLists.txt | 2 +- reactos/dll/win32/cryptui/CMakeLists.txt | 2 +- reactos/dll/win32/dbghelp/CMakeLists.txt | 2 +- reactos/dll/win32/dciman32/CMakeLists.txt | 2 +- reactos/dll/win32/devmgr/CMakeLists.txt | 2 +- reactos/dll/win32/dhcpcsvc/CMakeLists.txt | 2 +- reactos/dll/win32/dnsapi/CMakeLists.txt | 2 +- reactos/dll/win32/dwmapi/CMakeLists.txt | 2 +- reactos/dll/win32/faultrep/CMakeLists.txt | 2 +- reactos/dll/win32/fmifs/CMakeLists.txt | 2 +- reactos/dll/win32/fusion/CMakeLists.txt | 2 +- reactos/dll/win32/gdi32/CMakeLists.txt | 2 +- reactos/dll/win32/gdiplus/CMakeLists.txt | 2 +- reactos/dll/win32/getuname/CMakeLists.txt | 2 +- reactos/dll/win32/glu32/CMakeLists.txt | 2 +- reactos/dll/win32/hlink/CMakeLists.txt | 2 +- reactos/dll/win32/httpapi/CMakeLists.txt | 2 +- reactos/dll/win32/icmp/CMakeLists.txt | 2 +- reactos/dll/win32/imagehlp/CMakeLists.txt | 2 +- reactos/dll/win32/imm32/CMakeLists.txt | 2 +- reactos/dll/win32/inetcomm/CMakeLists.txt | 2 +- reactos/dll/win32/inetmib1/CMakeLists.txt | 2 +- reactos/dll/win32/initpki/CMakeLists.txt | 2 +- reactos/dll/win32/inseng/CMakeLists.txt | 2 +- reactos/dll/win32/iphlpapi/CMakeLists.txt | 2 +- reactos/dll/win32/itircl/CMakeLists.txt | 2 +- reactos/dll/win32/itss/CMakeLists.txt | 2 +- reactos/dll/win32/kernel32/CMakeLists.txt | 2 +- reactos/dll/win32/loadperf/CMakeLists.txt | 2 +- reactos/dll/win32/localspl/CMakeLists.txt | 2 +- reactos/dll/win32/localui/CMakeLists.txt | 2 +- reactos/dll/win32/lpk/CMakeLists.txt | 2 +- reactos/dll/win32/lsasrv/CMakeLists.txt | 2 +- reactos/dll/win32/lz32/CMakeLists.txt | 2 +- reactos/dll/win32/mapi32/CMakeLists.txt | 2 +- reactos/dll/win32/mlang/CMakeLists.txt | 2 +- reactos/dll/win32/modemui/CMakeLists.txt | 2 +- reactos/dll/win32/mpr/CMakeLists.txt | 2 +- reactos/dll/win32/mprapi/CMakeLists.txt | 2 +- reactos/dll/win32/msacm32/CMakeLists.txt | 2 +- reactos/dll/win32/mscms/CMakeLists.txt | 2 +- reactos/dll/win32/mscoree/CMakeLists.txt | 2 +- reactos/dll/win32/msctf/CMakeLists.txt | 2 +- reactos/dll/win32/msftedit/CMakeLists.txt | 2 +- reactos/dll/win32/msgina/CMakeLists.txt | 2 +- reactos/dll/win32/mshtml/CMakeLists.txt | 2 +- reactos/dll/win32/msi/CMakeLists.txt | 2 +- reactos/dll/win32/msimg32/CMakeLists.txt | 2 +- reactos/dll/win32/msimtf/CMakeLists.txt | 2 +- reactos/dll/win32/msisip/CMakeLists.txt | 2 +- reactos/dll/win32/msports/CMakeLists.txt | 2 +- reactos/dll/win32/mssign32/CMakeLists.txt | 2 +- reactos/dll/win32/mssip32/CMakeLists.txt | 2 +- reactos/dll/win32/mstask/CMakeLists.txt | 2 +- reactos/dll/win32/msvcrt/CMakeLists.txt | 2 +- reactos/dll/win32/msvfw32/CMakeLists.txt | 2 +- reactos/dll/win32/mswsock/CMakeLists.txt | 2 +- reactos/dll/win32/msxml3/CMakeLists.txt | 2 +- reactos/dll/win32/nddeapi/CMakeLists.txt | 2 +- reactos/dll/win32/netapi32/CMakeLists.txt | 2 +- reactos/dll/win32/netcfgx/CMakeLists.txt | 2 +- reactos/dll/win32/netshell/CMakeLists.txt | 2 +- reactos/dll/win32/newdev/CMakeLists.txt | 2 +- reactos/dll/win32/ntdsapi/CMakeLists.txt | 2 +- reactos/dll/win32/ntlanman/CMakeLists.txt | 2 +- reactos/dll/win32/ntprint/CMakeLists.txt | 2 +- reactos/dll/win32/odbc32/CMakeLists.txt | 2 +- reactos/dll/win32/odbccp32/CMakeLists.txt | 2 +- reactos/dll/win32/ole32/CMakeLists.txt | 2 +- reactos/dll/win32/oleacc/CMakeLists.txt | 2 +- reactos/dll/win32/oleaut32/CMakeLists.txt | 2 +- reactos/dll/win32/olecli32/CMakeLists.txt | 2 +- reactos/dll/win32/oledlg/CMakeLists.txt | 2 +- reactos/dll/win32/olesvr32/CMakeLists.txt | 2 +- reactos/dll/win32/olethk32/CMakeLists.txt | 2 +- reactos/dll/win32/opengl32/CMakeLists.txt | 2 +- reactos/dll/win32/pdh/CMakeLists.txt | 2 +- reactos/dll/win32/pidgen/CMakeLists.txt | 2 +- reactos/dll/win32/powrprof/CMakeLists.txt | 2 +- reactos/dll/win32/printui/CMakeLists.txt | 2 +- reactos/dll/win32/psapi/CMakeLists.txt | 2 +- reactos/dll/win32/pstorec/CMakeLists.txt | 2 +- reactos/dll/win32/query/CMakeLists.txt | 2 +- reactos/dll/win32/rasadhlp/CMakeLists.txt | 2 +- reactos/dll/win32/rasapi32/CMakeLists.txt | 2 +- reactos/dll/win32/rasdlg/CMakeLists.txt | 2 +- reactos/dll/win32/rasman/CMakeLists.txt | 2 +- reactos/dll/win32/resutils/CMakeLists.txt | 2 +- reactos/dll/win32/riched20/CMakeLists.txt | 2 +- reactos/dll/win32/rpcrt4/CMakeLists.txt | 2 +- reactos/dll/win32/rsaenh/CMakeLists.txt | 2 +- reactos/dll/win32/samlib/CMakeLists.txt | 2 +- reactos/dll/win32/sccbase/CMakeLists.txt | 2 +- reactos/dll/win32/schannel/CMakeLists.txt | 2 +- reactos/dll/win32/secur32/CMakeLists.txt | 2 +- reactos/dll/win32/sensapi/CMakeLists.txt | 2 +- reactos/dll/win32/setupapi/CMakeLists.txt | 2 +- reactos/dll/win32/sfc/CMakeLists.txt | 2 +- reactos/dll/win32/sfc_os/CMakeLists.txt | 2 +- reactos/dll/win32/shdocvw/CMakeLists.txt | 2 +- reactos/dll/win32/shell32/CMakeLists.txt | 2 +- reactos/dll/win32/shimgvw/CMakeLists.txt | 2 +- reactos/dll/win32/shlwapi/CMakeLists.txt | 2 +- reactos/dll/win32/slbcsp/CMakeLists.txt | 2 +- reactos/dll/win32/smdll/CMakeLists.txt | 2 +- reactos/dll/win32/snmpapi/CMakeLists.txt | 2 +- reactos/dll/win32/spoolss/CMakeLists.txt | 2 +- reactos/dll/win32/srclient/CMakeLists.txt | 2 +- reactos/dll/win32/sxs/CMakeLists.txt | 2 +- reactos/dll/win32/syssetup/CMakeLists.txt | 2 +- reactos/dll/win32/t2embed/CMakeLists.txt | 2 +- reactos/dll/win32/tapi32/CMakeLists.txt | 2 +- reactos/dll/win32/traffic/CMakeLists.txt | 2 +- reactos/dll/win32/ufatx/CMakeLists.txt | 2 +- reactos/dll/win32/unicows/CMakeLists.txt | 2 +- reactos/dll/win32/updspapi/CMakeLists.txt | 2 +- reactos/dll/win32/url/CMakeLists.txt | 2 +- reactos/dll/win32/urlmon/CMakeLists.txt | 2 +- reactos/dll/win32/user32/CMakeLists.txt | 2 +- reactos/dll/win32/userenv/CMakeLists.txt | 2 +- reactos/dll/win32/usp10/CMakeLists.txt | 2 +- reactos/dll/win32/uxtheme/CMakeLists.txt | 2 +- reactos/dll/win32/version/CMakeLists.txt | 2 +- .../dll/win32/windowscodecs/CMakeLists.txt | 2 +- reactos/dll/win32/winhttp/CMakeLists.txt | 2 +- reactos/dll/win32/wininet/CMakeLists.txt | 2 +- reactos/dll/win32/winmm/CMakeLists.txt | 2 +- reactos/dll/win32/winspool/CMakeLists.txt | 2 +- reactos/dll/win32/wintrust/CMakeLists.txt | 2 +- reactos/dll/win32/wlanapi/CMakeLists.txt | 2 +- reactos/dll/win32/wldap32/CMakeLists.txt | 2 +- reactos/dll/win32/ws2_32/CMakeLists.txt | 2 +- reactos/dll/win32/ws2help/CMakeLists.txt | 2 +- reactos/dll/win32/wtsapi32/CMakeLists.txt | 2 +- reactos/dll/win32/xinput1_3/CMakeLists.txt | 2 +- reactos/dll/win32/xmllite/CMakeLists.txt | 2 +- reactos/drivers/base/bootvid/CMakeLists.txt | 2 +- reactos/drivers/base/kdcom/CMakeLists.txt | 2 +- reactos/drivers/base/kddll/CMakeLists.txt | 2 +- reactos/drivers/battery/battc/CMakeLists.txt | 2 +- reactos/drivers/directx/dxgthk/CMakeLists.txt | 2 +- reactos/drivers/ksfilter/ks/CMakeLists.txt | 2 +- reactos/drivers/network/ndis/CMakeLists.txt | 2 +- .../storage/class/class2/CMakeLists.txt | 2 +- .../storage/ide/pciidex/CMakeLists.txt | 2 +- .../drivers/storage/scsiport/CMakeLists.txt | 2 +- reactos/drivers/usb/usbd/CMakeLists.txt | 2 +- .../drivers/video/font/ftfd/CMakeLists.txt | 2 +- reactos/drivers/video/videoprt/CMakeLists.txt | 2 +- .../drivers/wdm/audio/drm/drmk/CMakeLists.txt | 2 +- reactos/drivers/wmi/CMakeLists.txt | 2 +- reactos/hal/halx86/CMakeLists.txt | 2 +- reactos/ntoskrnl/CMakeLists.txt | 2 +- .../win32/csrss/csrsrv/CMakeLists.txt | 2 +- .../subsystems/win32/win32k/CMakeLists.txt | 2 +- 201 files changed, 300 insertions(+), 257 deletions(-) diff --git a/reactos/base/shell/explorer/CMakeLists.txt b/reactos/base/shell/explorer/CMakeLists.txt index 14f73046157..26ae04dd927 100644 --- a/reactos/base/shell/explorer/CMakeLists.txt +++ b/reactos/base/shell/explorer/CMakeLists.txt @@ -12,7 +12,6 @@ add_definitions( -DWIN32 -D__WINDRES__) -#add_pch(explorer precomp.h) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) list(APPEND SOURCE @@ -66,6 +65,10 @@ target_link_libraries(explorer uuid) add_importlibs(explorer advapi32 gdi32 user32 ws2_32 msimg32 comctl32 ole32 oleaut32 shell32 notifyhook msvcrt kernel32 ntdll) +#hack +set(IS_CPP 1) +add_pch(explorer precomp.h) +set(IS_CPP) set_image_base(explorer 0x00400000) add_dependencies(explorer psdk) add_cd_file(TARGET explorer DESTINATION reactos FOR all) diff --git a/reactos/base/shell/explorer/notifyhook/CMakeLists.txt b/reactos/base/shell/explorer/notifyhook/CMakeLists.txt index b3eda1e7589..952823963e4 100644 --- a/reactos/base/shell/explorer/notifyhook/CMakeLists.txt +++ b/reactos/base/shell/explorer/notifyhook/CMakeLists.txt @@ -1,7 +1,7 @@ add_definitions(-D_NOTIFYHOOK_IMPL) -spec2def(notifyhook.dll notifyhook.spec) +spec2def(notifyhook.dll notifyhook.spec ADD_IMPORTLIB) list(APPEND SOURCE notifyhook.c diff --git a/reactos/cmake/gcc.cmake b/reactos/cmake/gcc.cmake index 867c52b13d0..f1e8e2d5679 100644 --- a/reactos/cmake/gcc.cmake +++ b/reactos/cmake/gcc.cmake @@ -221,68 +221,86 @@ endif() macro(add_importlib_target _exports_file) - get_filename_component(_name ${_exports_file} NAME_WE) - get_filename_component(_extension ${_exports_file} EXT) - get_target_property(_suffix ${_name} SUFFIX) - if(${_suffix} STREQUAL "_suffix-NOTFOUND") - get_target_property(_type ${_name} TYPE) - if(${_type} MATCHES EXECUTABLE) - set(_suffix ".exe") - else() - set(_suffix ".dll") - endif() - endif() + # get_filename_component(_name ${_exports_file} NAME_WE) + # get_filename_component(_extension ${_exports_file} EXT) + # get_target_property(_suffix ${_name} SUFFIX) + # if(${_suffix} STREQUAL "_suffix-NOTFOUND") + # get_target_property(_type ${_name} TYPE) + # if(${_type} MATCHES EXECUTABLE) + # set(_suffix ".exe") + # else() + # set(_suffix ".dll") + # endif() + # endif() - if (${_extension} STREQUAL ".spec") + # if (${_extension} STREQUAL ".spec") - # Normal importlib creation - add_custom_command( - OUTPUT ${CMAKE_BINARY_DIR}/importlibs/lib${_name}.a - COMMAND native-spec2def -n=${_name}${_suffix} -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_name}_implib.def ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} - COMMAND ${MINGW_PREFIX}dlltool --def ${CMAKE_CURRENT_BINARY_DIR}/${_name}_implib.def --kill-at --output-lib=${CMAKE_BINARY_DIR}/importlibs/lib${_name}.a - DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}) + # # Normal importlib creation + # add_custom_command( + # OUTPUT ${CMAKE_BINARY_DIR}/importlibs/lib${_name}.a + # COMMAND native-spec2def -n=${_name}${_suffix} -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_name}_implib.def ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} + # COMMAND ${MINGW_PREFIX}dlltool --def ${CMAKE_CURRENT_BINARY_DIR}/${_name}_implib.def --kill-at --output-lib=${CMAKE_BINARY_DIR}/importlibs/lib${_name}.a + # DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}) - # Delayed importlib creation - add_custom_command( - OUTPUT ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_delayed.a - COMMAND native-spec2def -n=${_name}${_suffix} -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_name}_delayed_implib.def ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} - COMMAND ${MINGW_PREFIX}dlltool --def ${CMAKE_CURRENT_BINARY_DIR}/${_name}_delayed_implib.def --kill-at --output-delaylib ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_delayed.a - DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}) + # # Delayed importlib creation + # add_custom_command( + # OUTPUT ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_delayed.a + # COMMAND native-spec2def -n=${_name}${_suffix} -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_name}_delayed_implib.def ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} + # COMMAND ${MINGW_PREFIX}dlltool --def ${CMAKE_CURRENT_BINARY_DIR}/${_name}_delayed_implib.def --kill-at --output-delaylib ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_delayed.a + # DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}) - elseif(${_extension} STREQUAL ".def") - message("Use of def files for import libs is deprecated: ${_exports_file}") - add_custom_command( - OUTPUT ${CMAKE_BINARY_DIR}/importlibs/lib${_name}.a - COMMAND ${MINGW_PREFIX}dlltool --def ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} --kill-at --output-lib=${CMAKE_BINARY_DIR}/importlibs/lib${_name}.a - DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}) - add_custom_command( - OUTPUT ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_delayed.a - COMMAND ${MINGW_PREFIX}dlltool --def ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} --kill-at --output-delaylib ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_delayed.a - DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}) - else() - message(FATAL_ERROR "Unsupported exports file extension: ${_extension}") - endif() + # elseif(${_extension} STREQUAL ".def") + # message("Use of def files for import libs is deprecated: ${_exports_file}") + # add_custom_command( + # OUTPUT ${CMAKE_BINARY_DIR}/importlibs/lib${_name}.a + # COMMAND ${MINGW_PREFIX}dlltool --def ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} --kill-at --output-lib=${CMAKE_BINARY_DIR}/importlibs/lib${_name}.a + # DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}) + # add_custom_command( + # OUTPUT ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_delayed.a + # COMMAND ${MINGW_PREFIX}dlltool --def ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} --kill-at --output-delaylib ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_delayed.a + # DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}) + # else() + # message(FATAL_ERROR "Unsupported exports file extension: ${_extension}") + # endif() - # Normal importlib target - add_custom_target( - lib${_name} - DEPENDS ${CMAKE_BINARY_DIR}/importlibs/lib${_name}.a) - # Delayed importlib target - add_custom_target( - lib${_name}_delayed - DEPENDS ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_delayed.a) + # # Normal importlib target + # add_custom_target( + # lib${_name} + # DEPENDS ${CMAKE_BINARY_DIR}/importlibs/lib${_name}.a) + # # Delayed importlib target + # add_custom_target( + # lib${_name}_delayed + # DEPENDS ${CMAKE_BINARY_DIR}/importlibs/lib${_name}_delayed.a) endmacro() macro(spec2def _dllname _spec_file) + cmake_parse_arguments(__s2d "ADD_IMPORTLIB;GENERATE_STUBS" "" "" ${ARGN}) get_filename_component(_file ${_spec_file} NAME_WE) + list(APPEND __output ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def) + list(APPEND __args -n=${_dllname} -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}.def) + #Generate stubs only if needed + if(__s2d_GENERATE_STUBS) + list(APPEND __output ${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c) + list(APPEND __args -s=${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c) + set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c PROPERTIES GENERATED TRUE) + endif() add_custom_command( - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def ${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c - COMMAND native-spec2def -n=${_dllname} --kill-at -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}.def -s=${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} + OUTPUT ${__output} + COMMAND native-spec2def ${__args} ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file}) set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}.def - PROPERTIES GENERATED TRUE EXTERNAL_OBJECT TRUE) - set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c PROPERTIES GENERATED TRUE) + PROPERTIES EXTERNAL_OBJECT TRUE) + if(__s2d_ADD_IMPORTLIB) + get_filename_component(_name ${_dllname} NAME_WE) + add_custom_target(lib${_name} + COMMAND ${MINGW_PREFIX}dlltool --def ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def --kill-at --output-lib=${CMAKE_BINARY_DIR}/importlibs/lib${_name}.a + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def) + add_custom_target(lib${_name}_delayed + COMMAND ${MINGW_PREFIX}dlltool --def ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def --kill-at --output-delaylib=${CMAKE_BINARY_DIR}/importlibs/lib${_name}_delayed.a + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def) + endif() + endmacro() macro(macro_mc FILE) @@ -316,20 +334,42 @@ macro(_PCH_GET_COMPILE_FLAGS _target_name _out_compile_flags _header_filename) list(APPEND ${_out_compile_flags} -D${item}) endforeach() endif() + + if(IS_CPP) + list(APPEND ${_out_compile_flags} ${CMAKE_CXX_FLAGS}) + else() + list(APPEND ${_out_compile_flags} ${CMAKE_C_FLAGS}) + endif() separate_arguments(${_out_compile_flags}) endmacro() macro(add_pch _target_name _FILE) - #set(_header_filename ${CMAKE_CURRENT_SOURCE_DIR}/${_FILE}) - #get_filename_component(_basename ${_FILE} NAME) - #set(_gch_filename ${_basename}.gch) - #_PCH_GET_COMPILE_FLAGS(${_target_name} _args ${_header_filename}) +if(__some_non_existent_variable) + set(_header_filename ${CMAKE_CURRENT_SOURCE_DIR}/${_FILE}) + get_filename_component(_basename ${_FILE} NAME) + set(_gch_filename ${_basename}.gch) + _PCH_GET_COMPILE_FLAGS(${_target_name} _args ${_header_filename}) + + if(IS_CPP) + set(__lang CXX) + set(__compiler ${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_ARG1}) + else() + set(__lang C) + set(__compiler ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}) + endif() - #add_custom_command(OUTPUT ${_gch_filename} COMMAND ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1} ${_args} DEPENDS ${_header_filename}) - #get_target_property(_src_files ${_target_name} SOURCES) - #set_source_files_properties(${_src_files} PROPERTIES COMPILE_FLAGS "-Winvalid-pch -fpch-preprocess" #OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_gch_filename}) - #add_linkerflag(${_target_name} "${_gch_filename}") + add_custom_command(OUTPUT ${_gch_filename} COMMAND ${__compiler} ${_args} IMPLICIT_DEPENDS ${__lang} ${_header_filename}) + get_target_property(_src_files ${_target_name} SOURCES) + foreach(_item in ${_src_files}) + get_source_file_property(__src_lang ${_item} LANGUAGE) + if(__src_lang STREQUAL __lang) + set_source_files_properties(${_item} PROPERTIES COMPILE_FLAGS "-Winvalid-pch -fpch-preprocess" OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_gch_filename}) + endif() + endforeach() + #set dependency checking : depends on precompiled header only whixh already depends on deeper header + set_target_properties(${_target_name} PROPERTIES IMPLICIT_DEPENDS_INCLUDE_TRANSFORM "\"${_basename}\"=;<${_basename}>=") +endif() endmacro() macro(CreateBootSectorTarget _target_name _asm_file _object_file _base_address) diff --git a/reactos/dll/cpl/inetcpl/CMakeLists.txt b/reactos/dll/cpl/inetcpl/CMakeLists.txt index df363f2f93d..970ffa2df9b 100644 --- a/reactos/dll/cpl/inetcpl/CMakeLists.txt +++ b/reactos/dll/cpl/inetcpl/CMakeLists.txt @@ -4,7 +4,7 @@ set_rc_compiler() include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(inetcpl.cpl inetcpl.spec) +spec2def(inetcpl.cpl inetcpl.spec GENERATE_STUBS) list(APPEND SOURCE inetcpl.c diff --git a/reactos/dll/directx/dinput/CMakeLists.txt b/reactos/dll/directx/dinput/CMakeLists.txt index 142e22d7b07..88b788a5679 100644 --- a/reactos/dll/directx/dinput/CMakeLists.txt +++ b/reactos/dll/directx/dinput/CMakeLists.txt @@ -6,7 +6,7 @@ add_definitions(-D_WIN32_WINNT=0x600) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(dinput.dll dinput.spec) +spec2def(dinput.dll dinput.spec ADD_IMPORTLIB) add_library(dinput SHARED data_formats.c diff --git a/reactos/dll/directx/dinput8/CMakeLists.txt b/reactos/dll/directx/dinput8/CMakeLists.txt index 5f2fab45510..ac54d750c0c 100644 --- a/reactos/dll/directx/dinput8/CMakeLists.txt +++ b/reactos/dll/directx/dinput8/CMakeLists.txt @@ -6,7 +6,7 @@ add_definitions(-D_WIN32_WINNT=0x600) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(dinput8.dll dinput8.spec) +spec2def(dinput8.dll dinput8.spec ADD_IMPORTLIB) add_library(dinput8 SHARED dinput8_main.c diff --git a/reactos/dll/directx/dplay/CMakeLists.txt b/reactos/dll/directx/dplay/CMakeLists.txt index 1626bceb34d..5337d3c19b3 100644 --- a/reactos/dll/directx/dplay/CMakeLists.txt +++ b/reactos/dll/directx/dplay/CMakeLists.txt @@ -3,7 +3,7 @@ set_unicode() include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(dplay.dll dplay.spec) +spec2def(dplay.dll dplay.spec ADD_IMPORTLIB) add_library(dplay SHARED dplay_main.c diff --git a/reactos/dll/directx/dplayx/CMakeLists.txt b/reactos/dll/directx/dplayx/CMakeLists.txt index 77c80743427..3a67c8dae6c 100644 --- a/reactos/dll/directx/dplayx/CMakeLists.txt +++ b/reactos/dll/directx/dplayx/CMakeLists.txt @@ -1,7 +1,7 @@ set_rc_compiler() -spec2def(dplayx.dll dplayx.spec) +spec2def(dplayx.dll dplayx.spec ADD_IMPORTLIB) list(APPEND SOURCE dpclassfactory.c diff --git a/reactos/dll/directx/dsound/CMakeLists.txt b/reactos/dll/directx/dsound/CMakeLists.txt index 84f3782c9ff..9607f13a318 100644 --- a/reactos/dll/directx/dsound/CMakeLists.txt +++ b/reactos/dll/directx/dsound/CMakeLists.txt @@ -5,7 +5,7 @@ add_definitions( include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(dsound.dll dsound.spec) +spec2def(dsound.dll dsound.spec ADD_IMPORTLIB) add_library(dsound SHARED buffer.c diff --git a/reactos/dll/directx/ksuser/CMakeLists.txt b/reactos/dll/directx/ksuser/CMakeLists.txt index 5f3acb71205..17131c9b2e3 100644 --- a/reactos/dll/directx/ksuser/CMakeLists.txt +++ b/reactos/dll/directx/ksuser/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(ksuser.dll ksuser.spec) +spec2def(ksuser.dll ksuser.spec ADD_IMPORTLIB) add_library(ksuser SHARED ksuser.c ksuser.rc ${CMAKE_CURRENT_BINARY_DIR}/ksuser.def) diff --git a/reactos/dll/directx/wine/d3d9/CMakeLists.txt b/reactos/dll/directx/wine/d3d9/CMakeLists.txt index 642815dc02b..441b906fed6 100644 --- a/reactos/dll/directx/wine/d3d9/CMakeLists.txt +++ b/reactos/dll/directx/wine/d3d9/CMakeLists.txt @@ -9,7 +9,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(d3d9.dll d3d9.spec) +spec2def(d3d9.dll d3d9.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE buffer.c diff --git a/reactos/dll/directx/wine/d3dx9_24/CMakeLists.txt b/reactos/dll/directx/wine/d3dx9_24/CMakeLists.txt index 39ce0ce0371..08ecf5c0060 100644 --- a/reactos/dll/directx/wine/d3dx9_24/CMakeLists.txt +++ b/reactos/dll/directx/wine/d3dx9_24/CMakeLists.txt @@ -1,6 +1,6 @@ set_rc_compiler() -spec2def(d3dx9_24.dll d3dx9_24.spec) +spec2def(d3dx9_24.dll d3dx9_24.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE d3dx9_24_main.c diff --git a/reactos/dll/directx/wine/d3dx9_25/CMakeLists.txt b/reactos/dll/directx/wine/d3dx9_25/CMakeLists.txt index 98c9a7f9e79..949d33a473c 100644 --- a/reactos/dll/directx/wine/d3dx9_25/CMakeLists.txt +++ b/reactos/dll/directx/wine/d3dx9_25/CMakeLists.txt @@ -1,6 +1,6 @@ set_rc_compiler() -spec2def(d3dx9_25.dll d3dx9_25.spec) +spec2def(d3dx9_25.dll d3dx9_25.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE d3dx9_25_main.c diff --git a/reactos/dll/directx/wine/d3dx9_26/CMakeLists.txt b/reactos/dll/directx/wine/d3dx9_26/CMakeLists.txt index 82f45db4c0e..54f66483fd0 100644 --- a/reactos/dll/directx/wine/d3dx9_26/CMakeLists.txt +++ b/reactos/dll/directx/wine/d3dx9_26/CMakeLists.txt @@ -1,6 +1,6 @@ set_rc_compiler() -spec2def(d3dx9_26.dll d3dx9_26.spec) +spec2def(d3dx9_26.dll d3dx9_26.spec GENERATE_STUBS) list(APPEND SOURCE d3dx9_26_main.c diff --git a/reactos/dll/directx/wine/d3dx9_27/CMakeLists.txt b/reactos/dll/directx/wine/d3dx9_27/CMakeLists.txt index 595fb303814..ecee55c613f 100644 --- a/reactos/dll/directx/wine/d3dx9_27/CMakeLists.txt +++ b/reactos/dll/directx/wine/d3dx9_27/CMakeLists.txt @@ -1,6 +1,6 @@ set_rc_compiler() -spec2def(d3dx9_27.dll d3dx9_27.spec) +spec2def(d3dx9_27.dll d3dx9_27.spec GENERATE_STUBS) list(APPEND SOURCE d3dx9_27_main.c diff --git a/reactos/dll/directx/wine/d3dx9_28/CMakeLists.txt b/reactos/dll/directx/wine/d3dx9_28/CMakeLists.txt index 1abdaf0b692..12ee2e2f976 100644 --- a/reactos/dll/directx/wine/d3dx9_28/CMakeLists.txt +++ b/reactos/dll/directx/wine/d3dx9_28/CMakeLists.txt @@ -1,6 +1,6 @@ set_rc_compiler() -spec2def(d3dx9_28.dll d3dx9_28.spec) +spec2def(d3dx9_28.dll d3dx9_28.spec GENERATE_STUBS) list(APPEND SOURCE d3dx9_28_main.c diff --git a/reactos/dll/directx/wine/d3dx9_29/CMakeLists.txt b/reactos/dll/directx/wine/d3dx9_29/CMakeLists.txt index 431a7830835..41792739aad 100644 --- a/reactos/dll/directx/wine/d3dx9_29/CMakeLists.txt +++ b/reactos/dll/directx/wine/d3dx9_29/CMakeLists.txt @@ -1,6 +1,6 @@ set_rc_compiler() -spec2def(d3dx9_29.dll d3dx9_29.spec) +spec2def(d3dx9_29.dll d3dx9_29.spec GENERATE_STUBS) list(APPEND SOURCE d3dx9_29_main.c diff --git a/reactos/dll/directx/wine/d3dx9_30/CMakeLists.txt b/reactos/dll/directx/wine/d3dx9_30/CMakeLists.txt index d6d00c81cf3..323070c718a 100644 --- a/reactos/dll/directx/wine/d3dx9_30/CMakeLists.txt +++ b/reactos/dll/directx/wine/d3dx9_30/CMakeLists.txt @@ -1,6 +1,6 @@ set_rc_compiler() -spec2def(d3dx9_30.dll d3dx9_30.spec) +spec2def(d3dx9_30.dll d3dx9_30.spec GENERATE_STUBS) list(APPEND SOURCE d3dx9_30_main.c diff --git a/reactos/dll/directx/wine/d3dx9_31/CMakeLists.txt b/reactos/dll/directx/wine/d3dx9_31/CMakeLists.txt index aa45584de71..9e1cde457eb 100644 --- a/reactos/dll/directx/wine/d3dx9_31/CMakeLists.txt +++ b/reactos/dll/directx/wine/d3dx9_31/CMakeLists.txt @@ -1,6 +1,6 @@ set_rc_compiler() -spec2def(d3dx9_31.dll d3dx9_31.spec) +spec2def(d3dx9_31.dll d3dx9_31.spec GENERATE_STUBS) list(APPEND SOURCE d3dx9_31_main.c diff --git a/reactos/dll/directx/wine/d3dx9_32/CMakeLists.txt b/reactos/dll/directx/wine/d3dx9_32/CMakeLists.txt index 249e8195303..37b69a635ea 100644 --- a/reactos/dll/directx/wine/d3dx9_32/CMakeLists.txt +++ b/reactos/dll/directx/wine/d3dx9_32/CMakeLists.txt @@ -1,6 +1,6 @@ set_rc_compiler() -spec2def(d3dx9_32.dll d3dx9_32.spec) +spec2def(d3dx9_32.dll d3dx9_32.spec GENERATE_STUBS) list(APPEND SOURCE d3dx9_32_main.c diff --git a/reactos/dll/directx/wine/d3dx9_33/CMakeLists.txt b/reactos/dll/directx/wine/d3dx9_33/CMakeLists.txt index cefe373c27c..4a38e18ea7b 100644 --- a/reactos/dll/directx/wine/d3dx9_33/CMakeLists.txt +++ b/reactos/dll/directx/wine/d3dx9_33/CMakeLists.txt @@ -1,6 +1,6 @@ set_rc_compiler() -spec2def(d3dx9_33.dll d3dx9_33.spec) +spec2def(d3dx9_33.dll d3dx9_33.spec GENERATE_STUBS) list(APPEND SOURCE d3dx9_33_main.c diff --git a/reactos/dll/directx/wine/d3dx9_34/CMakeLists.txt b/reactos/dll/directx/wine/d3dx9_34/CMakeLists.txt index 7353481b206..a82c5ce4380 100644 --- a/reactos/dll/directx/wine/d3dx9_34/CMakeLists.txt +++ b/reactos/dll/directx/wine/d3dx9_34/CMakeLists.txt @@ -1,6 +1,6 @@ set_rc_compiler() -spec2def(d3dx9_34.dll d3dx9_34.spec) +spec2def(d3dx9_34.dll d3dx9_34.spec GENERATE_STUBS) list(APPEND SOURCE d3dx9_34_main.c diff --git a/reactos/dll/directx/wine/d3dx9_36/CMakeLists.txt b/reactos/dll/directx/wine/d3dx9_36/CMakeLists.txt index 34ca20bf6a6..27f6c3e013b 100644 --- a/reactos/dll/directx/wine/d3dx9_36/CMakeLists.txt +++ b/reactos/dll/directx/wine/d3dx9_36/CMakeLists.txt @@ -1,6 +1,6 @@ set_rc_compiler() -spec2def(d3dx9_36.dll d3dx9_36.spec) +spec2def(d3dx9_36.dll d3dx9_36.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE core.c diff --git a/reactos/dll/directx/wine/ddraw/CMakeLists.txt b/reactos/dll/directx/wine/ddraw/CMakeLists.txt index b05d1a50343..aa39873fbe7 100644 --- a/reactos/dll/directx/wine/ddraw/CMakeLists.txt +++ b/reactos/dll/directx/wine/ddraw/CMakeLists.txt @@ -11,7 +11,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(ddraw.dll ddraw.spec) +spec2def(ddraw.dll ddraw.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE clipper.c diff --git a/reactos/dll/directx/wine/wined3d/CMakeLists.txt b/reactos/dll/directx/wine/wined3d/CMakeLists.txt index 01989775c42..160010a971e 100644 --- a/reactos/dll/directx/wine/wined3d/CMakeLists.txt +++ b/reactos/dll/directx/wine/wined3d/CMakeLists.txt @@ -13,7 +13,7 @@ if(MSVC) add_definitions(-Disinf=!_finite) endif() -spec2def(wined3d.dll wined3d.spec) +spec2def(wined3d.dll wined3d.spec ADD_IMPORTLIB) list(APPEND SOURCE ati_fragment_shader.c diff --git a/reactos/dll/ntdll/CMakeLists.txt b/reactos/dll/ntdll/CMakeLists.txt index a2b2c9da239..5559daa6fdf 100644 --- a/reactos/dll/ntdll/CMakeLists.txt +++ b/reactos/dll/ntdll/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(ntdll.dll def/ntdll.spec) +spec2def(ntdll.dll def/ntdll.spec ADD_IMPORTLIB) add_definitions( -D__NTDLL__ diff --git a/reactos/dll/win32/acledit/CMakeLists.txt b/reactos/dll/win32/acledit/CMakeLists.txt index 5a923400e28..73c3b69b810 100644 --- a/reactos/dll/win32/acledit/CMakeLists.txt +++ b/reactos/dll/win32/acledit/CMakeLists.txt @@ -1,7 +1,7 @@ set_unicode() set_rc_compiler() -spec2def(acledit.dll acledit.spec) +spec2def(acledit.dll acledit.spec ADD_IMPORTLIB) list(APPEND SOURCE acledit.c diff --git a/reactos/dll/win32/aclui/CMakeLists.txt b/reactos/dll/win32/aclui/CMakeLists.txt index 41f8009a3bb..b028b060094 100644 --- a/reactos/dll/win32/aclui/CMakeLists.txt +++ b/reactos/dll/win32/aclui/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(aclui.dll aclui.spec) +spec2def(aclui.dll aclui.spec ADD_IMPORTLIB) set_rc_compiler() set_unicode() diff --git a/reactos/dll/win32/advapi32/CMakeLists.txt b/reactos/dll/win32/advapi32/CMakeLists.txt index d250c718559..0ab480574b4 100644 --- a/reactos/dll/win32/advapi32/CMakeLists.txt +++ b/reactos/dll/win32/advapi32/CMakeLists.txt @@ -1,7 +1,7 @@ set_unicode() -spec2def(advapi32.dll advapi32.spec) +spec2def(advapi32.dll advapi32.spec ADD_IMPORTLIB GENERATE_STUBS) add_definitions(-D_ADVAPI32_) diff --git a/reactos/dll/win32/atl/CMakeLists.txt b/reactos/dll/win32/atl/CMakeLists.txt index 3fc13e9ead8..83742e2c605 100644 --- a/reactos/dll/win32/atl/CMakeLists.txt +++ b/reactos/dll/win32/atl/CMakeLists.txt @@ -10,7 +10,7 @@ add_idl_headers(atl_atliface_header atliface.idl) generate_idl_iids(atliface.idl) set_rc_compiler() -spec2def(atl.dll atl.spec) +spec2def(atl.dll atl.spec ADD_IMPORTLIB) list(APPEND SOURCE atl_ax.c diff --git a/reactos/dll/win32/authz/CMakeLists.txt b/reactos/dll/win32/authz/CMakeLists.txt index 3e5f6573b82..8206a9415d5 100644 --- a/reactos/dll/win32/authz/CMakeLists.txt +++ b/reactos/dll/win32/authz/CMakeLists.txt @@ -1,7 +1,7 @@ set_unicode() -spec2def(authz.dll authz.spec) +spec2def(authz.dll authz.spec GENERATE_STUBS) list(APPEND SOURCE authz.c diff --git a/reactos/dll/win32/avicap32/CMakeLists.txt b/reactos/dll/win32/avicap32/CMakeLists.txt index 268203e3d54..dd9081b7986 100644 --- a/reactos/dll/win32/avicap32/CMakeLists.txt +++ b/reactos/dll/win32/avicap32/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(avicap32.dll avicap32.spec) +spec2def(avicap32.dll avicap32.spec ADD_IMPORTLIB) set_unicode() diff --git a/reactos/dll/win32/avifil32/CMakeLists.txt b/reactos/dll/win32/avifil32/CMakeLists.txt index d1041cbc50b..e27bcaf9c92 100644 --- a/reactos/dll/win32/avifil32/CMakeLists.txt +++ b/reactos/dll/win32/avifil32/CMakeLists.txt @@ -8,7 +8,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(avifil32.dll avifil32.spec) +spec2def(avifil32.dll avifil32.spec ADD_IMPORTLIB) add_library(avifil32 SHARED acmstream.c diff --git a/reactos/dll/win32/batt/CMakeLists.txt b/reactos/dll/win32/batt/CMakeLists.txt index d652c00b7ea..1c016a14bf3 100644 --- a/reactos/dll/win32/batt/CMakeLists.txt +++ b/reactos/dll/win32/batt/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(batt.dll batt.spec) +spec2def(batt.dll batt.spec ADD_IMPORTLIB) set_unicode() set_rc_compiler() diff --git a/reactos/dll/win32/bcrypt/CMakeLists.txt b/reactos/dll/win32/bcrypt/CMakeLists.txt index d618a818321..606ef285d10 100644 --- a/reactos/dll/win32/bcrypt/CMakeLists.txt +++ b/reactos/dll/win32/bcrypt/CMakeLists.txt @@ -3,7 +3,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(bcrypt.dll bcrypt.spec) +spec2def(bcrypt.dll bcrypt.spec GENERATE_STUBS) list(APPEND SOURCE bcrypt_main.c diff --git a/reactos/dll/win32/beepmidi/CMakeLists.txt b/reactos/dll/win32/beepmidi/CMakeLists.txt index bac931cf584..2d1c0b30a6d 100644 --- a/reactos/dll/win32/beepmidi/CMakeLists.txt +++ b/reactos/dll/win32/beepmidi/CMakeLists.txt @@ -1,7 +1,7 @@ set_unicode() -spec2def(beepmidi.dll beepmidi.spec) +spec2def(beepmidi.dll beepmidi.spec ADD_IMPORTLIB) list(APPEND SOURCE beepmidi.c diff --git a/reactos/dll/win32/cabinet/CMakeLists.txt b/reactos/dll/win32/cabinet/CMakeLists.txt index f85c5e0a4d5..b994ccd6088 100644 --- a/reactos/dll/win32/cabinet/CMakeLists.txt +++ b/reactos/dll/win32/cabinet/CMakeLists.txt @@ -3,7 +3,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(cabinet.dll cabinet.spec) +spec2def(cabinet.dll cabinet.spec ADD_IMPORTLIB) list(APPEND SOURCE cabinet_main.c diff --git a/reactos/dll/win32/cards/CMakeLists.txt b/reactos/dll/win32/cards/CMakeLists.txt index 1ef048fef2a..97521f460f7 100644 --- a/reactos/dll/win32/cards/CMakeLists.txt +++ b/reactos/dll/win32/cards/CMakeLists.txt @@ -6,7 +6,7 @@ add_definitions(-DCARDSTYLE_DEFAULT) set_rc_compiler() -spec2def(cards.dll cards.spec) +spec2def(cards.dll cards.spec ADD_IMPORTLIB) list(APPEND SOURCE cards.c diff --git a/reactos/dll/win32/cfgmgr32/CMakeLists.txt b/reactos/dll/win32/cfgmgr32/CMakeLists.txt index ad1bdcb7ab1..a60c417db72 100644 --- a/reactos/dll/win32/cfgmgr32/CMakeLists.txt +++ b/reactos/dll/win32/cfgmgr32/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(cfgmgr32.dll cfgmgr32.spec) +spec2def(cfgmgr32.dll cfgmgr32.spec GENERATE_STUBS) list(APPEND SOURCE cfgmgr32.rc diff --git a/reactos/dll/win32/clusapi/CMakeLists.txt b/reactos/dll/win32/clusapi/CMakeLists.txt index c80015b6efb..c95a4c1f4b3 100644 --- a/reactos/dll/win32/clusapi/CMakeLists.txt +++ b/reactos/dll/win32/clusapi/CMakeLists.txt @@ -4,7 +4,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(clusapi.dll clusapi.spec) +spec2def(clusapi.dll clusapi.spec GENERATE_STUBS) list(APPEND SOURCE clusapi.c diff --git a/reactos/dll/win32/comctl32/CMakeLists.txt b/reactos/dll/win32/comctl32/CMakeLists.txt index 2bf968616b8..0c17d9aa2f1 100644 --- a/reactos/dll/win32/comctl32/CMakeLists.txt +++ b/reactos/dll/win32/comctl32/CMakeLists.txt @@ -12,7 +12,7 @@ add_definitions(-D_WIN32_WINNT=0x600) include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(comctl32.dll comctl32.spec) +spec2def(comctl32.dll comctl32.spec ADD_IMPORTLIB) list(APPEND SOURCE animate.c diff --git a/reactos/dll/win32/comdlg32/CMakeLists.txt b/reactos/dll/win32/comdlg32/CMakeLists.txt index 90918029bb6..76d102e22a3 100644 --- a/reactos/dll/win32/comdlg32/CMakeLists.txt +++ b/reactos/dll/win32/comdlg32/CMakeLists.txt @@ -7,7 +7,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(comdlg32.dll comdlg32.spec) +spec2def(comdlg32.dll comdlg32.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE cdlg32.c diff --git a/reactos/dll/win32/compstui/CMakeLists.txt b/reactos/dll/win32/compstui/CMakeLists.txt index c4fbafa2238..67a7d913c6f 100644 --- a/reactos/dll/win32/compstui/CMakeLists.txt +++ b/reactos/dll/win32/compstui/CMakeLists.txt @@ -3,7 +3,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(compstui.dll compstui.spec) +spec2def(compstui.dll compstui.spec ADD_IMPORTLIB) list(APPEND SOURCE compstui_main.c diff --git a/reactos/dll/win32/credui/CMakeLists.txt b/reactos/dll/win32/credui/CMakeLists.txt index aa4783407c0..91b420e9e79 100644 --- a/reactos/dll/win32/credui/CMakeLists.txt +++ b/reactos/dll/win32/credui/CMakeLists.txt @@ -5,7 +5,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(credui.dll credui.spec) +spec2def(credui.dll credui.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE credui_main.c diff --git a/reactos/dll/win32/crypt32/CMakeLists.txt b/reactos/dll/win32/crypt32/CMakeLists.txt index 22e772dd876..f46dc9a35ed 100644 --- a/reactos/dll/win32/crypt32/CMakeLists.txt +++ b/reactos/dll/win32/crypt32/CMakeLists.txt @@ -10,7 +10,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(crypt32.dll crypt32.spec) +spec2def(crypt32.dll crypt32.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE base64.c diff --git a/reactos/dll/win32/cryptdlg/CMakeLists.txt b/reactos/dll/win32/cryptdlg/CMakeLists.txt index 8dc706b3603..0898714f161 100644 --- a/reactos/dll/win32/cryptdlg/CMakeLists.txt +++ b/reactos/dll/win32/cryptdlg/CMakeLists.txt @@ -4,7 +4,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(cryptdlg.dll cryptdlg.spec) +spec2def(cryptdlg.dll cryptdlg.spec GENERATE_STUBS) list(APPEND SOURCE main.c diff --git a/reactos/dll/win32/cryptnet/CMakeLists.txt b/reactos/dll/win32/cryptnet/CMakeLists.txt index 51200f6a14f..005171d19a3 100644 --- a/reactos/dll/win32/cryptnet/CMakeLists.txt +++ b/reactos/dll/win32/cryptnet/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(cryptnet.dll cryptnet.spec) +spec2def(cryptnet.dll cryptnet.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE cryptnet_main.c diff --git a/reactos/dll/win32/cryptui/CMakeLists.txt b/reactos/dll/win32/cryptui/CMakeLists.txt index 17682b820a3..c9367857467 100644 --- a/reactos/dll/win32/cryptui/CMakeLists.txt +++ b/reactos/dll/win32/cryptui/CMakeLists.txt @@ -7,7 +7,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(cryptui.dll cryptui.spec) +spec2def(cryptui.dll cryptui.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE main.c diff --git a/reactos/dll/win32/dbghelp/CMakeLists.txt b/reactos/dll/win32/dbghelp/CMakeLists.txt index 59eacd22aba..e3fce2c5532 100644 --- a/reactos/dll/win32/dbghelp/CMakeLists.txt +++ b/reactos/dll/win32/dbghelp/CMakeLists.txt @@ -14,7 +14,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(dbghelp.dll dbghelp.spec) +spec2def(dbghelp.dll dbghelp.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE coff.c diff --git a/reactos/dll/win32/dciman32/CMakeLists.txt b/reactos/dll/win32/dciman32/CMakeLists.txt index 038d75a7356..1243aec2c0c 100644 --- a/reactos/dll/win32/dciman32/CMakeLists.txt +++ b/reactos/dll/win32/dciman32/CMakeLists.txt @@ -5,7 +5,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(dciman32.dll dciman32.spec) +spec2def(dciman32.dll dciman32.spec GENERATE_STUBS) list(APPEND SOURCE dciman_main.c diff --git a/reactos/dll/win32/devmgr/CMakeLists.txt b/reactos/dll/win32/devmgr/CMakeLists.txt index 07959c66ad5..a39077cc8d2 100644 --- a/reactos/dll/win32/devmgr/CMakeLists.txt +++ b/reactos/dll/win32/devmgr/CMakeLists.txt @@ -2,7 +2,7 @@ set_unicode() set_rc_compiler() -spec2def(devmgr.dll devmgr.spec) +spec2def(devmgr.dll devmgr.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE devmgr.rc diff --git a/reactos/dll/win32/dhcpcsvc/CMakeLists.txt b/reactos/dll/win32/dhcpcsvc/CMakeLists.txt index f82c89cdfc8..43a4557c34d 100644 --- a/reactos/dll/win32/dhcpcsvc/CMakeLists.txt +++ b/reactos/dll/win32/dhcpcsvc/CMakeLists.txt @@ -3,7 +3,7 @@ add_definitions(-Dtzset=_tzset) include_directories(include) -spec2def(dhcpcsvc.dll dhcpcsvc.spec) +spec2def(dhcpcsvc.dll dhcpcsvc.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE dhcp/adapter.c diff --git a/reactos/dll/win32/dnsapi/CMakeLists.txt b/reactos/dll/win32/dnsapi/CMakeLists.txt index da10aab172c..7beb3b2dcc9 100644 --- a/reactos/dll/win32/dnsapi/CMakeLists.txt +++ b/reactos/dll/win32/dnsapi/CMakeLists.txt @@ -6,7 +6,7 @@ include_directories( add_definitions(-DADNS_JGAA_WIN32) -spec2def(dnsapi.dll dnsapi.spec) +spec2def(dnsapi.dll dnsapi.spec ADD_IMPORTLIB) list(APPEND SOURCE dnsapi/adns.c diff --git a/reactos/dll/win32/dwmapi/CMakeLists.txt b/reactos/dll/win32/dwmapi/CMakeLists.txt index 5f775cf2f77..de27012fddd 100644 --- a/reactos/dll/win32/dwmapi/CMakeLists.txt +++ b/reactos/dll/win32/dwmapi/CMakeLists.txt @@ -5,7 +5,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(dwmapi.dll dwmapi.spec) +spec2def(dwmapi.dll dwmapi.spec GENERATE_STUBS) list(APPEND SOURCE dwmapi_main.c diff --git a/reactos/dll/win32/faultrep/CMakeLists.txt b/reactos/dll/win32/faultrep/CMakeLists.txt index 38147a4ce28..76085d9ca0f 100644 --- a/reactos/dll/win32/faultrep/CMakeLists.txt +++ b/reactos/dll/win32/faultrep/CMakeLists.txt @@ -5,7 +5,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(faultrep.dll faultrep.spec) +spec2def(faultrep.dll faultrep.spec GENERATE_STUBS) list(APPEND SOURCE faultrep.c diff --git a/reactos/dll/win32/fmifs/CMakeLists.txt b/reactos/dll/win32/fmifs/CMakeLists.txt index 8773f74176b..8280e5150d3 100644 --- a/reactos/dll/win32/fmifs/CMakeLists.txt +++ b/reactos/dll/win32/fmifs/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(fmifs.dll fmifs.spec) +spec2def(fmifs.dll fmifs.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE chkdsk.c diff --git a/reactos/dll/win32/fusion/CMakeLists.txt b/reactos/dll/win32/fusion/CMakeLists.txt index fc43e3f7bb2..8fa2bb2f54b 100644 --- a/reactos/dll/win32/fusion/CMakeLists.txt +++ b/reactos/dll/win32/fusion/CMakeLists.txt @@ -5,7 +5,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(fusion.dll fusion.spec) +spec2def(fusion.dll fusion.spec GENERATE_STUBS) list(APPEND SOURCE asmcache.c diff --git a/reactos/dll/win32/gdi32/CMakeLists.txt b/reactos/dll/win32/gdi32/CMakeLists.txt index a3aaeb13479..247857004c6 100644 --- a/reactos/dll/win32/gdi32/CMakeLists.txt +++ b/reactos/dll/win32/gdi32/CMakeLists.txt @@ -5,7 +5,7 @@ add_definitions(-DLANGPACK) include_directories(include) -spec2def(gdi32.dll gdi32.spec) +spec2def(gdi32.dll gdi32.spec ADD_IMPORTLIB) if(ARCH MATCHES i386) list(APPEND SOURCE diff --git a/reactos/dll/win32/gdiplus/CMakeLists.txt b/reactos/dll/win32/gdiplus/CMakeLists.txt index cf2e3742b0e..9f7c243f54c 100644 --- a/reactos/dll/win32/gdiplus/CMakeLists.txt +++ b/reactos/dll/win32/gdiplus/CMakeLists.txt @@ -7,7 +7,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(gdiplus.dll gdiplus.spec) +spec2def(gdiplus.dll gdiplus.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE brush.c diff --git a/reactos/dll/win32/getuname/CMakeLists.txt b/reactos/dll/win32/getuname/CMakeLists.txt index c0b1308b3e2..662cc4bb5e5 100644 --- a/reactos/dll/win32/getuname/CMakeLists.txt +++ b/reactos/dll/win32/getuname/CMakeLists.txt @@ -3,7 +3,7 @@ set_unicode() include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(getuname.dll getuname.spec) +spec2def(getuname.dll getuname.spec ADD_IMPORTLIB) add_library(getuname SHARED getuname.c diff --git a/reactos/dll/win32/glu32/CMakeLists.txt b/reactos/dll/win32/glu32/CMakeLists.txt index 24f98502940..de38fb04db9 100644 --- a/reactos/dll/win32/glu32/CMakeLists.txt +++ b/reactos/dll/win32/glu32/CMakeLists.txt @@ -12,7 +12,7 @@ include_directories( libtess libutil) -spec2def(glu32.dll glu32.spec) +spec2def(glu32.dll glu32.spec ADD_IMPORTLIB) list(APPEND SOURCE libnurbs/interface/bezierEval.cc diff --git a/reactos/dll/win32/hlink/CMakeLists.txt b/reactos/dll/win32/hlink/CMakeLists.txt index 4229f6dccb6..b8143ffd32d 100644 --- a/reactos/dll/win32/hlink/CMakeLists.txt +++ b/reactos/dll/win32/hlink/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(hlink.dll hlink.spec) +spec2def(hlink.dll hlink.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE browse_ctx.c diff --git a/reactos/dll/win32/httpapi/CMakeLists.txt b/reactos/dll/win32/httpapi/CMakeLists.txt index 70e942e8ca9..9a16ff7ac9e 100644 --- a/reactos/dll/win32/httpapi/CMakeLists.txt +++ b/reactos/dll/win32/httpapi/CMakeLists.txt @@ -3,7 +3,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(httpapi.dll httpapi.spec) +spec2def(httpapi.dll httpapi.spec GENERATE_STUBS) list(APPEND SOURCE httpapi_main.c diff --git a/reactos/dll/win32/icmp/CMakeLists.txt b/reactos/dll/win32/icmp/CMakeLists.txt index da27f38a60c..ac09f59e9b0 100644 --- a/reactos/dll/win32/icmp/CMakeLists.txt +++ b/reactos/dll/win32/icmp/CMakeLists.txt @@ -3,7 +3,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(icmp.dll icmp.spec) +spec2def(icmp.dll icmp.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE icmp_main.c diff --git a/reactos/dll/win32/imagehlp/CMakeLists.txt b/reactos/dll/win32/imagehlp/CMakeLists.txt index 573098c670e..f835dc99fee 100644 --- a/reactos/dll/win32/imagehlp/CMakeLists.txt +++ b/reactos/dll/win32/imagehlp/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D_IMAGEHLP_SOURCE_) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(imagehlp.dll imagehlp.spec) +spec2def(imagehlp.dll imagehlp.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE access.c diff --git a/reactos/dll/win32/imm32/CMakeLists.txt b/reactos/dll/win32/imm32/CMakeLists.txt index dfdd313b82f..c3dc1cb91eb 100644 --- a/reactos/dll/win32/imm32/CMakeLists.txt +++ b/reactos/dll/win32/imm32/CMakeLists.txt @@ -12,7 +12,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(imm32.dll imm32.spec) +spec2def(imm32.dll imm32.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE imm.c diff --git a/reactos/dll/win32/inetcomm/CMakeLists.txt b/reactos/dll/win32/inetcomm/CMakeLists.txt index 0e0a1c7d589..10d357e5794 100644 --- a/reactos/dll/win32/inetcomm/CMakeLists.txt +++ b/reactos/dll/win32/inetcomm/CMakeLists.txt @@ -6,7 +6,7 @@ add_definitions(-D_WIN32_WINNT=0x600) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(inetcomm.dll inetcomm.spec) +spec2def(inetcomm.dll inetcomm.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE imaptransport.c diff --git a/reactos/dll/win32/inetmib1/CMakeLists.txt b/reactos/dll/win32/inetmib1/CMakeLists.txt index 84b92fc5424..9628b093bf9 100644 --- a/reactos/dll/win32/inetmib1/CMakeLists.txt +++ b/reactos/dll/win32/inetmib1/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(inetmib1.dll inetmib1.spec) +spec2def(inetmib1.dll inetmib1.spec GENERATE_STUBS) list(APPEND SOURCE main.c diff --git a/reactos/dll/win32/initpki/CMakeLists.txt b/reactos/dll/win32/initpki/CMakeLists.txt index 6133df72d0c..ea912e979a3 100644 --- a/reactos/dll/win32/initpki/CMakeLists.txt +++ b/reactos/dll/win32/initpki/CMakeLists.txt @@ -3,7 +3,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(initpki.dll initpki.spec) +spec2def(initpki.dll initpki.spec GENERATE_STUBS) list(APPEND SOURCE main.c diff --git a/reactos/dll/win32/inseng/CMakeLists.txt b/reactos/dll/win32/inseng/CMakeLists.txt index 69a69917248..3b93c366f11 100644 --- a/reactos/dll/win32/inseng/CMakeLists.txt +++ b/reactos/dll/win32/inseng/CMakeLists.txt @@ -6,7 +6,7 @@ add_definitions(-D_WIN32_WINNT=0x600) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(inseng.dll inseng.spec) +spec2def(inseng.dll inseng.spec GENERATE_STUBS) list(APPEND SOURCE inseng_main.c diff --git a/reactos/dll/win32/iphlpapi/CMakeLists.txt b/reactos/dll/win32/iphlpapi/CMakeLists.txt index c8ae984d34a..6b3938355a6 100644 --- a/reactos/dll/win32/iphlpapi/CMakeLists.txt +++ b/reactos/dll/win32/iphlpapi/CMakeLists.txt @@ -6,7 +6,7 @@ include_directories( ${REACTOS_SOURCE_DIR}/dll/win32/dhcpcsvc/include ${REACTOS_SOURCE_DIR}/lib/tdilib) -spec2def(iphlpapi.dll iphlpapi.spec) +spec2def(iphlpapi.dll iphlpapi.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE dhcp_reactos.c diff --git a/reactos/dll/win32/itircl/CMakeLists.txt b/reactos/dll/win32/itircl/CMakeLists.txt index 57cc803e403..dcd135d54b9 100644 --- a/reactos/dll/win32/itircl/CMakeLists.txt +++ b/reactos/dll/win32/itircl/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(itircl.dll itircl.spec) +spec2def(itircl.dll itircl.spec GENERATE_STUBS) list(APPEND SOURCE itircl_main.c diff --git a/reactos/dll/win32/itss/CMakeLists.txt b/reactos/dll/win32/itss/CMakeLists.txt index 188c2c37784..e6bd785341a 100644 --- a/reactos/dll/win32/itss/CMakeLists.txt +++ b/reactos/dll/win32/itss/CMakeLists.txt @@ -4,7 +4,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(itss.dll itss.spec) +spec2def(itss.dll itss.spec GENERATE_STUBS) list(APPEND SOURCE chm_lib.c diff --git a/reactos/dll/win32/kernel32/CMakeLists.txt b/reactos/dll/win32/kernel32/CMakeLists.txt index d60988f39c4..8840058a2ad 100644 --- a/reactos/dll/win32/kernel32/CMakeLists.txt +++ b/reactos/dll/win32/kernel32/CMakeLists.txt @@ -8,7 +8,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys) set_rc_compiler() -spec2def(kernel32.dll kernel32.spec) +spec2def(kernel32.dll kernel32.spec ADD_IMPORTLIB) list(APPEND SOURCE debug/debugger.c diff --git a/reactos/dll/win32/loadperf/CMakeLists.txt b/reactos/dll/win32/loadperf/CMakeLists.txt index 2e5d86ba3d0..7e54e511749 100644 --- a/reactos/dll/win32/loadperf/CMakeLists.txt +++ b/reactos/dll/win32/loadperf/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(loadperf.dll loadperf.spec) +spec2def(loadperf.dll loadperf.spec ADD_IMPORTLIB) add_library(loadperf SHARED loadperf_main.c diff --git a/reactos/dll/win32/localspl/CMakeLists.txt b/reactos/dll/win32/localspl/CMakeLists.txt index 5ce1b18826f..958d956d59d 100644 --- a/reactos/dll/win32/localspl/CMakeLists.txt +++ b/reactos/dll/win32/localspl/CMakeLists.txt @@ -8,7 +8,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(localspl.dll localspl.spec) +spec2def(localspl.dll localspl.spec GENERATE_STUBS) list(APPEND SOURCE localmon.c diff --git a/reactos/dll/win32/localui/CMakeLists.txt b/reactos/dll/win32/localui/CMakeLists.txt index 7221755ddfd..bbe574032ee 100644 --- a/reactos/dll/win32/localui/CMakeLists.txt +++ b/reactos/dll/win32/localui/CMakeLists.txt @@ -4,7 +4,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(localui.dll localui.spec) +spec2def(localui.dll localui.spec ADD_IMPORTLIB) list(APPEND SOURCE localui.c diff --git a/reactos/dll/win32/lpk/CMakeLists.txt b/reactos/dll/win32/lpk/CMakeLists.txt index 3e5d6275d11..efb8caa83b8 100644 --- a/reactos/dll/win32/lpk/CMakeLists.txt +++ b/reactos/dll/win32/lpk/CMakeLists.txt @@ -4,7 +4,7 @@ set_unicode() add_definitions(-DLANGPACK) include_directories(include) -spec2def(lpk.dll lpk.spec) +spec2def(lpk.dll lpk.spec ADD_IMPORTLIB) list(APPEND SOURCE dllmain.c diff --git a/reactos/dll/win32/lsasrv/CMakeLists.txt b/reactos/dll/win32/lsasrv/CMakeLists.txt index a25157761a8..eb0a2287e07 100644 --- a/reactos/dll/win32/lsasrv/CMakeLists.txt +++ b/reactos/dll/win32/lsasrv/CMakeLists.txt @@ -7,7 +7,7 @@ include_directories( set_rc_compiler() -spec2def(lsasrv.dll lsasrv.spec) +spec2def(lsasrv.dll lsasrv.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE authport.c diff --git a/reactos/dll/win32/lz32/CMakeLists.txt b/reactos/dll/win32/lz32/CMakeLists.txt index a120899e5d2..9e54f8b8e05 100644 --- a/reactos/dll/win32/lz32/CMakeLists.txt +++ b/reactos/dll/win32/lz32/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(lz32.dll lz32.spec) +spec2def(lz32.dll lz32.spec ADD_IMPORTLIB) list(APPEND SOURCE version.rc diff --git a/reactos/dll/win32/mapi32/CMakeLists.txt b/reactos/dll/win32/mapi32/CMakeLists.txt index 5c1484e7485..9e0fa1b3cf5 100644 --- a/reactos/dll/win32/mapi32/CMakeLists.txt +++ b/reactos/dll/win32/mapi32/CMakeLists.txt @@ -4,7 +4,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(mapi32.dll mapi32.spec) +spec2def(mapi32.dll mapi32.spec GENERATE_STUBS) list(APPEND SOURCE imalloc.c diff --git a/reactos/dll/win32/mlang/CMakeLists.txt b/reactos/dll/win32/mlang/CMakeLists.txt index d30cbcc24de..a28f824f945 100644 --- a/reactos/dll/win32/mlang/CMakeLists.txt +++ b/reactos/dll/win32/mlang/CMakeLists.txt @@ -6,7 +6,7 @@ add_definitions(-D_WIN32_WINNT=0x600) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(mlang.dll mlang.spec) +spec2def(mlang.dll mlang.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE mlang.c diff --git a/reactos/dll/win32/modemui/CMakeLists.txt b/reactos/dll/win32/modemui/CMakeLists.txt index d4d7aac0b0a..695e3a2a55c 100644 --- a/reactos/dll/win32/modemui/CMakeLists.txt +++ b/reactos/dll/win32/modemui/CMakeLists.txt @@ -2,7 +2,7 @@ set_unicode() set_rc_compiler() -spec2def(modemui.dll modemui.spec) +spec2def(modemui.dll modemui.spec GENERATE_STUBS) list(APPEND SOURCE modemui.c diff --git a/reactos/dll/win32/mpr/CMakeLists.txt b/reactos/dll/win32/mpr/CMakeLists.txt index 65789654de2..3e37c31a9dd 100644 --- a/reactos/dll/win32/mpr/CMakeLists.txt +++ b/reactos/dll/win32/mpr/CMakeLists.txt @@ -7,7 +7,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(mpr.dll mpr.spec) +spec2def(mpr.dll mpr.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE auth.c diff --git a/reactos/dll/win32/mprapi/CMakeLists.txt b/reactos/dll/win32/mprapi/CMakeLists.txt index 95c08f67074..5c23902ed42 100644 --- a/reactos/dll/win32/mprapi/CMakeLists.txt +++ b/reactos/dll/win32/mprapi/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(mprapi.dll mprapi.spec) +spec2def(mprapi.dll mprapi.spec GENERATE_STUBS) list(APPEND SOURCE mprapi.c diff --git a/reactos/dll/win32/msacm32/CMakeLists.txt b/reactos/dll/win32/msacm32/CMakeLists.txt index 8eb85ac3eb1..6d9af70c5c6 100644 --- a/reactos/dll/win32/msacm32/CMakeLists.txt +++ b/reactos/dll/win32/msacm32/CMakeLists.txt @@ -5,7 +5,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(msacm32.dll msacm32.spec) +spec2def(msacm32.dll msacm32.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE driver.c diff --git a/reactos/dll/win32/mscms/CMakeLists.txt b/reactos/dll/win32/mscms/CMakeLists.txt index 8b3f6d9e74c..c990c7e9144 100644 --- a/reactos/dll/win32/mscms/CMakeLists.txt +++ b/reactos/dll/win32/mscms/CMakeLists.txt @@ -4,7 +4,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(mscms.dll mscms.spec) +spec2def(mscms.dll mscms.spec GENERATE_STUBS) list(APPEND SOURCE handle.c diff --git a/reactos/dll/win32/mscoree/CMakeLists.txt b/reactos/dll/win32/mscoree/CMakeLists.txt index 75d41f63ddb..5b47c89d8c8 100644 --- a/reactos/dll/win32/mscoree/CMakeLists.txt +++ b/reactos/dll/win32/mscoree/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(mscoree.dll mscoree.spec) +spec2def(mscoree.dll mscoree.spec GENERATE_STUBS) list(APPEND SOURCE corruntimehost.c diff --git a/reactos/dll/win32/msctf/CMakeLists.txt b/reactos/dll/win32/msctf/CMakeLists.txt index b4ec9dfdc3b..69d3089eaef 100644 --- a/reactos/dll/win32/msctf/CMakeLists.txt +++ b/reactos/dll/win32/msctf/CMakeLists.txt @@ -8,7 +8,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(msctf.dll msctf.spec) +spec2def(msctf.dll msctf.spec GENERATE_STUBS) list(APPEND SOURCE categorymgr.c diff --git a/reactos/dll/win32/msftedit/CMakeLists.txt b/reactos/dll/win32/msftedit/CMakeLists.txt index 89b40b56f31..eb7676ec73e 100644 --- a/reactos/dll/win32/msftedit/CMakeLists.txt +++ b/reactos/dll/win32/msftedit/CMakeLists.txt @@ -4,7 +4,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(msftedit.dll msftedit.spec) +spec2def(msftedit.dll msftedit.spec GENERATE_STUBS) list(APPEND SOURCE msftedit_main.c diff --git a/reactos/dll/win32/msgina/CMakeLists.txt b/reactos/dll/win32/msgina/CMakeLists.txt index 61071b9a646..cf3262e6d4f 100644 --- a/reactos/dll/win32/msgina/CMakeLists.txt +++ b/reactos/dll/win32/msgina/CMakeLists.txt @@ -5,7 +5,7 @@ include_directories( set_rc_compiler() -spec2def(msgina.dll msgina.spec) +spec2def(msgina.dll msgina.spec GENERATE_STUBS) list(APPEND SOURCE gui.c diff --git a/reactos/dll/win32/mshtml/CMakeLists.txt b/reactos/dll/win32/mshtml/CMakeLists.txt index d91ec8a769f..2d3aa5877d2 100644 --- a/reactos/dll/win32/mshtml/CMakeLists.txt +++ b/reactos/dll/win32/mshtml/CMakeLists.txt @@ -9,7 +9,7 @@ add_idl_Headers(mshtml_nsiface_header nsiface.idl) set_rc_compiler() -spec2def(mshtml.dll mshtml.spec) +spec2def(mshtml.dll mshtml.spec GENERATE_STUBS) list(APPEND SOURCE conpoint.c diff --git a/reactos/dll/win32/msi/CMakeLists.txt b/reactos/dll/win32/msi/CMakeLists.txt index 607b8e8c7c7..7b89c27ff2f 100644 --- a/reactos/dll/win32/msi/CMakeLists.txt +++ b/reactos/dll/win32/msi/CMakeLists.txt @@ -6,7 +6,7 @@ remove_definitions(-D_WIN32_WINNT=0x502) add_definitions(-D_WIN32_WINNT=0x600) set_rc_compiler() -spec2def(msi.dll msi.spec) +spec2def(msi.dll msi.spec ADD_IMPORTLIB GENERATE_STUBS) generate_idl_iids(msiserver.idl) diff --git a/reactos/dll/win32/msimg32/CMakeLists.txt b/reactos/dll/win32/msimg32/CMakeLists.txt index f571b8b0114..f35017feb33 100644 --- a/reactos/dll/win32/msimg32/CMakeLists.txt +++ b/reactos/dll/win32/msimg32/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(msimg32.dll msimg32.spec) +spec2def(msimg32.dll msimg32.spec ADD_IMPORTLIB) list(APPEND SOURCE msimg32_main.c diff --git a/reactos/dll/win32/msimtf/CMakeLists.txt b/reactos/dll/win32/msimtf/CMakeLists.txt index 3832d3f787b..c7b0947d873 100644 --- a/reactos/dll/win32/msimtf/CMakeLists.txt +++ b/reactos/dll/win32/msimtf/CMakeLists.txt @@ -4,7 +4,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(msimtf.dll msimtf.spec) +spec2def(msimtf.dll msimtf.spec GENERATE_STUBS) list(APPEND SOURCE activeimmapp.c diff --git a/reactos/dll/win32/msisip/CMakeLists.txt b/reactos/dll/win32/msisip/CMakeLists.txt index c212187aaf3..546cfec078a 100644 --- a/reactos/dll/win32/msisip/CMakeLists.txt +++ b/reactos/dll/win32/msisip/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(msisip.dll msisip.spec) +spec2def(msisip.dll msisip.spec GENERATE_STUBS) list(APPEND SOURCE main.c diff --git a/reactos/dll/win32/msports/CMakeLists.txt b/reactos/dll/win32/msports/CMakeLists.txt index e95a1eea379..bf1e8fdffbe 100644 --- a/reactos/dll/win32/msports/CMakeLists.txt +++ b/reactos/dll/win32/msports/CMakeLists.txt @@ -1,7 +1,7 @@ set_unicode() -spec2def(msports.dll msports.spec) +spec2def(msports.dll msports.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE classinst.c diff --git a/reactos/dll/win32/mssign32/CMakeLists.txt b/reactos/dll/win32/mssign32/CMakeLists.txt index 8b2312221f5..97a25eff22c 100644 --- a/reactos/dll/win32/mssign32/CMakeLists.txt +++ b/reactos/dll/win32/mssign32/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(mssign32.dll mssign32.spec) +spec2def(mssign32.dll mssign32.spec GENERATE_STUBS) list(APPEND SOURCE mssign32_main.c diff --git a/reactos/dll/win32/mssip32/CMakeLists.txt b/reactos/dll/win32/mssip32/CMakeLists.txt index 0e3d3eebedf..e60584e4a32 100644 --- a/reactos/dll/win32/mssip32/CMakeLists.txt +++ b/reactos/dll/win32/mssip32/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(mssip32.dll mssip32.spec) +spec2def(mssip32.dll mssip32.spec GENERATE_STUBS) list(APPEND SOURCE main.c diff --git a/reactos/dll/win32/mstask/CMakeLists.txt b/reactos/dll/win32/mstask/CMakeLists.txt index cf5b7571024..0c3023e9448 100644 --- a/reactos/dll/win32/mstask/CMakeLists.txt +++ b/reactos/dll/win32/mstask/CMakeLists.txt @@ -13,7 +13,7 @@ set_rc_compiler() generate_idl_iids(mstask_local.idl) -spec2def(mstask.dll mstask.spec) +spec2def(mstask.dll mstask.spec GENERATE_STUBS) list(APPEND SOURCE factory.c diff --git a/reactos/dll/win32/msvcrt/CMakeLists.txt b/reactos/dll/win32/msvcrt/CMakeLists.txt index 6e614730c78..fbf8736808b 100644 --- a/reactos/dll/win32/msvcrt/CMakeLists.txt +++ b/reactos/dll/win32/msvcrt/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(msvcrt.dll msvcrt.spec) +spec2def(msvcrt.dll msvcrt.spec ADD_IMPORTLIB) add_definitions( -DUSE_MSVCRT_PREFIX diff --git a/reactos/dll/win32/msvfw32/CMakeLists.txt b/reactos/dll/win32/msvfw32/CMakeLists.txt index 57367f75378..72d79ed9662 100644 --- a/reactos/dll/win32/msvfw32/CMakeLists.txt +++ b/reactos/dll/win32/msvfw32/CMakeLists.txt @@ -5,7 +5,7 @@ add_definitions(-D__WINESRC__) add_definitions(-D_WINE) set_rc_compiler() -spec2def(msvfw32.dll msvfw32.spec) +spec2def(msvfw32.dll msvfw32.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE mciwnd.c diff --git a/reactos/dll/win32/mswsock/CMakeLists.txt b/reactos/dll/win32/mswsock/CMakeLists.txt index 8d501879f33..0690a7dd602 100644 --- a/reactos/dll/win32/mswsock/CMakeLists.txt +++ b/reactos/dll/win32/mswsock/CMakeLists.txt @@ -4,7 +4,7 @@ set_unicode() add_definitions(-DLE) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(mswsock.dll mswsock.spec) +spec2def(mswsock.dll mswsock.spec ADD_IMPORTLIB) list(APPEND SOURCE extensions.c diff --git a/reactos/dll/win32/msxml3/CMakeLists.txt b/reactos/dll/win32/msxml3/CMakeLists.txt index bfa9239cd82..0c49fbf87fb 100644 --- a/reactos/dll/win32/msxml3/CMakeLists.txt +++ b/reactos/dll/win32/msxml3/CMakeLists.txt @@ -18,7 +18,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(msxml3.dll msxml3.spec) +spec2def(msxml3.dll msxml3.spec GENERATE_STUBS) list(APPEND SOURCE attribute.c diff --git a/reactos/dll/win32/nddeapi/CMakeLists.txt b/reactos/dll/win32/nddeapi/CMakeLists.txt index a085f6bf6d0..fca598bee1c 100644 --- a/reactos/dll/win32/nddeapi/CMakeLists.txt +++ b/reactos/dll/win32/nddeapi/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(nddeapi.dll nddeapi.spec) +spec2def(nddeapi.dll nddeapi.spec GENERATE_STUBS) list(APPEND SOURCE nddeapi.c diff --git a/reactos/dll/win32/netapi32/CMakeLists.txt b/reactos/dll/win32/netapi32/CMakeLists.txt index 988a6461ed1..ccd7d7a913e 100644 --- a/reactos/dll/win32/netapi32/CMakeLists.txt +++ b/reactos/dll/win32/netapi32/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(netapi32.dll netapi32.spec) +spec2def(netapi32.dll netapi32.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE access.c diff --git a/reactos/dll/win32/netcfgx/CMakeLists.txt b/reactos/dll/win32/netcfgx/CMakeLists.txt index fb2e955a563..1ded6d9edac 100644 --- a/reactos/dll/win32/netcfgx/CMakeLists.txt +++ b/reactos/dll/win32/netcfgx/CMakeLists.txt @@ -2,7 +2,7 @@ remove_definitions(-D_WIN32_WINNT=0x502) add_definitions(-D_WIN32_WINNT=0x600) set_rc_compiler() -spec2def(netcfgx.dll netcfgx.spec) +spec2def(netcfgx.dll netcfgx.spec GENERATE_STUBS) list(APPEND SOURCE netcfgx.c diff --git a/reactos/dll/win32/netshell/CMakeLists.txt b/reactos/dll/win32/netshell/CMakeLists.txt index 9dc74cc503f..78d0655dfeb 100644 --- a/reactos/dll/win32/netshell/CMakeLists.txt +++ b/reactos/dll/win32/netshell/CMakeLists.txt @@ -3,7 +3,7 @@ remove_definitions(-D_WIN32_WINNT=0x502) add_definitions(-D_WIN32_WINNT=0x600) set_rc_compiler() -spec2def(netshell.dll netshell.spec) +spec2def(netshell.dll netshell.spec GENERATE_STUBS) list(APPEND SOURCE netshell.c diff --git a/reactos/dll/win32/newdev/CMakeLists.txt b/reactos/dll/win32/newdev/CMakeLists.txt index d8c112f149d..faca4245d0a 100644 --- a/reactos/dll/win32/newdev/CMakeLists.txt +++ b/reactos/dll/win32/newdev/CMakeLists.txt @@ -1,7 +1,7 @@ set_unicode() -spec2def(newdev.dll newdev.spec) +spec2def(newdev.dll newdev.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE newdev.c diff --git a/reactos/dll/win32/ntdsapi/CMakeLists.txt b/reactos/dll/win32/ntdsapi/CMakeLists.txt index 60f13dbc4d2..abaa18eeca5 100644 --- a/reactos/dll/win32/ntdsapi/CMakeLists.txt +++ b/reactos/dll/win32/ntdsapi/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(ntdsapi.dll ntdsapi.spec) +spec2def(ntdsapi.dll ntdsapi.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE ntdsapi.c diff --git a/reactos/dll/win32/ntlanman/CMakeLists.txt b/reactos/dll/win32/ntlanman/CMakeLists.txt index a97c616cb7a..1fc46c6d23d 100644 --- a/reactos/dll/win32/ntlanman/CMakeLists.txt +++ b/reactos/dll/win32/ntlanman/CMakeLists.txt @@ -1,7 +1,7 @@ set_unicode() -spec2def(ntlanman.dll ntlanman.spec) +spec2def(ntlanman.dll ntlanman.spec GENERATE_STUBS) list(APPEND SOURCE ntlanman.c diff --git a/reactos/dll/win32/ntprint/CMakeLists.txt b/reactos/dll/win32/ntprint/CMakeLists.txt index ff7d1681211..1c1ea786480 100644 --- a/reactos/dll/win32/ntprint/CMakeLists.txt +++ b/reactos/dll/win32/ntprint/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) set_rc_compiler() -spec2def(ntprint.dll ntprint.spec) +spec2def(ntprint.dll ntprint.spec GENERATE_STUBS) list(APPEND SOURCE ntprint.c diff --git a/reactos/dll/win32/odbc32/CMakeLists.txt b/reactos/dll/win32/odbc32/CMakeLists.txt index da84e343c27..6063f8ec56c 100644 --- a/reactos/dll/win32/odbc32/CMakeLists.txt +++ b/reactos/dll/win32/odbc32/CMakeLists.txt @@ -3,7 +3,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(odbc32.dll odbc32.spec) +spec2def(odbc32.dll odbc32.spec GENERATE_STUBS) list(APPEND SOURCE proxyodbc.c diff --git a/reactos/dll/win32/odbccp32/CMakeLists.txt b/reactos/dll/win32/odbccp32/CMakeLists.txt index 16e60613f59..80a0173eae1 100644 --- a/reactos/dll/win32/odbccp32/CMakeLists.txt +++ b/reactos/dll/win32/odbccp32/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(odbccp32.dll odbccp32.spec) +spec2def(odbccp32.dll odbccp32.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE odbccp32.c diff --git a/reactos/dll/win32/ole32/CMakeLists.txt b/reactos/dll/win32/ole32/CMakeLists.txt index bb8ccfd6b56..70034683913 100644 --- a/reactos/dll/win32/ole32/CMakeLists.txt +++ b/reactos/dll/win32/ole32/CMakeLists.txt @@ -1,7 +1,7 @@ set_rc_compiler() -spec2def(ole32.dll ole32.spec) +spec2def(ole32.dll ole32.spec ADD_IMPORTLIB GENERATE_STUBS) generate_idl_iids(dcom.idl) add_idl_headers(ole32idl dcom.idl irot.idl) diff --git a/reactos/dll/win32/oleacc/CMakeLists.txt b/reactos/dll/win32/oleacc/CMakeLists.txt index e9948efb432..2dbdddaa1c4 100644 --- a/reactos/dll/win32/oleacc/CMakeLists.txt +++ b/reactos/dll/win32/oleacc/CMakeLists.txt @@ -3,7 +3,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(oleacc.dll oleacc.spec) +spec2def(oleacc.dll oleacc.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE main.c diff --git a/reactos/dll/win32/oleaut32/CMakeLists.txt b/reactos/dll/win32/oleaut32/CMakeLists.txt index bc1c63005ef..51f29136df9 100644 --- a/reactos/dll/win32/oleaut32/CMakeLists.txt +++ b/reactos/dll/win32/oleaut32/CMakeLists.txt @@ -16,7 +16,7 @@ include_directories( ${REACTOS_SOURCE_DIR}/include/reactos/libs/libjpeg ${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(oleaut32.dll oleaut32.spec) +spec2def(oleaut32.dll oleaut32.spec ADD_IMPORTLIB GENERATE_STUBS) add_rpcproxy_files(oleaut32_oaidl.idl oleaut32_ocidl.idl) diff --git a/reactos/dll/win32/olecli32/CMakeLists.txt b/reactos/dll/win32/olecli32/CMakeLists.txt index fa9032389e3..6a0eec35ae7 100644 --- a/reactos/dll/win32/olecli32/CMakeLists.txt +++ b/reactos/dll/win32/olecli32/CMakeLists.txt @@ -3,7 +3,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) set_rc_compiler() -spec2def(olecli32.dll olecli32.spec) +spec2def(olecli32.dll olecli32.spec GENERATE_STUBS) list(APPEND SOURCE olecli_main.c diff --git a/reactos/dll/win32/oledlg/CMakeLists.txt b/reactos/dll/win32/oledlg/CMakeLists.txt index e4d838accc1..cebbf9e2524 100644 --- a/reactos/dll/win32/oledlg/CMakeLists.txt +++ b/reactos/dll/win32/oledlg/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(oledlg.dll oledlg.spec) +spec2def(oledlg.dll oledlg.spec ADD_IMPORTLIB) list(APPEND SOURCE insobjdlg.c diff --git a/reactos/dll/win32/olesvr32/CMakeLists.txt b/reactos/dll/win32/olesvr32/CMakeLists.txt index dbfc68a3ef4..cb3c4034126 100644 --- a/reactos/dll/win32/olesvr32/CMakeLists.txt +++ b/reactos/dll/win32/olesvr32/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(olesvr32.dll olesvr32.spec) +spec2def(olesvr32.dll olesvr32.spec GENERATE_STUBS) list(APPEND SOURCE olesvr_main.c diff --git a/reactos/dll/win32/olethk32/CMakeLists.txt b/reactos/dll/win32/olethk32/CMakeLists.txt index 1fa6589c538..95116841230 100644 --- a/reactos/dll/win32/olethk32/CMakeLists.txt +++ b/reactos/dll/win32/olethk32/CMakeLists.txt @@ -3,7 +3,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) set_rc_compiler() -spec2def(olethk32.dll olethk32.spec) +spec2def(olethk32.dll olethk32.spec GENERATE_STUBS) list(APPEND SOURCE main.c diff --git a/reactos/dll/win32/opengl32/CMakeLists.txt b/reactos/dll/win32/opengl32/CMakeLists.txt index bdf1e4f1ec2..c0bda337927 100644 --- a/reactos/dll/win32/opengl32/CMakeLists.txt +++ b/reactos/dll/win32/opengl32/CMakeLists.txt @@ -1,7 +1,7 @@ set_unicode() -spec2def(opengl32.dll opengl32.spec) +spec2def(opengl32.dll opengl32.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE font.c diff --git a/reactos/dll/win32/pdh/CMakeLists.txt b/reactos/dll/win32/pdh/CMakeLists.txt index 6a814245ccb..f5395699d0c 100644 --- a/reactos/dll/win32/pdh/CMakeLists.txt +++ b/reactos/dll/win32/pdh/CMakeLists.txt @@ -6,7 +6,7 @@ add_definitions(-D_WIN32_WINNT=0x600) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(pdh.dll pdh.spec) +spec2def(pdh.dll pdh.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE pdh_main.c diff --git a/reactos/dll/win32/pidgen/CMakeLists.txt b/reactos/dll/win32/pidgen/CMakeLists.txt index e175a586c1a..fdd510b1d62 100644 --- a/reactos/dll/win32/pidgen/CMakeLists.txt +++ b/reactos/dll/win32/pidgen/CMakeLists.txt @@ -3,7 +3,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) set_rc_compiler() -spec2def(pidgen.dll pidgen.spec) +spec2def(pidgen.dll pidgen.spec GENERATE_STUBS) list(APPEND SOURCE main.c diff --git a/reactos/dll/win32/powrprof/CMakeLists.txt b/reactos/dll/win32/powrprof/CMakeLists.txt index 183a0cba732..c28ade2795b 100644 --- a/reactos/dll/win32/powrprof/CMakeLists.txt +++ b/reactos/dll/win32/powrprof/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(powrprof.dll powrprof.spec) +spec2def(powrprof.dll powrprof.spec ADD_IMPORTLIB) set_unicode() diff --git a/reactos/dll/win32/printui/CMakeLists.txt b/reactos/dll/win32/printui/CMakeLists.txt index 72777f17c6d..af8552db0e8 100644 --- a/reactos/dll/win32/printui/CMakeLists.txt +++ b/reactos/dll/win32/printui/CMakeLists.txt @@ -3,7 +3,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) set_rc_compiler() -spec2def(printui.dll printui.spec) +spec2def(printui.dll printui.spec GENERATE_STUBS) list(APPEND SOURCE printui.c diff --git a/reactos/dll/win32/psapi/CMakeLists.txt b/reactos/dll/win32/psapi/CMakeLists.txt index dda730acbd0..11d69e4a64b 100644 --- a/reactos/dll/win32/psapi/CMakeLists.txt +++ b/reactos/dll/win32/psapi/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(psapi.dll psapi.spec) +spec2def(psapi.dll psapi.spec ADD_IMPORTLIB) list(APPEND SOURCE malloc.c diff --git a/reactos/dll/win32/pstorec/CMakeLists.txt b/reactos/dll/win32/pstorec/CMakeLists.txt index dc5aa64ce06..bc1dbadae9b 100644 --- a/reactos/dll/win32/pstorec/CMakeLists.txt +++ b/reactos/dll/win32/pstorec/CMakeLists.txt @@ -5,7 +5,7 @@ add_dependencies(pstorec_tlb stdole2) add_definitions(-D__WINESRC__) set_rc_compiler() -spec2def(pstorec.dll pstorec.spec) +spec2def(pstorec.dll pstorec.spec GENERATE_STUBS) list(APPEND SOURCE pstorec.c diff --git a/reactos/dll/win32/query/CMakeLists.txt b/reactos/dll/win32/query/CMakeLists.txt index 3574784cccc..91a0939f5e7 100644 --- a/reactos/dll/win32/query/CMakeLists.txt +++ b/reactos/dll/win32/query/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(query.dll query.spec) +spec2def(query.dll query.spec GENERATE_STUBS) list(APPEND SOURCE query_main.c diff --git a/reactos/dll/win32/rasadhlp/CMakeLists.txt b/reactos/dll/win32/rasadhlp/CMakeLists.txt index 05b95a07f0a..caf5cd6d79b 100644 --- a/reactos/dll/win32/rasadhlp/CMakeLists.txt +++ b/reactos/dll/win32/rasadhlp/CMakeLists.txt @@ -1,7 +1,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/winsock) -spec2def(rasadhlp.dll rasadhlp.spec) +spec2def(rasadhlp.dll rasadhlp.spec GENERATE_STUBS) list(APPEND SOURCE autodial.c diff --git a/reactos/dll/win32/rasapi32/CMakeLists.txt b/reactos/dll/win32/rasapi32/CMakeLists.txt index f3d3728b568..933129cbae5 100644 --- a/reactos/dll/win32/rasapi32/CMakeLists.txt +++ b/reactos/dll/win32/rasapi32/CMakeLists.txt @@ -3,7 +3,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) set_rc_compiler() -spec2def(rasapi32.dll rasapi32.spec) +spec2def(rasapi32.dll rasapi32.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE rasapi.c diff --git a/reactos/dll/win32/rasdlg/CMakeLists.txt b/reactos/dll/win32/rasdlg/CMakeLists.txt index 0079620d800..4c9a714567c 100644 --- a/reactos/dll/win32/rasdlg/CMakeLists.txt +++ b/reactos/dll/win32/rasdlg/CMakeLists.txt @@ -1,6 +1,6 @@ set_rc_compiler() -spec2def(rasdlg.dll rasdlg.spec) +spec2def(rasdlg.dll rasdlg.spec GENERATE_STUBS) list(APPEND SOURCE rasdlg.c diff --git a/reactos/dll/win32/rasman/CMakeLists.txt b/reactos/dll/win32/rasman/CMakeLists.txt index 626f7563172..4de4a91a6db 100644 --- a/reactos/dll/win32/rasman/CMakeLists.txt +++ b/reactos/dll/win32/rasman/CMakeLists.txt @@ -1,5 +1,5 @@ set_rc_compiler() -spec2def(rasman.dll rasman.spec) +spec2def(rasman.dll rasman.spec GENERATE_STUBS) list(APPEND SOURCE rasman.c diff --git a/reactos/dll/win32/resutils/CMakeLists.txt b/reactos/dll/win32/resutils/CMakeLists.txt index 4592d25cbae..4acad3cc134 100644 --- a/reactos/dll/win32/resutils/CMakeLists.txt +++ b/reactos/dll/win32/resutils/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(resutils.dll resutils.spec) +spec2def(resutils.dll resutils.spec GENERATE_STUBS) list(APPEND SOURCE resutils.c diff --git a/reactos/dll/win32/riched20/CMakeLists.txt b/reactos/dll/win32/riched20/CMakeLists.txt index cf636b6f0c7..fe1c628f1bd 100644 --- a/reactos/dll/win32/riched20/CMakeLists.txt +++ b/reactos/dll/win32/riched20/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(riched20.dll riched20.spec) +spec2def(riched20.dll riched20.spec ADD_IMPORTLIB) set_rc_compiler() diff --git a/reactos/dll/win32/rpcrt4/CMakeLists.txt b/reactos/dll/win32/rpcrt4/CMakeLists.txt index c2d585f166a..9872f9f2ec0 100644 --- a/reactos/dll/win32/rpcrt4/CMakeLists.txt +++ b/reactos/dll/win32/rpcrt4/CMakeLists.txt @@ -35,7 +35,7 @@ add_definitions( -DCOM_NO_WINDOWS_H -DMSWMSG) -spec2def(rpcrt4.dll rpcrt4.spec) +spec2def(rpcrt4.dll rpcrt4.spec ADD_IMPORTLIB GENERATE_STUBS) add_library(rpcrt4 SHARED ${SOURCE}) diff --git a/reactos/dll/win32/rsaenh/CMakeLists.txt b/reactos/dll/win32/rsaenh/CMakeLists.txt index 49434499d74..87d29a4c702 100644 --- a/reactos/dll/win32/rsaenh/CMakeLists.txt +++ b/reactos/dll/win32/rsaenh/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(rsaenh.dll rsaenh.spec) +spec2def(rsaenh.dll rsaenh.spec ADD_IMPORTLIB) list(APPEND SOURCE aes.c diff --git a/reactos/dll/win32/samlib/CMakeLists.txt b/reactos/dll/win32/samlib/CMakeLists.txt index 5b2754ad93e..d67891ec51b 100644 --- a/reactos/dll/win32/samlib/CMakeLists.txt +++ b/reactos/dll/win32/samlib/CMakeLists.txt @@ -3,7 +3,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) set_rc_compiler() -spec2def(samlib.dll samlib.spec) +spec2def(samlib.dll samlib.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE dllmain.c diff --git a/reactos/dll/win32/sccbase/CMakeLists.txt b/reactos/dll/win32/sccbase/CMakeLists.txt index 45f0a059c8b..b4ac6e4064b 100644 --- a/reactos/dll/win32/sccbase/CMakeLists.txt +++ b/reactos/dll/win32/sccbase/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(sccbase.dll sccbase.spec) +spec2def(sccbase.dll sccbase.spec GENERATE_STUBS) list(APPEND SOURCE main.c diff --git a/reactos/dll/win32/schannel/CMakeLists.txt b/reactos/dll/win32/schannel/CMakeLists.txt index de83c952b78..eec68597f75 100644 --- a/reactos/dll/win32/schannel/CMakeLists.txt +++ b/reactos/dll/win32/schannel/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) set_rc_compiler() -spec2def(schannel.dll schannel.spec) +spec2def(schannel.dll schannel.spec GENERATE_STUBS) list(APPEND SOURCE lsamode.c diff --git a/reactos/dll/win32/secur32/CMakeLists.txt b/reactos/dll/win32/secur32/CMakeLists.txt index a460f046863..151d157fb06 100644 --- a/reactos/dll/win32/secur32/CMakeLists.txt +++ b/reactos/dll/win32/secur32/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__SECUR32__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys) -spec2def(secur32.dll secur32.spec) +spec2def(secur32.dll secur32.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE dllmain.c diff --git a/reactos/dll/win32/sensapi/CMakeLists.txt b/reactos/dll/win32/sensapi/CMakeLists.txt index 9612da919a8..151b6f97f64 100644 --- a/reactos/dll/win32/sensapi/CMakeLists.txt +++ b/reactos/dll/win32/sensapi/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(sensapi.dll sensapi.spec) +spec2def(sensapi.dll sensapi.spec ADD_IMPORTLIB) list(APPEND SOURCE sensapi.c diff --git a/reactos/dll/win32/setupapi/CMakeLists.txt b/reactos/dll/win32/setupapi/CMakeLists.txt index 4cd101c30ec..5abd8c82ec9 100644 --- a/reactos/dll/win32/setupapi/CMakeLists.txt +++ b/reactos/dll/win32/setupapi/CMakeLists.txt @@ -12,7 +12,7 @@ include_directories( set_rc_compiler() -spec2def(setupapi.dll setupapi.spec) +spec2def(setupapi.dll setupapi.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE cfgmgr.c diff --git a/reactos/dll/win32/sfc/CMakeLists.txt b/reactos/dll/win32/sfc/CMakeLists.txt index 9be0fb71fbc..cc17d19ce5a 100644 --- a/reactos/dll/win32/sfc/CMakeLists.txt +++ b/reactos/dll/win32/sfc/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(sfc.dll sfc.spec) +spec2def(sfc.dll sfc.spec GENERATE_STUBS) list(APPEND SOURCE sfc.c diff --git a/reactos/dll/win32/sfc_os/CMakeLists.txt b/reactos/dll/win32/sfc_os/CMakeLists.txt index 0ffd0e7d5ca..98aaff6a816 100644 --- a/reactos/dll/win32/sfc_os/CMakeLists.txt +++ b/reactos/dll/win32/sfc_os/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(sfc_os.dll sfc_os.spec) +spec2def(sfc_os.dll sfc_os.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE sfc_os.c diff --git a/reactos/dll/win32/shdocvw/CMakeLists.txt b/reactos/dll/win32/shdocvw/CMakeLists.txt index db2f0c48a1f..65a1e6a2e97 100644 --- a/reactos/dll/win32/shdocvw/CMakeLists.txt +++ b/reactos/dll/win32/shdocvw/CMakeLists.txt @@ -7,7 +7,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(shdocvw.dll shdocvw.spec) +spec2def(shdocvw.dll shdocvw.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE classinfo.c diff --git a/reactos/dll/win32/shell32/CMakeLists.txt b/reactos/dll/win32/shell32/CMakeLists.txt index 3180e9f745c..ec1974da36c 100644 --- a/reactos/dll/win32/shell32/CMakeLists.txt +++ b/reactos/dll/win32/shell32/CMakeLists.txt @@ -12,7 +12,7 @@ include_directories( ${REACTOS_SOURCE_DIR}/lib/recyclebin ${REACTOS_SOURCE_DIR}) -spec2def(shell32.dll shell32.spec) +spec2def(shell32.dll shell32.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE authors.c diff --git a/reactos/dll/win32/shimgvw/CMakeLists.txt b/reactos/dll/win32/shimgvw/CMakeLists.txt index 1514361c732..97dfc2b32b7 100644 --- a/reactos/dll/win32/shimgvw/CMakeLists.txt +++ b/reactos/dll/win32/shimgvw/CMakeLists.txt @@ -1,6 +1,6 @@ set_rc_compiler() -spec2def(shimgvw.dll shimgvw.spec) +spec2def(shimgvw.dll shimgvw.spec GENERATE_STUBS) list(APPEND SOURCE shimgvw.c diff --git a/reactos/dll/win32/shlwapi/CMakeLists.txt b/reactos/dll/win32/shlwapi/CMakeLists.txt index f4d8ab7023b..1f6bd88f6dc 100644 --- a/reactos/dll/win32/shlwapi/CMakeLists.txt +++ b/reactos/dll/win32/shlwapi/CMakeLists.txt @@ -5,7 +5,7 @@ add_definitions(-D__WINESRC__) remove_definitions(-D_WIN32_WINNT=0x502) add_definitions(-D_WIN32_WINNT=0x600) -spec2def(shlwapi.dll shlwapi.spec) +spec2def(shlwapi.dll shlwapi.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE assoc.c diff --git a/reactos/dll/win32/slbcsp/CMakeLists.txt b/reactos/dll/win32/slbcsp/CMakeLists.txt index 50fb9d944d9..cd8bcfd0020 100644 --- a/reactos/dll/win32/slbcsp/CMakeLists.txt +++ b/reactos/dll/win32/slbcsp/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(slbcsp.dll slbcsp.spec) +spec2def(slbcsp.dll slbcsp.spec GENERATE_STUBS) list(APPEND SOURCE main.c diff --git a/reactos/dll/win32/smdll/CMakeLists.txt b/reactos/dll/win32/smdll/CMakeLists.txt index ba212af1866..563d7539ecc 100644 --- a/reactos/dll/win32/smdll/CMakeLists.txt +++ b/reactos/dll/win32/smdll/CMakeLists.txt @@ -1,7 +1,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys) -spec2def(smdll.dll smdll.spec) +spec2def(smdll.dll smdll.spec ADD_IMPORTLIB) list(APPEND SOURCE dllmain.c diff --git a/reactos/dll/win32/snmpapi/CMakeLists.txt b/reactos/dll/win32/snmpapi/CMakeLists.txt index 325d372ccf1..45f3b7a520f 100644 --- a/reactos/dll/win32/snmpapi/CMakeLists.txt +++ b/reactos/dll/win32/snmpapi/CMakeLists.txt @@ -6,7 +6,7 @@ remove_definitions(-D_WIN32_WINNT=0x502) add_definitions(-D_WIN32_WINNT=0x600) set_rc_compiler() -spec2def(snmpapi.dll snmpapi.spec) +spec2def(snmpapi.dll snmpapi.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE main.c diff --git a/reactos/dll/win32/spoolss/CMakeLists.txt b/reactos/dll/win32/spoolss/CMakeLists.txt index 771a63e5f36..127140e959f 100644 --- a/reactos/dll/win32/spoolss/CMakeLists.txt +++ b/reactos/dll/win32/spoolss/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(spoolss.dll spoolss.spec) +spec2def(spoolss.dll spoolss.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE spoolss_main.c diff --git a/reactos/dll/win32/srclient/CMakeLists.txt b/reactos/dll/win32/srclient/CMakeLists.txt index e6088bb1453..8dc5d450212 100644 --- a/reactos/dll/win32/srclient/CMakeLists.txt +++ b/reactos/dll/win32/srclient/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(srclient.dll srclient.spec) +spec2def(srclient.dll srclient.spec GENERATE_STUBS) list(APPEND SOURCE srclient_main.c diff --git a/reactos/dll/win32/sxs/CMakeLists.txt b/reactos/dll/win32/sxs/CMakeLists.txt index 74e5742fe6e..fad069ee1c4 100644 --- a/reactos/dll/win32/sxs/CMakeLists.txt +++ b/reactos/dll/win32/sxs/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(sxs.dll sxs.spec) +spec2def(sxs.dll sxs.spec GENERATE_STUBS) list(APPEND SOURCE sxs.c diff --git a/reactos/dll/win32/syssetup/CMakeLists.txt b/reactos/dll/win32/syssetup/CMakeLists.txt index 433fb648119..96504e9bedd 100644 --- a/reactos/dll/win32/syssetup/CMakeLists.txt +++ b/reactos/dll/win32/syssetup/CMakeLists.txt @@ -2,7 +2,7 @@ set_unicode() set_rc_compiler() -spec2def(syssetup.dll syssetup.spec) +spec2def(syssetup.dll syssetup.spec GENERATE_STUBS) list(APPEND SOURCE classinst.c diff --git a/reactos/dll/win32/t2embed/CMakeLists.txt b/reactos/dll/win32/t2embed/CMakeLists.txt index c4b4d67a16f..0aa442132ee 100644 --- a/reactos/dll/win32/t2embed/CMakeLists.txt +++ b/reactos/dll/win32/t2embed/CMakeLists.txt @@ -3,7 +3,7 @@ set_unicode() include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(t2embed.dll t2embed.spec) +spec2def(t2embed.dll t2embed.spec GENERATE_STUBS) list(APPEND SOURCE t2embed.c diff --git a/reactos/dll/win32/tapi32/CMakeLists.txt b/reactos/dll/win32/tapi32/CMakeLists.txt index 41017c22ee5..d18c2d4d12f 100644 --- a/reactos/dll/win32/tapi32/CMakeLists.txt +++ b/reactos/dll/win32/tapi32/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(tapi32.dll tapi32.spec) +spec2def(tapi32.dll tapi32.spec GENERATE_STUBS) list(APPEND SOURCE assisted.c diff --git a/reactos/dll/win32/traffic/CMakeLists.txt b/reactos/dll/win32/traffic/CMakeLists.txt index 64764005630..0f3b16ae026 100644 --- a/reactos/dll/win32/traffic/CMakeLists.txt +++ b/reactos/dll/win32/traffic/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(traffic.dll traffic.spec) +spec2def(traffic.dll traffic.spec GENERATE_STUBS) list(APPEND SOURCE traffic_main.c diff --git a/reactos/dll/win32/ufatx/CMakeLists.txt b/reactos/dll/win32/ufatx/CMakeLists.txt index 98369440c6e..aa29ee82d4b 100644 --- a/reactos/dll/win32/ufatx/CMakeLists.txt +++ b/reactos/dll/win32/ufatx/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(ufatx.dll ufatx.spec) +spec2def(ufatx.dll ufatx.spec ADD_IMPORTLIB) list(APPEND SOURCE ufatx.rc diff --git a/reactos/dll/win32/unicows/CMakeLists.txt b/reactos/dll/win32/unicows/CMakeLists.txt index 1abe3c6c9d6..a91bd47c5a9 100644 --- a/reactos/dll/win32/unicows/CMakeLists.txt +++ b/reactos/dll/win32/unicows/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(unicows.dll unicows.spec) +spec2def(unicows.dll unicows.spec GENERATE_STUBS) list(APPEND SOURCE ${CMAKE_CURRENT_BINARY_DIR}/unicows_stubs.c diff --git a/reactos/dll/win32/updspapi/CMakeLists.txt b/reactos/dll/win32/updspapi/CMakeLists.txt index 456ccde58f2..302ac41b04f 100644 --- a/reactos/dll/win32/updspapi/CMakeLists.txt +++ b/reactos/dll/win32/updspapi/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(updspapi.dll updspapi.spec) +spec2def(updspapi.dll updspapi.spec GENERATE_STUBS) list(APPEND SOURCE main.c diff --git a/reactos/dll/win32/url/CMakeLists.txt b/reactos/dll/win32/url/CMakeLists.txt index ee901a062a3..691adc8f02d 100644 --- a/reactos/dll/win32/url/CMakeLists.txt +++ b/reactos/dll/win32/url/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(url.dll url.spec) +spec2def(url.dll url.spec GENERATE_STUBS) list(APPEND SOURCE url_main.c diff --git a/reactos/dll/win32/urlmon/CMakeLists.txt b/reactos/dll/win32/urlmon/CMakeLists.txt index 99a95265ae4..6acf2f30f96 100644 --- a/reactos/dll/win32/urlmon/CMakeLists.txt +++ b/reactos/dll/win32/urlmon/CMakeLists.txt @@ -8,7 +8,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(urlmon.dll urlmon.spec) +spec2def(urlmon.dll urlmon.spec ADD_IMPORTLIB GENERATE_STUBS) add_rpcproxy_files(urlmon_urlmon.idl) diff --git a/reactos/dll/win32/user32/CMakeLists.txt b/reactos/dll/win32/user32/CMakeLists.txt index d40679495f9..40c260266b2 100644 --- a/reactos/dll/win32/user32/CMakeLists.txt +++ b/reactos/dll/win32/user32/CMakeLists.txt @@ -1,7 +1,7 @@ set_unicode() -spec2def(user32.dll user32.spec) +spec2def(user32.dll user32.spec ADD_IMPORTLIB) include_directories( BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine diff --git a/reactos/dll/win32/userenv/CMakeLists.txt b/reactos/dll/win32/userenv/CMakeLists.txt index f9327fedf99..7461f220d97 100644 --- a/reactos/dll/win32/userenv/CMakeLists.txt +++ b/reactos/dll/win32/userenv/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(userenv.dll userenv.spec) +spec2def(userenv.dll userenv.spec ADD_IMPORTLIB GENERATE_STUBS) set_rc_compiler() diff --git a/reactos/dll/win32/usp10/CMakeLists.txt b/reactos/dll/win32/usp10/CMakeLists.txt index 17b66b15783..2795a47bae3 100644 --- a/reactos/dll/win32/usp10/CMakeLists.txt +++ b/reactos/dll/win32/usp10/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) -spec2def(usp10.dll usp10.spec) +spec2def(usp10.dll usp10.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE bidi.c diff --git a/reactos/dll/win32/uxtheme/CMakeLists.txt b/reactos/dll/win32/uxtheme/CMakeLists.txt index 30781aa28a4..e7bbb53a9d7 100644 --- a/reactos/dll/win32/uxtheme/CMakeLists.txt +++ b/reactos/dll/win32/uxtheme/CMakeLists.txt @@ -3,7 +3,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) add_definitions(-D__WINESRC__) set_rc_compiler() -spec2def(uxtheme.dll uxtheme.spec) +spec2def(uxtheme.dll uxtheme.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE buffer.c diff --git a/reactos/dll/win32/version/CMakeLists.txt b/reactos/dll/win32/version/CMakeLists.txt index beaf8ba13cc..2780e4817dc 100644 --- a/reactos/dll/win32/version/CMakeLists.txt +++ b/reactos/dll/win32/version/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(version.dll version.spec) +spec2def(version.dll version.spec ADD_IMPORTLIB) list(APPEND SOURCE info.c diff --git a/reactos/dll/win32/windowscodecs/CMakeLists.txt b/reactos/dll/win32/windowscodecs/CMakeLists.txt index d99a32ce498..32218966b93 100644 --- a/reactos/dll/win32/windowscodecs/CMakeLists.txt +++ b/reactos/dll/win32/windowscodecs/CMakeLists.txt @@ -16,7 +16,7 @@ if(MSVC) add_compiler_flags(/FItypeof.h) endif() -spec2def(windowscodecs.dll windowscodecs.spec) +spec2def(windowscodecs.dll windowscodecs.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE bmpdecode.c diff --git a/reactos/dll/win32/winhttp/CMakeLists.txt b/reactos/dll/win32/winhttp/CMakeLists.txt index a5bff14ed9f..76c6d8753ac 100644 --- a/reactos/dll/win32/winhttp/CMakeLists.txt +++ b/reactos/dll/win32/winhttp/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(winhttp.dll winhttp.spec) +spec2def(winhttp.dll winhttp.spec ADD_IMPORTLIB) list(APPEND SOURCE cookie.c diff --git a/reactos/dll/win32/wininet/CMakeLists.txt b/reactos/dll/win32/wininet/CMakeLists.txt index 0351ba69925..1974906c30f 100644 --- a/reactos/dll/win32/wininet/CMakeLists.txt +++ b/reactos/dll/win32/wininet/CMakeLists.txt @@ -5,7 +5,7 @@ add_definitions( include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(wininet.dll wininet.spec) +spec2def(wininet.dll wininet.spec ADD_IMPORTLIB GENERATE_STUBS) set_rc_compiler() diff --git a/reactos/dll/win32/winmm/CMakeLists.txt b/reactos/dll/win32/winmm/CMakeLists.txt index 0f39831974a..bcc5b461c49 100644 --- a/reactos/dll/win32/winmm/CMakeLists.txt +++ b/reactos/dll/win32/winmm/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D_WINE) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(winmm.dll winmm.spec) +spec2def(winmm.dll winmm.spec ADD_IMPORTLIB GENERATE_STUBS) set_rc_compiler() diff --git a/reactos/dll/win32/winspool/CMakeLists.txt b/reactos/dll/win32/winspool/CMakeLists.txt index ad8b6a29808..faaea767b82 100644 --- a/reactos/dll/win32/winspool/CMakeLists.txt +++ b/reactos/dll/win32/winspool/CMakeLists.txt @@ -5,7 +5,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(winspool.drv winspool.spec) +spec2def(winspool.drv winspool.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE info.c diff --git a/reactos/dll/win32/wintrust/CMakeLists.txt b/reactos/dll/win32/wintrust/CMakeLists.txt index f4aebcd2b27..2b189ab4750 100644 --- a/reactos/dll/win32/wintrust/CMakeLists.txt +++ b/reactos/dll/win32/wintrust/CMakeLists.txt @@ -3,7 +3,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(wintrust.dll wintrust.spec) +spec2def(wintrust.dll wintrust.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE crypt.c diff --git a/reactos/dll/win32/wlanapi/CMakeLists.txt b/reactos/dll/win32/wlanapi/CMakeLists.txt index 777a117079f..4b518706c92 100644 --- a/reactos/dll/win32/wlanapi/CMakeLists.txt +++ b/reactos/dll/win32/wlanapi/CMakeLists.txt @@ -1,7 +1,7 @@ include_directories(${REACTOS_BINARY_DIR}/include/reactos/idl) -spec2def(wlanapi.dll wlanapi.spec) +spec2def(wlanapi.dll wlanapi.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE main.c diff --git a/reactos/dll/win32/wldap32/CMakeLists.txt b/reactos/dll/win32/wldap32/CMakeLists.txt index c97f5e443f7..c804ff444de 100644 --- a/reactos/dll/win32/wldap32/CMakeLists.txt +++ b/reactos/dll/win32/wldap32/CMakeLists.txt @@ -3,7 +3,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) set_rc_compiler() -spec2def(wldap32.dll wldap32.spec) +spec2def(wldap32.dll wldap32.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE add.c diff --git a/reactos/dll/win32/ws2_32/CMakeLists.txt b/reactos/dll/win32/ws2_32/CMakeLists.txt index b2fdb3f6c63..efef9737fa6 100644 --- a/reactos/dll/win32/ws2_32/CMakeLists.txt +++ b/reactos/dll/win32/ws2_32/CMakeLists.txt @@ -7,7 +7,7 @@ add_definitions(-DWINSOCK_API_LINKAGE=DECLSPEC_EXPORT) include_directories(BEFORE include) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(ws2_32.dll ws2_32.spec) +spec2def(ws2_32.dll ws2_32.spec ADD_IMPORTLIB) list(APPEND SOURCE misc/bsd.c diff --git a/reactos/dll/win32/ws2help/CMakeLists.txt b/reactos/dll/win32/ws2help/CMakeLists.txt index 6de001c474c..1bd548944a6 100644 --- a/reactos/dll/win32/ws2help/CMakeLists.txt +++ b/reactos/dll/win32/ws2help/CMakeLists.txt @@ -1,7 +1,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/winsock) -spec2def(ws2help.dll ws2help.spec) +spec2def(ws2help.dll ws2help.spec ADD_IMPORTLIB) list(APPEND SOURCE apc.c diff --git a/reactos/dll/win32/wtsapi32/CMakeLists.txt b/reactos/dll/win32/wtsapi32/CMakeLists.txt index deb123025f1..aabc94decd8 100644 --- a/reactos/dll/win32/wtsapi32/CMakeLists.txt +++ b/reactos/dll/win32/wtsapi32/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(wtsapi32.dll wtsapi32.spec) +spec2def(wtsapi32.dll wtsapi32.spec GENERATE_STUBS) list(APPEND SOURCE wtsapi32.c diff --git a/reactos/dll/win32/xinput1_3/CMakeLists.txt b/reactos/dll/win32/xinput1_3/CMakeLists.txt index 9d37edd1e66..d40664e9cb5 100644 --- a/reactos/dll/win32/xinput1_3/CMakeLists.txt +++ b/reactos/dll/win32/xinput1_3/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(xinput1_3.dll xinput1_3.spec) +spec2def(xinput1_3.dll xinput1_3.spec ADD_IMPORTLIB) list(APPEND SOURCE xinput1_3_main.c diff --git a/reactos/dll/win32/xmllite/CMakeLists.txt b/reactos/dll/win32/xmllite/CMakeLists.txt index 855cd3a8e82..1f0ef96f0f5 100644 --- a/reactos/dll/win32/xmllite/CMakeLists.txt +++ b/reactos/dll/win32/xmllite/CMakeLists.txt @@ -2,7 +2,7 @@ add_definitions(-D__WINESRC__) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) -spec2def(xmllite.dll xmllite.spec) +spec2def(xmllite.dll xmllite.spec ADD_IMPORTLIB GENERATE_STUBS) list(APPEND SOURCE reader.c diff --git a/reactos/drivers/base/bootvid/CMakeLists.txt b/reactos/drivers/base/bootvid/CMakeLists.txt index ded06a8e48f..463c40fddfe 100644 --- a/reactos/drivers/base/bootvid/CMakeLists.txt +++ b/reactos/drivers/base/bootvid/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(bootvid.dll bootvid.spec) +spec2def(bootvid.dll bootvid.spec ADD_IMPORTLIB) list(APPEND SOURCE bootvid.rc diff --git a/reactos/drivers/base/kdcom/CMakeLists.txt b/reactos/drivers/base/kdcom/CMakeLists.txt index 8e8a2e17ec8..75f402af88e 100644 --- a/reactos/drivers/base/kdcom/CMakeLists.txt +++ b/reactos/drivers/base/kdcom/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(kdcom.dll kdcom.spec) +spec2def(kdcom.dll kdcom.spec ADD_IMPORTLIB) if(ARCH MATCHES i386) list(APPEND SOURCE i386/kdbg.c) diff --git a/reactos/drivers/base/kddll/CMakeLists.txt b/reactos/drivers/base/kddll/CMakeLists.txt index 8083793ca03..32a9f9cbe11 100644 --- a/reactos/drivers/base/kddll/CMakeLists.txt +++ b/reactos/drivers/base/kddll/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(kdcom.dll kdcom.spec) +spec2def(kdcom.dll kdcom.spec ADD_IMPORTLIB) add_library(kdcom SHARED kdcom.c diff --git a/reactos/drivers/battery/battc/CMakeLists.txt b/reactos/drivers/battery/battc/CMakeLists.txt index 2cfea3ab8b0..b67b78d01b5 100644 --- a/reactos/drivers/battery/battc/CMakeLists.txt +++ b/reactos/drivers/battery/battc/CMakeLists.txt @@ -1,7 +1,7 @@ add_definitions(-D_BATTERYCLASS_) -spec2def(batc.sys battc.spec) +spec2def(batc.sys battc.spec ADD_IMPORTLIB) add_library(battc SHARED battc.c diff --git a/reactos/drivers/directx/dxgthk/CMakeLists.txt b/reactos/drivers/directx/dxgthk/CMakeLists.txt index cd1dbc827cc..7993a5e7ac2 100644 --- a/reactos/drivers/directx/dxgthk/CMakeLists.txt +++ b/reactos/drivers/directx/dxgthk/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(dxgthk.sys dxgthk.spec) +spec2def(dxgthk.sys dxgthk.spec ADD_IMPORTLIB) list(APPEND SOURCE main.c diff --git a/reactos/drivers/ksfilter/ks/CMakeLists.txt b/reactos/drivers/ksfilter/ks/CMakeLists.txt index 712848b6b2f..ecae359430a 100644 --- a/reactos/drivers/ksfilter/ks/CMakeLists.txt +++ b/reactos/drivers/ksfilter/ks/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(ks.sys ks.spec) +spec2def(ks.sys ks.spec ADD_IMPORTLIB) add_definitions( -DBUILDING_KS diff --git a/reactos/drivers/network/ndis/CMakeLists.txt b/reactos/drivers/network/ndis/CMakeLists.txt index f548a1b17d9..3d013ad2563 100644 --- a/reactos/drivers/network/ndis/CMakeLists.txt +++ b/reactos/drivers/network/ndis/CMakeLists.txt @@ -10,7 +10,7 @@ add_definitions( -DNDIS_LEGACY_PROTOCOL -DNDIS_MINIPORT_DRIVER) -spec2def(ndis.sys ndis.spec) +spec2def(ndis.sys ndis.spec ADD_IMPORTLIB) list(APPEND SOURCE ndis/30stubs.c diff --git a/reactos/drivers/storage/class/class2/CMakeLists.txt b/reactos/drivers/storage/class/class2/CMakeLists.txt index 8820226b9ce..e490aea989b 100644 --- a/reactos/drivers/storage/class/class2/CMakeLists.txt +++ b/reactos/drivers/storage/class/class2/CMakeLists.txt @@ -1,7 +1,7 @@ include_directories(..) -spec2def(class2.sys class2.spec) +spec2def(class2.sys class2.spec ADD_IMPORTLIB) list(APPEND SOURCE class2.c diff --git a/reactos/drivers/storage/ide/pciidex/CMakeLists.txt b/reactos/drivers/storage/ide/pciidex/CMakeLists.txt index c3365ce51b9..3d4f46d6aa9 100644 --- a/reactos/drivers/storage/ide/pciidex/CMakeLists.txt +++ b/reactos/drivers/storage/ide/pciidex/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(pciidex.sys pciidex.spec) +spec2def(pciidex.sys pciidex.spec ADD_IMPORTLIB) list(APPEND SOURCE fdo.c diff --git a/reactos/drivers/storage/scsiport/CMakeLists.txt b/reactos/drivers/storage/scsiport/CMakeLists.txt index 2be2a018591..9a95a91b8c5 100644 --- a/reactos/drivers/storage/scsiport/CMakeLists.txt +++ b/reactos/drivers/storage/scsiport/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(scsiport.sys scsiport.spec) +spec2def(scsiport.sys scsiport.spec ADD_IMPORTLIB) list(APPEND SOURCE scsiport.c diff --git a/reactos/drivers/usb/usbd/CMakeLists.txt b/reactos/drivers/usb/usbd/CMakeLists.txt index 5f30aab7530..dd67fdb275f 100644 --- a/reactos/drivers/usb/usbd/CMakeLists.txt +++ b/reactos/drivers/usb/usbd/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(usbd.sys usbd.spec) +spec2def(usbd.sys usbd.spec ADD_IMPORTLIB) add_library(usbd SHARED usbd.c diff --git a/reactos/drivers/video/font/ftfd/CMakeLists.txt b/reactos/drivers/video/font/ftfd/CMakeLists.txt index 72458f71082..a5d3d4d13b4 100644 --- a/reactos/drivers/video/font/ftfd/CMakeLists.txt +++ b/reactos/drivers/video/font/ftfd/CMakeLists.txt @@ -1,7 +1,7 @@ include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/freetype/include) -spec2def(ftfd.dll ftfd.spec) +spec2def(ftfd.dll ftfd.spec ADD_IMPORTLIB) add_library(ftfd SHARED enable.c diff --git a/reactos/drivers/video/videoprt/CMakeLists.txt b/reactos/drivers/video/videoprt/CMakeLists.txt index 1eea498eb64..d206ed657d7 100644 --- a/reactos/drivers/video/videoprt/CMakeLists.txt +++ b/reactos/drivers/video/videoprt/CMakeLists.txt @@ -3,7 +3,7 @@ include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include) add_definitions(-D_VIDEOPORT_) -spec2def(videoprt.sys videoprt.spec) +spec2def(videoprt.sys videoprt.spec ADD_IMPORTLIB) list(APPEND SOURCE agp.c diff --git a/reactos/drivers/wdm/audio/drm/drmk/CMakeLists.txt b/reactos/drivers/wdm/audio/drm/drmk/CMakeLists.txt index eb70b994869..ee6e22a8f7b 100644 --- a/reactos/drivers/wdm/audio/drm/drmk/CMakeLists.txt +++ b/reactos/drivers/wdm/audio/drm/drmk/CMakeLists.txt @@ -1,7 +1,7 @@ add_definitions(-DBUILDING_DRMK) -spec2def(drmk.sys drmk.spec) +spec2def(drmk.sys drmk.spec ADD_IMPORTLIB) list(APPEND SOURCE stubs.cpp diff --git a/reactos/drivers/wmi/CMakeLists.txt b/reactos/drivers/wmi/CMakeLists.txt index c00a650c931..45e7b9a87d1 100644 --- a/reactos/drivers/wmi/CMakeLists.txt +++ b/reactos/drivers/wmi/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(wmilib.sys wmilib.spec) +spec2def(wmilib.sys wmilib.spec ADD_IMPORTLIB) list(APPEND SOURCE wmilib.c diff --git a/reactos/hal/halx86/CMakeLists.txt b/reactos/hal/halx86/CMakeLists.txt index 13b14ccbc11..09086cfd9bf 100644 --- a/reactos/hal/halx86/CMakeLists.txt +++ b/reactos/hal/halx86/CMakeLists.txt @@ -79,7 +79,7 @@ if(ARCH MATCHES i386) up/pic.c up/processor.c) - spec2def(hal.dll ../hal.spec) + spec2def(hal.dll ../hal.spec ADD_IMPORTLIB) list(APPEND HAL_SOURCE ${HAL_GENERIC_SOURCE} diff --git a/reactos/ntoskrnl/CMakeLists.txt b/reactos/ntoskrnl/CMakeLists.txt index 39320374960..391a6ce7ad8 100644 --- a/reactos/ntoskrnl/CMakeLists.txt +++ b/reactos/ntoskrnl/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(ntoskrnl.exe ntoskrnl.spec) +spec2def(ntoskrnl.exe ntoskrnl.spec ADD_IMPORTLIB) include_directories( ${REACTOS_SOURCE_DIR} diff --git a/reactos/subsystems/win32/csrss/csrsrv/CMakeLists.txt b/reactos/subsystems/win32/csrss/csrsrv/CMakeLists.txt index 26989823cf9..f77acef44f8 100644 --- a/reactos/subsystems/win32/csrss/csrsrv/CMakeLists.txt +++ b/reactos/subsystems/win32/csrss/csrsrv/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${REACTOS_SOURCE_DIR}/subsystems/win32/csrss/include) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys) -spec2def(csrsrv.dll csrsrv.spec) +spec2def(csrsrv.dll csrsrv.spec ADD_IMPORTLIB) list(APPEND SOURCE api/process.c diff --git a/reactos/subsystems/win32/win32k/CMakeLists.txt b/reactos/subsystems/win32/win32k/CMakeLists.txt index 649880cf4b9..5ce5175edaa 100644 --- a/reactos/subsystems/win32/win32k/CMakeLists.txt +++ b/reactos/subsystems/win32/win32k/CMakeLists.txt @@ -1,5 +1,5 @@ -spec2def(win32k.sys win32k.spec) +spec2def(win32k.sys win32k.spec ADD_IMPORTLIB) include_directories( .