[CMAKE]
authorJérôme Gardou <jerome.gardou@reactos.org>
Sat, 25 Jun 2011 18:34:03 +0000 (18:34 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Sat, 25 Jun 2011 18:34:03 +0000 (18:34 +0000)
  - 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

201 files changed:
reactos/base/shell/explorer/CMakeLists.txt
reactos/base/shell/explorer/notifyhook/CMakeLists.txt
reactos/cmake/gcc.cmake
reactos/dll/cpl/inetcpl/CMakeLists.txt
reactos/dll/directx/dinput/CMakeLists.txt
reactos/dll/directx/dinput8/CMakeLists.txt
reactos/dll/directx/dplay/CMakeLists.txt
reactos/dll/directx/dplayx/CMakeLists.txt
reactos/dll/directx/dsound/CMakeLists.txt
reactos/dll/directx/ksuser/CMakeLists.txt
reactos/dll/directx/wine/d3d9/CMakeLists.txt
reactos/dll/directx/wine/d3dx9_24/CMakeLists.txt
reactos/dll/directx/wine/d3dx9_25/CMakeLists.txt
reactos/dll/directx/wine/d3dx9_26/CMakeLists.txt
reactos/dll/directx/wine/d3dx9_27/CMakeLists.txt
reactos/dll/directx/wine/d3dx9_28/CMakeLists.txt
reactos/dll/directx/wine/d3dx9_29/CMakeLists.txt
reactos/dll/directx/wine/d3dx9_30/CMakeLists.txt
reactos/dll/directx/wine/d3dx9_31/CMakeLists.txt
reactos/dll/directx/wine/d3dx9_32/CMakeLists.txt
reactos/dll/directx/wine/d3dx9_33/CMakeLists.txt
reactos/dll/directx/wine/d3dx9_34/CMakeLists.txt
reactos/dll/directx/wine/d3dx9_36/CMakeLists.txt
reactos/dll/directx/wine/ddraw/CMakeLists.txt
reactos/dll/directx/wine/wined3d/CMakeLists.txt
reactos/dll/ntdll/CMakeLists.txt
reactos/dll/win32/acledit/CMakeLists.txt
reactos/dll/win32/aclui/CMakeLists.txt
reactos/dll/win32/advapi32/CMakeLists.txt
reactos/dll/win32/atl/CMakeLists.txt
reactos/dll/win32/authz/CMakeLists.txt
reactos/dll/win32/avicap32/CMakeLists.txt
reactos/dll/win32/avifil32/CMakeLists.txt
reactos/dll/win32/batt/CMakeLists.txt
reactos/dll/win32/bcrypt/CMakeLists.txt
reactos/dll/win32/beepmidi/CMakeLists.txt
reactos/dll/win32/cabinet/CMakeLists.txt
reactos/dll/win32/cards/CMakeLists.txt
reactos/dll/win32/cfgmgr32/CMakeLists.txt
reactos/dll/win32/clusapi/CMakeLists.txt
reactos/dll/win32/comctl32/CMakeLists.txt
reactos/dll/win32/comdlg32/CMakeLists.txt
reactos/dll/win32/compstui/CMakeLists.txt
reactos/dll/win32/credui/CMakeLists.txt
reactos/dll/win32/crypt32/CMakeLists.txt
reactos/dll/win32/cryptdlg/CMakeLists.txt
reactos/dll/win32/cryptnet/CMakeLists.txt
reactos/dll/win32/cryptui/CMakeLists.txt
reactos/dll/win32/dbghelp/CMakeLists.txt
reactos/dll/win32/dciman32/CMakeLists.txt
reactos/dll/win32/devmgr/CMakeLists.txt
reactos/dll/win32/dhcpcsvc/CMakeLists.txt
reactos/dll/win32/dnsapi/CMakeLists.txt
reactos/dll/win32/dwmapi/CMakeLists.txt
reactos/dll/win32/faultrep/CMakeLists.txt
reactos/dll/win32/fmifs/CMakeLists.txt
reactos/dll/win32/fusion/CMakeLists.txt
reactos/dll/win32/gdi32/CMakeLists.txt
reactos/dll/win32/gdiplus/CMakeLists.txt
reactos/dll/win32/getuname/CMakeLists.txt
reactos/dll/win32/glu32/CMakeLists.txt
reactos/dll/win32/hlink/CMakeLists.txt
reactos/dll/win32/httpapi/CMakeLists.txt
reactos/dll/win32/icmp/CMakeLists.txt
reactos/dll/win32/imagehlp/CMakeLists.txt
reactos/dll/win32/imm32/CMakeLists.txt
reactos/dll/win32/inetcomm/CMakeLists.txt
reactos/dll/win32/inetmib1/CMakeLists.txt
reactos/dll/win32/initpki/CMakeLists.txt
reactos/dll/win32/inseng/CMakeLists.txt
reactos/dll/win32/iphlpapi/CMakeLists.txt
reactos/dll/win32/itircl/CMakeLists.txt
reactos/dll/win32/itss/CMakeLists.txt
reactos/dll/win32/kernel32/CMakeLists.txt
reactos/dll/win32/loadperf/CMakeLists.txt
reactos/dll/win32/localspl/CMakeLists.txt
reactos/dll/win32/localui/CMakeLists.txt
reactos/dll/win32/lpk/CMakeLists.txt
reactos/dll/win32/lsasrv/CMakeLists.txt
reactos/dll/win32/lz32/CMakeLists.txt
reactos/dll/win32/mapi32/CMakeLists.txt
reactos/dll/win32/mlang/CMakeLists.txt
reactos/dll/win32/modemui/CMakeLists.txt
reactos/dll/win32/mpr/CMakeLists.txt
reactos/dll/win32/mprapi/CMakeLists.txt
reactos/dll/win32/msacm32/CMakeLists.txt
reactos/dll/win32/mscms/CMakeLists.txt
reactos/dll/win32/mscoree/CMakeLists.txt
reactos/dll/win32/msctf/CMakeLists.txt
reactos/dll/win32/msftedit/CMakeLists.txt
reactos/dll/win32/msgina/CMakeLists.txt
reactos/dll/win32/mshtml/CMakeLists.txt
reactos/dll/win32/msi/CMakeLists.txt
reactos/dll/win32/msimg32/CMakeLists.txt
reactos/dll/win32/msimtf/CMakeLists.txt
reactos/dll/win32/msisip/CMakeLists.txt
reactos/dll/win32/msports/CMakeLists.txt
reactos/dll/win32/mssign32/CMakeLists.txt
reactos/dll/win32/mssip32/CMakeLists.txt
reactos/dll/win32/mstask/CMakeLists.txt
reactos/dll/win32/msvcrt/CMakeLists.txt
reactos/dll/win32/msvfw32/CMakeLists.txt
reactos/dll/win32/mswsock/CMakeLists.txt
reactos/dll/win32/msxml3/CMakeLists.txt
reactos/dll/win32/nddeapi/CMakeLists.txt
reactos/dll/win32/netapi32/CMakeLists.txt
reactos/dll/win32/netcfgx/CMakeLists.txt
reactos/dll/win32/netshell/CMakeLists.txt
reactos/dll/win32/newdev/CMakeLists.txt
reactos/dll/win32/ntdsapi/CMakeLists.txt
reactos/dll/win32/ntlanman/CMakeLists.txt
reactos/dll/win32/ntprint/CMakeLists.txt
reactos/dll/win32/odbc32/CMakeLists.txt
reactos/dll/win32/odbccp32/CMakeLists.txt
reactos/dll/win32/ole32/CMakeLists.txt
reactos/dll/win32/oleacc/CMakeLists.txt
reactos/dll/win32/oleaut32/CMakeLists.txt
reactos/dll/win32/olecli32/CMakeLists.txt
reactos/dll/win32/oledlg/CMakeLists.txt
reactos/dll/win32/olesvr32/CMakeLists.txt
reactos/dll/win32/olethk32/CMakeLists.txt
reactos/dll/win32/opengl32/CMakeLists.txt
reactos/dll/win32/pdh/CMakeLists.txt
reactos/dll/win32/pidgen/CMakeLists.txt
reactos/dll/win32/powrprof/CMakeLists.txt
reactos/dll/win32/printui/CMakeLists.txt
reactos/dll/win32/psapi/CMakeLists.txt
reactos/dll/win32/pstorec/CMakeLists.txt
reactos/dll/win32/query/CMakeLists.txt
reactos/dll/win32/rasadhlp/CMakeLists.txt
reactos/dll/win32/rasapi32/CMakeLists.txt
reactos/dll/win32/rasdlg/CMakeLists.txt
reactos/dll/win32/rasman/CMakeLists.txt
reactos/dll/win32/resutils/CMakeLists.txt
reactos/dll/win32/riched20/CMakeLists.txt
reactos/dll/win32/rpcrt4/CMakeLists.txt
reactos/dll/win32/rsaenh/CMakeLists.txt
reactos/dll/win32/samlib/CMakeLists.txt
reactos/dll/win32/sccbase/CMakeLists.txt
reactos/dll/win32/schannel/CMakeLists.txt
reactos/dll/win32/secur32/CMakeLists.txt
reactos/dll/win32/sensapi/CMakeLists.txt
reactos/dll/win32/setupapi/CMakeLists.txt
reactos/dll/win32/sfc/CMakeLists.txt
reactos/dll/win32/sfc_os/CMakeLists.txt
reactos/dll/win32/shdocvw/CMakeLists.txt
reactos/dll/win32/shell32/CMakeLists.txt
reactos/dll/win32/shimgvw/CMakeLists.txt
reactos/dll/win32/shlwapi/CMakeLists.txt
reactos/dll/win32/slbcsp/CMakeLists.txt
reactos/dll/win32/smdll/CMakeLists.txt
reactos/dll/win32/snmpapi/CMakeLists.txt
reactos/dll/win32/spoolss/CMakeLists.txt
reactos/dll/win32/srclient/CMakeLists.txt
reactos/dll/win32/sxs/CMakeLists.txt
reactos/dll/win32/syssetup/CMakeLists.txt
reactos/dll/win32/t2embed/CMakeLists.txt
reactos/dll/win32/tapi32/CMakeLists.txt
reactos/dll/win32/traffic/CMakeLists.txt
reactos/dll/win32/ufatx/CMakeLists.txt
reactos/dll/win32/unicows/CMakeLists.txt
reactos/dll/win32/updspapi/CMakeLists.txt
reactos/dll/win32/url/CMakeLists.txt
reactos/dll/win32/urlmon/CMakeLists.txt
reactos/dll/win32/user32/CMakeLists.txt
reactos/dll/win32/userenv/CMakeLists.txt
reactos/dll/win32/usp10/CMakeLists.txt
reactos/dll/win32/uxtheme/CMakeLists.txt
reactos/dll/win32/version/CMakeLists.txt
reactos/dll/win32/windowscodecs/CMakeLists.txt
reactos/dll/win32/winhttp/CMakeLists.txt
reactos/dll/win32/wininet/CMakeLists.txt
reactos/dll/win32/winmm/CMakeLists.txt
reactos/dll/win32/winspool/CMakeLists.txt
reactos/dll/win32/wintrust/CMakeLists.txt
reactos/dll/win32/wlanapi/CMakeLists.txt
reactos/dll/win32/wldap32/CMakeLists.txt
reactos/dll/win32/ws2_32/CMakeLists.txt
reactos/dll/win32/ws2help/CMakeLists.txt
reactos/dll/win32/wtsapi32/CMakeLists.txt
reactos/dll/win32/xinput1_3/CMakeLists.txt
reactos/dll/win32/xmllite/CMakeLists.txt
reactos/drivers/base/bootvid/CMakeLists.txt
reactos/drivers/base/kdcom/CMakeLists.txt
reactos/drivers/base/kddll/CMakeLists.txt
reactos/drivers/battery/battc/CMakeLists.txt
reactos/drivers/directx/dxgthk/CMakeLists.txt
reactos/drivers/ksfilter/ks/CMakeLists.txt
reactos/drivers/network/ndis/CMakeLists.txt
reactos/drivers/storage/class/class2/CMakeLists.txt
reactos/drivers/storage/ide/pciidex/CMakeLists.txt
reactos/drivers/storage/scsiport/CMakeLists.txt
reactos/drivers/usb/usbd/CMakeLists.txt
reactos/drivers/video/font/ftfd/CMakeLists.txt
reactos/drivers/video/videoprt/CMakeLists.txt
reactos/drivers/wdm/audio/drm/drmk/CMakeLists.txt
reactos/drivers/wmi/CMakeLists.txt
reactos/hal/halx86/CMakeLists.txt
reactos/ntoskrnl/CMakeLists.txt
reactos/subsystems/win32/csrss/csrsrv/CMakeLists.txt
reactos/subsystems/win32/win32k/CMakeLists.txt

index 14f7304..26ae04d 100644 (file)
@@ -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)
index b3eda1e..9528239 100644 (file)
@@ -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
index 867c52b..f1e8e2d 100644 (file)
@@ -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()
-
-    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})
-
-        # 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()
-
-    # 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)
+    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")
+
+        # 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})
+
+    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)
 
 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})
-
-    #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}")
+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 ${__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)
index df363f2..970ffa2 100644 (file)
@@ -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
index 142e22d..88b788a 100644 (file)
@@ -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
index 5f2fab4..ac54d75 100644 (file)
@@ -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
index 1626bce..5337d3c 100644 (file)
@@ -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
index 77c8074..3a67c8d 100644 (file)
@@ -1,7 +1,7 @@
 
 set_rc_compiler()
 
-spec2def(dplayx.dll dplayx.spec)
+spec2def(dplayx.dll dplayx.spec ADD_IMPORTLIB)
 
 list(APPEND SOURCE
     dpclassfactory.c
index 84f3782..9607f13 100644 (file)
@@ -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
index 5f3acb7..17131c9 100644 (file)
@@ -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)
 
index 642815d..441b906 100644 (file)
@@ -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
index 39ce0ce..08ecf5c 100644 (file)
@@ -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
index 98c9a7f..949d33a 100644 (file)
@@ -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
index 82f45db..54f6648 100644 (file)
@@ -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
index 595fb30..ecee55c 100644 (file)
@@ -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
index 1abdaf0..12ee2e2 100644 (file)
@@ -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
index 431a783..4179273 100644 (file)
@@ -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
index d6d00c8..323070c 100644 (file)
@@ -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
index aa45584..9e1cde4 100644 (file)
@@ -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
index 249e819..37b69a6 100644 (file)
@@ -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
index cefe373..4a38e18 100644 (file)
@@ -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
index 7353481..a82c5ce 100644 (file)
@@ -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
index 34ca20b..27f6c3e 100644 (file)
@@ -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
index b05d1a5..aa39873 100644 (file)
@@ -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
index 0198977..160010a 100644 (file)
@@ -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
index a2b2c9d..5559daa 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(ntdll.dll def/ntdll.spec)
+spec2def(ntdll.dll def/ntdll.spec ADD_IMPORTLIB)
 
 add_definitions(
     -D__NTDLL__
index 5a92340..73c3b69 100644 (file)
@@ -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
index 41f8009..b028b06 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(aclui.dll aclui.spec)
+spec2def(aclui.dll aclui.spec ADD_IMPORTLIB)
 set_rc_compiler()
 set_unicode()
 
index d250c71..0ab4805 100644 (file)
@@ -1,7 +1,7 @@
 
 set_unicode()
 
-spec2def(advapi32.dll advapi32.spec)
+spec2def(advapi32.dll advapi32.spec ADD_IMPORTLIB GENERATE_STUBS)
 
 add_definitions(-D_ADVAPI32_)
 
index 3fc13e9..83742e2 100644 (file)
@@ -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
index 3e5f657..8206a94 100644 (file)
@@ -1,7 +1,7 @@
 
 set_unicode()
 
-spec2def(authz.dll authz.spec)
+spec2def(authz.dll authz.spec GENERATE_STUBS)
 
 list(APPEND SOURCE
     authz.c
index 268203e..dd9081b 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(avicap32.dll avicap32.spec)
+spec2def(avicap32.dll avicap32.spec ADD_IMPORTLIB)
 
 set_unicode()
 
index d1041cb..e27bcaf 100644 (file)
@@ -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
index d652c00..1c016a1 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(batt.dll batt.spec)
+spec2def(batt.dll batt.spec ADD_IMPORTLIB)
 
 set_unicode()
 set_rc_compiler()
index d618a81..606ef28 100644 (file)
@@ -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
index bac931c..2d1c0b3 100644 (file)
@@ -1,7 +1,7 @@
 
 set_unicode()
 
-spec2def(beepmidi.dll beepmidi.spec)
+spec2def(beepmidi.dll beepmidi.spec ADD_IMPORTLIB)
 
 list(APPEND SOURCE
     beepmidi.c
index f85c5e0..b994ccd 100644 (file)
@@ -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
index 1ef048f..97521f4 100644 (file)
@@ -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
index ad1bdcb..a60c417 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(cfgmgr32.dll cfgmgr32.spec)
+spec2def(cfgmgr32.dll cfgmgr32.spec GENERATE_STUBS)
 
 list(APPEND SOURCE
     cfgmgr32.rc
index c80015b..c95a4c1 100644 (file)
@@ -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
index 2bf9686..0c17d9a 100644 (file)
@@ -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
index 9091802..76d102e 100644 (file)
@@ -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
index c4fbafa..67a7d91 100644 (file)
@@ -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
index aa47834..91b420e 100644 (file)
@@ -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
index 22e772d..f46dc9a 100644 (file)
@@ -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
index 8dc706b..0898714 100644 (file)
@@ -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
index 51200f6..005171d 100644 (file)
@@ -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
index 17682b8..c936785 100644 (file)
@@ -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
index 59eacd2..e3fce2c 100644 (file)
@@ -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
index 038d75a..1243aec 100644 (file)
@@ -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
index 07959c6..a39077c 100644 (file)
@@ -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
index f82c89c..43a4557 100644 (file)
@@ -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
index da10aab..7beb3b2 100644 (file)
@@ -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
index 5f775cf..de27012 100644 (file)
@@ -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
index 38147a4..76085d9 100644 (file)
@@ -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
index 8773f74..8280e51 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(fmifs.dll fmifs.spec)
+spec2def(fmifs.dll fmifs.spec ADD_IMPORTLIB GENERATE_STUBS)
 
 list(APPEND SOURCE
     chkdsk.c
index fc43e3f..8fa2bb2 100644 (file)
@@ -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
index a3aaeb1..2478570 100644 (file)
@@ -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
index cf2e374..9f7c243 100644 (file)
@@ -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
index c0b1308..662cc4b 100644 (file)
@@ -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
index 24f9850..de38fb0 100644 (file)
@@ -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
index 4229f6d..b8143ff 100644 (file)
@@ -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
index 70e942e..9a16ff7 100644 (file)
@@ -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
index da27f38..ac09f59 100644 (file)
@@ -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
index 573098c..f835dc9 100644 (file)
@@ -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
index dfdd313..c3dc1cb 100644 (file)
@@ -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
index 0e0a1c7..10d357e 100644 (file)
@@ -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
index 84b92fc..9628b09 100644 (file)
@@ -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 
index 6133df7..ea912e9 100644 (file)
@@ -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
index 69a6991..3b93c36 100644 (file)
@@ -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
index c8ae984..6b39383 100644 (file)
@@ -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
index 57cc803..dcd135d 100644 (file)
@@ -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
index 188c2c3..e6bd785 100644 (file)
@@ -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
index d60988f..8840058 100644 (file)
@@ -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
index 2e5d86b..7e54e51 100644 (file)
@@ -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
index 5ce1b18..958d956 100644 (file)
@@ -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
index 7221755..bbe5740 100644 (file)
@@ -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
index 3e5d627..efb8caa 100644 (file)
@@ -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
index a251577..eb0a228 100644 (file)
@@ -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
index a120899..9e54f8b 100644 (file)
@@ -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
index 5c1484e..9e0fa1b 100644 (file)
@@ -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
index d30cbcc..a28f824 100644 (file)
@@ -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
index d4d7aac..695e3a2 100644 (file)
@@ -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
index 6578965..3e37c31 100644 (file)
@@ -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
index 95c08f6..5c23902 100644 (file)
@@ -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
index 8eb85ac..6d9af70 100644 (file)
@@ -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
index 8b3f6d9..c990c7e 100644 (file)
@@ -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
index 75d41f6..5b47c89 100644 (file)
@@ -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
index b4ec9df..69d3089 100644 (file)
@@ -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
index 89b40b5..eb7676e 100644 (file)
@@ -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
index 61071b9..cf3262e 100644 (file)
@@ -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
index d91ec8a..2d3aa58 100644 (file)
@@ -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
index 607b8e8..7b89c27 100644 (file)
@@ -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)
 
index f571b8b..f35017f 100644 (file)
@@ -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
index 3832d3f..c7b0947 100644 (file)
@@ -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
index c212187..546cfec 100644 (file)
@@ -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
index e95a1ee..bf1e8fd 100644 (file)
@@ -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
index 8b23122..97a25ef 100644 (file)
@@ -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
index 0e3d3ee..e60584e 100644 (file)
@@ -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
index cf5b757..0c3023e 100644 (file)
@@ -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
index 6e61473..fbf8736 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(msvcrt.dll msvcrt.spec)
+spec2def(msvcrt.dll msvcrt.spec ADD_IMPORTLIB)
 
 add_definitions(
     -DUSE_MSVCRT_PREFIX
index 57367f7..72d79ed 100644 (file)
@@ -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
index 8d50187..0690a7d 100644 (file)
@@ -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
index bfa9239..0c49fbf 100644 (file)
@@ -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
index a085f6b..fca598b 100644 (file)
@@ -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
index 988a646..ccd7d7a 100644 (file)
@@ -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
index fb2e955..1ded6d9 100644 (file)
@@ -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
index 9dc74cc..78d0655 100644 (file)
@@ -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
index d8c112f..faca424 100644 (file)
@@ -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
index 60f13db..abaa18e 100644 (file)
@@ -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
index a97c616..1fc46c6 100644 (file)
@@ -1,7 +1,7 @@
 
 set_unicode()
 
-spec2def(ntlanman.dll ntlanman.spec)
+spec2def(ntlanman.dll ntlanman.spec GENERATE_STUBS)
 
 list(APPEND SOURCE
     ntlanman.c
index ff7d168..1c1ea78 100644 (file)
@@ -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
index da84e34..6063f8e 100644 (file)
@@ -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
index 16e6061..80a0173 100644 (file)
@@ -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
index bb8ccfd..7003468 100644 (file)
@@ -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)
 
index e9948ef..2dbddda 100644 (file)
@@ -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
index bc1c630..51f2913 100644 (file)
@@ -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)
 
index fa90323..6a0eec3 100644 (file)
@@ -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
index e4d838a..cebbf9e 100644 (file)
@@ -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
index dbfc68a..cb3c403 100644 (file)
@@ -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
index 1fa6589..9511684 100644 (file)
@@ -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
index bdf1e4f..c0bda33 100644 (file)
@@ -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
index 6a81424..f539569 100644 (file)
@@ -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
index e175a58..fdd510b 100644 (file)
@@ -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
index 183a0cb..c28ade2 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(powrprof.dll powrprof.spec)
+spec2def(powrprof.dll powrprof.spec ADD_IMPORTLIB)
 
 set_unicode()
 
index 72777f1..af8552d 100644 (file)
@@ -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
index dda730a..11d69e4 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(psapi.dll psapi.spec)
+spec2def(psapi.dll psapi.spec ADD_IMPORTLIB)
 
 list(APPEND SOURCE
     malloc.c
index dc5aa64..bc1dbad 100644 (file)
@@ -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
index 3574784..91a0939 100644 (file)
@@ -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
index 05b95a0..caf5cd6 100644 (file)
@@ -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
index f3d3728..933129c 100644 (file)
@@ -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
index 0079620..4c9a714 100644 (file)
@@ -1,6 +1,6 @@
 
 set_rc_compiler()
-spec2def(rasdlg.dll rasdlg.spec)
+spec2def(rasdlg.dll rasdlg.spec GENERATE_STUBS)
 
 list(APPEND SOURCE
     rasdlg.c
index 626f756..4de4a91 100644 (file)
@@ -1,5 +1,5 @@
 set_rc_compiler()
-spec2def(rasman.dll rasman.spec)
+spec2def(rasman.dll rasman.spec GENERATE_STUBS)
 
 list(APPEND SOURCE
     rasman.c
index 4592d25..4acad3c 100644 (file)
@@ -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
index cf636b6..fe1c628 100644 (file)
@@ -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()
 
index c2d585f..9872f9f 100644 (file)
@@ -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})
 
index 4943449..87d29a4 100644 (file)
@@ -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
index 5b2754a..d67891e 100644 (file)
@@ -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
index 45f0a05..b4ac6e4 100644 (file)
@@ -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
index de83c95..eec6859 100644 (file)
@@ -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
index a460f04..151d157 100644 (file)
@@ -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
index 9612da9..151b6f9 100644 (file)
@@ -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
index 4cd101c..5abd8c8 100644 (file)
@@ -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
index 9be0fb7..cc17d19 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(sfc.dll sfc.spec)
+spec2def(sfc.dll sfc.spec GENERATE_STUBS)
 
 list(APPEND SOURCE
     sfc.c
index 0ffd0e7..98aaff6 100644 (file)
@@ -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
index db2f0c4..65a1e6a 100644 (file)
@@ -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
index 3180e9f..ec1974d 100644 (file)
@@ -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
index 1514361..97dfc2b 100644 (file)
@@ -1,6 +1,6 @@
 
 set_rc_compiler()
-spec2def(shimgvw.dll shimgvw.spec)
+spec2def(shimgvw.dll shimgvw.spec GENERATE_STUBS)
 
 list(APPEND SOURCE
     shimgvw.c
index f4d8ab7..1f6bd88 100644 (file)
@@ -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
index 50fb9d9..cd8bcfd 100644 (file)
@@ -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
index ba212af..563d753 100644 (file)
@@ -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
index 325d372..45f3b7a 100644 (file)
@@ -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
index 771a63e..127140e 100644 (file)
@@ -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
index e6088bb..8dc5d45 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(srclient.dll srclient.spec)
+spec2def(srclient.dll srclient.spec GENERATE_STUBS)
 
 list(APPEND SOURCE
     srclient_main.c
index 74e5742..fad069e 100644 (file)
@@ -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
index 433fb64..96504e9 100644 (file)
@@ -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
index c4b4d67..0aa4421 100644 (file)
@@ -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
index 41017c2..d18c2d4 100644 (file)
@@ -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
index 6476400..0f3b16a 100644 (file)
@@ -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
index 9836944..aa29ee8 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(ufatx.dll ufatx.spec)
+spec2def(ufatx.dll ufatx.spec ADD_IMPORTLIB)
 
 list(APPEND SOURCE
     ufatx.rc
index 1abe3c6..a91bd47 100644 (file)
@@ -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
index 456ccde..302ac41 100644 (file)
@@ -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
index ee901a0..691adc8 100644 (file)
@@ -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
index 99a9526..6acf2f3 100644 (file)
@@ -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)
 
index d406794..40c2602 100644 (file)
@@ -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
index f9327fe..7461f22 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(userenv.dll userenv.spec)
+spec2def(userenv.dll userenv.spec ADD_IMPORTLIB GENERATE_STUBS)
 
 set_rc_compiler()
 
index 17b66b1..2795a47 100644 (file)
@@ -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
index 30781aa..e7bbb53 100644 (file)
@@ -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
index beaf8ba..2780e48 100644 (file)
@@ -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
index d99a32c..3221896 100644 (file)
@@ -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
index a5bff14..76c6d87 100644 (file)
@@ -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
index 0351ba6..1974906 100644 (file)
@@ -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()
 
index 0f39831..bcc5b46 100644 (file)
@@ -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()
 
index ad8b6a2..faaea76 100644 (file)
@@ -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
index f4aebcd..2b189ab 100644 (file)
@@ -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
index 777a117..4b51870 100644 (file)
@@ -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
index c97f5e4..c804ff4 100644 (file)
@@ -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
index b2fdb3f..efef973 100644 (file)
@@ -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
index 6de001c..1bd5489 100644 (file)
@@ -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
index deb1230..aabc94d 100644 (file)
@@ -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
index 9d37edd..d40664e 100644 (file)
@@ -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
index 855cd3a..1f0ef96 100644 (file)
@@ -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
index ded06a8..463c40f 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(bootvid.dll bootvid.spec)
+spec2def(bootvid.dll bootvid.spec ADD_IMPORTLIB)
 
 list(APPEND SOURCE
     bootvid.rc
index 8e8a2e1..75f402a 100644 (file)
@@ -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)
index 8083793..32a9f9c 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(kdcom.dll kdcom.spec)
+spec2def(kdcom.dll kdcom.spec ADD_IMPORTLIB)
 
 add_library(kdcom SHARED
     kdcom.c
index 2cfea3a..b67b78d 100644 (file)
@@ -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
index cd1dbc8..7993a5e 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(dxgthk.sys dxgthk.spec)
+spec2def(dxgthk.sys dxgthk.spec ADD_IMPORTLIB)
 
 list(APPEND SOURCE
     main.c
index 712848b..ecae359 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(ks.sys ks.spec)
+spec2def(ks.sys ks.spec ADD_IMPORTLIB)
 
 add_definitions(
     -DBUILDING_KS
index f548a1b..3d013ad 100644 (file)
@@ -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
index 8820226..e490aea 100644 (file)
@@ -1,7 +1,7 @@
 
 include_directories(..)
 
-spec2def(class2.sys class2.spec)
+spec2def(class2.sys class2.spec ADD_IMPORTLIB)
 
 list(APPEND SOURCE
     class2.c
index c3365ce..3d4f46d 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(pciidex.sys pciidex.spec)
+spec2def(pciidex.sys pciidex.spec ADD_IMPORTLIB)
 
 list(APPEND SOURCE
     fdo.c
index 2be2a01..9a95a91 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(scsiport.sys scsiport.spec)
+spec2def(scsiport.sys scsiport.spec ADD_IMPORTLIB)
 
 list(APPEND SOURCE
     scsiport.c
index 5f30aab..dd67fdb 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(usbd.sys usbd.spec)
+spec2def(usbd.sys usbd.spec ADD_IMPORTLIB)
 
 add_library(usbd SHARED
     usbd.c
index 72458f7..a5d3d4d 100644 (file)
@@ -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
index 1eea498..d206ed6 100644 (file)
@@ -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
index eb70b99..ee6e22a 100644 (file)
@@ -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
index c00a650..45e7b9a 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(wmilib.sys wmilib.spec)
+spec2def(wmilib.sys wmilib.spec ADD_IMPORTLIB)
 
 list(APPEND SOURCE
     wmilib.c
index 13b14cc..09086cf 100644 (file)
@@ -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}
index 3932037..391a6ce 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(ntoskrnl.exe ntoskrnl.spec)
+spec2def(ntoskrnl.exe ntoskrnl.spec ADD_IMPORTLIB)
 
 include_directories(
     ${REACTOS_SOURCE_DIR}
index 2698982..f77acef 100644 (file)
@@ -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
index 649880c..5ce5175 100644 (file)
@@ -1,5 +1,5 @@
 
-spec2def(win32k.sys win32k.spec)
+spec2def(win32k.sys win32k.spec ADD_IMPORTLIB)
 
 include_directories(
     .