[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 8 Oct 2010 21:02:11 +0000 (21:02 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 8 Oct 2010 21:02:11 +0000 (21:02 +0000)
- More work on the dlls.
- libgcc is already a standard C lib, don't relink to it for executables.
- ICU isn't needed for now, disable it.

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

59 files changed:
base/applications/cacls/CMakeLists.txt
base/applications/calc/CMakeLists.txt
dll/win32/modemui/CMakeLists.txt
dll/win32/msafd/CMakeLists.txt
dll/win32/mscat32/CMakeLists.txt
dll/win32/msftedit/CMakeLists.txt
dll/win32/msimtf/CMakeLists.txt
dll/win32/msisip/CMakeLists.txt
dll/win32/msisys.ocx/CMakeLists.txt
dll/win32/msnet32/CMakeLists.txt
dll/win32/msrle32/CMakeLists.txt
dll/win32/mssign32/CMakeLists.txt
dll/win32/mssip32/CMakeLists.txt
dll/win32/mstask/CMakeLists.txt
dll/win32/msvcrt/CMakeLists.txt
dll/win32/msvcrt20/CMakeLists.txt
dll/win32/msvcrt40/CMakeLists.txt
dll/win32/msvfw32/CMakeLists.txt
dll/win32/msvidc32/CMakeLists.txt
dll/win32/mswsock/CMakeLists.txt
dll/win32/msxml3/CMakeLists.txt
dll/win32/nddeapi/CMakeLists.txt
dll/win32/netapi32/CMakeLists.txt
dll/win32/netcfgx/CMakeLists.txt
dll/win32/netid/CMakeLists.txt
dll/win32/newdev/CMakeLists.txt
dll/win32/ntdsapi/CMakeLists.txt
dll/win32/ntlanman/CMakeLists.txt
dll/win32/ntprint/CMakeLists.txt
dll/win32/objsel/CMakeLists.txt
dll/win32/olecli32/CMakeLists.txt
dll/win32/oledlg/CMakeLists.txt
dll/win32/olepro32/CMakeLists.txt
dll/win32/olesvr32/CMakeLists.txt
dll/win32/olethk32/CMakeLists.txt
dll/win32/pdh/CMakeLists.txt
dll/win32/pidgen/CMakeLists.txt
dll/win32/powrprof/CMakeLists.txt
dll/win32/printui/CMakeLists.txt
dll/win32/query/CMakeLists.txt
dll/win32/rasadhlp/CMakeLists.txt
dll/win32/rasapi32/CMakeLists.txt
dll/win32/rasdlg/CMakeLists.txt
dll/win32/rasman/CMakeLists.txt
dll/win32/resutils/CMakeLists.txt
dll/win32/riched32/CMakeLists.txt
dll/win32/rsabase/CMakeLists.txt
dll/win32/samlib/CMakeLists.txt
dll/win32/samsrv/CMakeLists.txt
dll/win32/sccbase/CMakeLists.txt
dll/win32/schannel/CMakeLists.txt
dll/win32/secur32/CMakeLists.txt
dll/win32/sensapi/CMakeLists.txt
dll/win32/serialui/CMakeLists.txt
dll/win32/shdoclc/CMakeLists.txt
dll/win32/shfolder/CMakeLists.txt
dll/win32/shlwapi/CMakeLists.txt
gcc.cmake
lib/3rdparty/CMakeLists.txt

index 47ddfa1..c3db5ac 100644 (file)
@@ -10,4 +10,4 @@ add_executable(cacls
 add_pch(cacls ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
 
 set_module_type(cacls win32cui)
-add_importlibs(cacls advapi32 user32 shell32 msvcrt)
+add_importlibs(cacls advapi32 user32 shell32 msvcrt kernel32)
index b30dccb..2efcee1 100644 (file)
@@ -13,4 +13,4 @@ add_executable(calc
     resource.rc)
 
 set_module_type(calc win32gui)
-add_importlibs(calc advapi32 user32 gdi32 msvcrt)
+add_importlibs(calc advapi32 user32 gdi32 msvcrt kernel32)
index 85bab87..ce1fe4e 100644 (file)
@@ -1,16 +1,13 @@
 
-
-
-add_definitions(-DUNICODE -D_UNICODE)
+set_unicode()
 
 spec2def(modemui ${CMAKE_CURRENT_SOURCE_DIR}/modemui.spec ${CMAKE_CURRENT_BINARY_DIR}/modemui.def)
 
 add_library(modemui SHARED modemui.c modemui.rc)
 
-set_target_properties(modemui PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(modemui win32dll)
 
-target_link_libraries(modemui
-    ${CMAKE_CURRENT_BINARY_DIR}/modemui.def
-    -lkernel32)
+target_link_libraries(modemui ${CMAKE_CURRENT_BINARY_DIR}/modemui.def)
 
-add_dependencies(modemui modemui_def psdk)
+add_importlibs(modemui kernel32)
+add_dependencies(modemui modemui_def)
index a2b20f4..95857fd 100644 (file)
@@ -1,7 +1,5 @@
 
-
-
-add_definitions(-DUNICODE -D_UNICODE)
+set_unicode()
 
 include_directories(BEFORE include)
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/drivers)
@@ -20,13 +18,11 @@ add_library(msafd SHARED
     ${CMAKE_CURRENT_BINARY_DIR}/msafd_msafd.h.gch
     ${SOURCE})
 
-set_target_properties(msafd PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(msafd win32dll)
 
-target_link_libraries(msafd
-    ${CMAKE_CURRENT_BINARY_DIR}/msafd.def
-    -ladvapi32
-    -lkernel32
-    -lntdll)
+target_link_libraries(msafd ${CMAKE_CURRENT_BINARY_DIR}/msafd.def)
 
 add_pch(msafd ${CMAKE_CURRENT_SOURCE_DIR}/msafd.h ${SOURCE})
-add_dependencies(msafd msafd_def psdk)
+
+add_importlibs(msafd advapi32 kernel32 ntdll)
+add_dependencies(msafd msafd_def)
index b757812..b73f814 100644 (file)
@@ -13,9 +13,5 @@ target_link_libraries(mscat32
     ${CMAKE_CURRENT_BINARY_DIR}/mscat32.def
     wine)
 
-add_importlibs(mscat32
-    wintrust
-    kernel32
-    ntdll)
-
+add_importlibs(mscat32 wintrust kernel32 ntdll)
 add_dependencies(mscat32 mscat32_def)
index 9cb7cd9..b35fe2b 100644 (file)
@@ -1,6 +1,5 @@
 
 add_definitions(-D__WINESRC__)
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 spec2def(msftedit ${CMAKE_CURRENT_SOURCE_DIR}/msftedit.spec ${CMAKE_CURRENT_BINARY_DIR}/msftedit.def)
@@ -16,9 +15,6 @@ target_link_libraries(msftedit
     uuid
     wine)
 
-add_importlibs(msftedit
-    riched20
-    kernel32
-    ntdll)
+add_importlibs(msftedit riched20 kernel32 ntdll)
 
 add_dependencies(msftedit msftedit_def)
index 9da56ea..3951970 100644 (file)
@@ -1,6 +1,5 @@
 
 add_definitions(-D__WINESRC__)
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 spec2def(msimtf ${CMAKE_CURRENT_SOURCE_DIR}/msimtf.spec ${CMAKE_CURRENT_BINARY_DIR}/msimtf.def)
@@ -17,10 +16,5 @@ target_link_libraries(msimtf
     uuid
     wine)
 
-add_importlibs(msimtf
-    msvcrt
-    imm32
-    kernel32
-    ntdll)
-
+add_importlibs(msimtf msvcrt imm32 kernel32 ntdll)
 add_dependencies(msimtf msimtf_def)
index 98da347..1bb99df 100644 (file)
@@ -1,6 +1,5 @@
 
 add_definitions(-D__WINESRC__)
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 spec2def(msisip ${CMAKE_CURRENT_SOURCE_DIR}/msisip.spec ${CMAKE_CURRENT_BINARY_DIR}/msisip.def)
@@ -13,10 +12,5 @@ target_link_libraries(msisip
     ${CMAKE_CURRENT_BINARY_DIR}/msisip.def
     wine)
 
-add_importlibs(msisip
-    crypt32
-    ole32
-    kernel32
-    ntdll)
-
+add_importlibs(msisip crypt32 ole32 kernel32 ntdll)
 add_dependencies(msisip msisip_def)
index ac83736..66f2199 100644 (file)
@@ -1,6 +1,5 @@
 
 add_definitions(-D__WINESRC__)
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 spec2def(msisys ${CMAKE_CURRENT_SOURCE_DIR}/msisys.ocx.spec ${CMAKE_CURRENT_BINARY_DIR}/msisys.def)
@@ -15,5 +14,4 @@ target_link_libraries(msisys
     wine)
 
 add_importlibs(msisys kernel32 ntdll)
-
 add_dependencies(msisys msisys_def)
index 53ee279..3ed7508 100644 (file)
@@ -1,19 +1,16 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(msnet32 ${CMAKE_CURRENT_SOURCE_DIR}/msnet32.spec ${CMAKE_CURRENT_BINARY_DIR}/msnet32.def)
 
 add_library(msnet32 SHARED msnet_main.c)
 
-set_target_properties(msnet32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(msnet32 win32dll)
 
 target_link_libraries(msnet32
     ${CMAKE_CURRENT_BINARY_DIR}/msnet32.def
-    wine
-    mingw_common)
+    wine)
 
-add_dependencies(msnet32 msnet32_def psdk)
+add_importlibs(msnet32 kernel32 ntdll)
+add_dependencies(msnet32 msnet32_def)
index f0455b9..bb90043 100644 (file)
@@ -14,11 +14,5 @@ target_link_libraries(msrle32
     ${CMAKE_CURRENT_BINARY_DIR}/msrle32.def
     wine)
 
-add_importlibs(msrle32
-    msvcrt
-    winmm
-    user32
-    kernel32
-    ntdll)
-
+add_importlibs(msrle32 msvcrt winmm user32 kernel32 ntdll)
 add_dependencies(msrle32 msrle32_def)
index 90fb70e..3cce8a8 100644 (file)
@@ -1,19 +1,16 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(mssign32 ${CMAKE_CURRENT_SOURCE_DIR}/mssign32.spec ${CMAKE_CURRENT_BINARY_DIR}/mssign32.def)
 
 add_library(mssign32 SHARED mssign32_main.c)
 
-set_target_properties(mssign32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(mssign32 win32dll)
 
 target_link_libraries(mssign32
     ${CMAKE_CURRENT_BINARY_DIR}/mssign32.def
-    wine
-    mingw_common)
+    wine)
 
-add_dependencies(mssign32 mssign32_def psdk)
+add_importlibs(mssign32 kernel32 ntdll)
+add_dependencies(mssign32 mssign32_def)
index 9c4d1d6..a86e62b 100644 (file)
@@ -1,19 +1,16 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(mssip32 ${CMAKE_CURRENT_SOURCE_DIR}/mssip32.spec ${CMAKE_CURRENT_BINARY_DIR}/mssip32.def)
 
 add_library(mssip32 SHARED main.c)
 
-set_target_properties(mssip32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(mssip32 win32dll)
 
 target_link_libraries(mssip32
     ${CMAKE_CURRENT_BINARY_DIR}/mssip32.def
-    wine
-    mingw_common)
+    wine)
 
-add_dependencies(mssip32 mssip32_def psdk)
+add_importlibs(mssip32 kernel32 ntdll)
+add_dependencies(mssip32 mssip32_def)
index 7d214bb..10aaefa 100644 (file)
@@ -1,7 +1,9 @@
 
 add_definitions(-D__WINESRC__)
+
 remove_definitions(-DWINVER=0x502)
 add_definitions(-DWINVER=0x600)
+
 remove_definitions(-D_WIN32_WINNT=0x502)
 add_definitions(-D__WINESRC__)
 
@@ -25,8 +27,5 @@ target_link_libraries(mstask
     uuid
     wine)
 
-add_importlibs(mstask
-    ole32
-    ntdll)
-
+add_importlibs(mstask ole32 ntdll)
 add_dependencies(mstask mstask_def)
index a949909..681f14e 100644 (file)
@@ -1,32 +1,30 @@
 
-
-
-add_definitions(-DUSE_MSVCRT_PREFIX)
-add_definitions(-D_MSVCRT_)
-add_definitions(-D_MSVCRT_LIB_)
-add_definitions(-D_MT)
-add_definitions(-D_CTYPE_DISABLE_MACROS)
-add_definitions(-D_NO_INLINING)
-add_definitions(-DCRTDLL)
-add_definitions(-D__MINGW_IMPORT="")
+add_definitions(
+    -DUSE_MSVCRT_PREFIX
+    -D_MSVCRT_
+    -D_MSVCRT_LIB_
+    -D_MT
+    -D_CTYPE_DISABLE_MACROS
+    -D_NO_INLINING
+    -DCRTDLL
+    -D__MINGW_IMPORT="")
 
 include_directories(${REACTOS_SOURCE_DIR}/lib/sdk/crt/include)
 
-file(GLOB_RECURSE SOURCE *.c)
+list(APPEND SOURCE dllmain.c msvcrt_stubs.c msvcrt.rc)
 
 add_library(msvcrt SHARED
-            ${SOURCE}
-            ${CMAKE_CURRENT_SOURCE_DIR}/msvcrt.rc
-            ${CMAKE_CURRENT_BINARY_DIR}/msvcrt_precomp.h.gch)
+    ${CMAKE_CURRENT_BINARY_DIR}/msvcrt_precomp.h.gch
+    ${SOURCE})
 
-set_target_properties(msvcrt PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12 -u __seh_longjmp_unwind@4")
+set_target_properties(msvcrt PROPERTIES LINK_FLAGS "-u __seh_longjmp_unwind@4")
+set_module_type(msvcrt win32dll)
 
-target_link_libraries(msvcrt ${CMAKE_CURRENT_SOURCE_DIR}/msvcrt.def
-                      crt
-                      wine
-                      pseh
-                      -lkernel32
-                      -lntdll)
+target_link_libraries(msvcrt
+    ${CMAKE_CURRENT_SOURCE_DIR}/msvcrt.def
+    crt
+    wine
+    pseh)
 
 add_pch(msvcrt ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
-add_dependencies(msvcrt psdk)
+add_importlibs(msvcrt kernel32 ntdll)
index 76b20f9..0d6e31a 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 add_definitions(-D__WINESRC__)
@@ -10,12 +8,11 @@ spec2def(msvcrt20 ${CMAKE_CURRENT_SOURCE_DIR}/msvcrt20.spec ${CMAKE_CURRENT_BINA
 
 add_library(msvcrt20 SHARED msvcrt20.c)
 
-set_target_properties(msvcrt20 PROPERTIES LINK_FLAGS "-Wl,-entry,0")
+set_entrypoint(msvcrt20 0)
 
 target_link_libraries(msvcrt20
     ${CMAKE_CURRENT_BINARY_DIR}/msvcrt20.def
-    wine
-    mingw_common
-    -lmsvcrt)
+    wine)
 
-add_dependencies(msvcrt20 msvcrt20_def psdk)
+add_importlibs(msvcrt20 msvcrt kernel32 ntdll)
+add_dependencies(msvcrt20 msvcrt20_def psdk buildno_header)
index 112e64c..cd55d5f 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 add_definitions(-D__WINESRC__)
@@ -10,12 +8,11 @@ spec2def(msvcrt40 ${CMAKE_CURRENT_SOURCE_DIR}/msvcrt40.spec ${CMAKE_CURRENT_BINA
 
 add_library(msvcrt40 SHARED msvcrt40.c)
 
-set_target_properties(msvcrt40 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(msvcrt40 win32dll)
 
 target_link_libraries(msvcrt40
     ${CMAKE_CURRENT_BINARY_DIR}/msvcrt40.def
-    wine
-    mingw_common
-    -lmsvcrt)
+    wine)
 
-add_dependencies(msvcrt40 msvcrt40_def psdk)
+add_importlibs(msvcrt40 msvcrt kernel32 ntdll)
+add_dependencies(msvcrt40 msvcrt40_def)
index 014f05f..0154bbf 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 add_definitions(-D__WINESRC__)
@@ -14,17 +12,11 @@ add_library(msvfw32 SHARED
     drawdib.c
     rsrc.rc)
 
-set_target_properties(msvfw32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(msvfw32 win32dll)
 
 target_link_libraries(msvfw32
     ${CMAKE_CURRENT_BINARY_DIR}/msvfw32.def
-    wine
-    -lwinmm
-    -lversion
-    -lcomctl32
-    -luser32
-    -lgdi32
-    -ladvapi32
-    mingw_common)
+    wine)
 
-add_dependencies(msvfw32 msvfw32_def psdk)
+add_importlibs(msvfw32 winmm version comctl32 user32 gdi32 advapi32 kernel32 ntdll)
+add_dependencies(msvfw32 msvfw32_def)
index 68151b8..46755ba 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 add_definitions(-D__WINESRC__)
@@ -10,12 +8,11 @@ spec2def(msvidc32 ${CMAKE_CURRENT_SOURCE_DIR}/msvidc32.spec ${CMAKE_CURRENT_BINA
 
 add_library(msvidc32 SHARED msvideo1.c rsrc.rc)
 
-set_target_properties(msvidc32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(msvidc32 win32dll)
 
 target_link_libraries(msvidc32
     ${CMAKE_CURRENT_BINARY_DIR}/msvidc32.def
-    wine
-    -luser32
-    mingw_common)
+    wine)
 
-add_dependencies(msvidc32 msvidc32_def psdk)
+add_importlibs(msvidc32 user32 kernel32 ntdll)
+add_dependencies(msvidc32 msvidc32_def)
index 8e39116..a14b739 100644 (file)
@@ -1,10 +1,8 @@
 
+set_unicode()
 
-
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
-add_definitions(-DUNICODE -D_UNICODE)
 add_definitions(-DLE)
+include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 spec2def(mswsock ${CMAKE_CURRENT_SOURCE_DIR}/mswsock.spec ${CMAKE_CURRENT_BINARY_DIR}/mswsock.def)
 
@@ -13,11 +11,9 @@ add_library(mswsock SHARED
     stubs.c
     mswsock.rc)
 
-set_target_properties(mswsock PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(mswsock win32dll)
 
-target_link_libraries(mswsock
-    ${CMAKE_CURRENT_BINARY_DIR}/mswsock.def
-    -lws2_32
-    -lkernel32)
+target_link_libraries(mswsock ${CMAKE_CURRENT_BINARY_DIR}/mswsock.def)
 
-add_dependencies(mswsock mswsock_def psdk)
+add_importlibs(mswsock ws2_32 kernel32)
+add_dependencies(mswsock mswsock_def)
index 967c32b..e4ec195 100644 (file)
@@ -21,15 +21,5 @@ target_link_libraries(netcfgx
     uuid
     wine)
 
-add_importlibs(netcfgx
-    rpcrt4
-    setupapi
-    advapi32
-    iphlpapi
-    ole32
-    user32
-    comctl32
-    ws2_32
-    ntdll)
-
+add_importlibs(netcfgx rpcrt4 setupapi advapi32 iphlpapi ole32 user32 comctl32 ws2_32 ntdll)
 add_dependencies(netcfgx netcfgx_def)
index 5fe54cf..6bb177e 100644 (file)
@@ -1,19 +1,16 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(nddeapi ${CMAKE_CURRENT_SOURCE_DIR}/nddeapi.spec ${CMAKE_CURRENT_BINARY_DIR}/nddeapi.def)
 
 add_library(nddeapi SHARED nddeapi.c)
 
-set_target_properties(nddeapi PROPERTIES LINK_FLAGS "-Wl,-entry,0")
+set_entrypoint(nddeapi 0)
 
 target_link_libraries(nddeapi
     ${CMAKE_CURRENT_BINARY_DIR}/nddeapi.def
-    wine
-    mingw_common)
+    wine)
 
-add_dependencies(nddeapi nddeapi_def psdk)
+add_importlibs(nddeapi kernel32 ntdll)
+add_dependencies(nddeapi nddeapi_def psdk buildno_header)
index 9e3211d..f21b588 100644 (file)
@@ -1,8 +1,5 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(netapi32 ${CMAKE_CURRENT_SOURCE_DIR}/netapi32.spec ${CMAKE_CURRENT_BINARY_DIR}/netapi32.def)
@@ -21,14 +18,11 @@ add_library(netapi32 SHARED
     share.c
     wksta.c)
 
-set_target_properties(netapi32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(netapi32 win32dll)
 
 target_link_libraries(netapi32
     ${CMAKE_CURRENT_BINARY_DIR}/netapi32.def
-    wine
-    -liphlpapi
-    -lws2_32
-    -ladvapi32
-    mingw_common)
+    wine)
 
-add_dependencies(netapi32 netapi32_def psdk)
+add_importlibs(netapi32 iphlpapi ws2_32 advapi32 kernel32 ntdll)
+add_dependencies(netapi32 netapi32_def)
index 4cbac84..5d65f43 100644 (file)
@@ -19,16 +19,5 @@ target_link_libraries(netcfgx
     uuid
     wine)
 
-add_importlibs(netcfgx
-    rpcrt4
-    setupapi
-    advapi32
-    iphlpapi
-    ole32
-    user32
-    comctl32
-    ws2_32
-    kernel32
-    ntdll)
-
+add_importlibs(netcfgx rpcrt4 setupapi advapi32 iphlpapi ole32 user32 comctl32 ws2_32 kernel32 ntdll)
 add_dependencies(netcfgx netcfgx_def)
index 062e660..20187c1 100644 (file)
@@ -8,13 +8,5 @@ set_module_type(netid win32dll)
 target_link_libraries(netid
     ${CMAKE_CURRENT_BINARY_DIR}/netid.def)
 
-add_importlibs(netid
-    user32
-    gdi32
-    comctl32
-    advapi32
-    netapi32
-    kernel32
-    ntdll)
-
+add_importlibs(netid user32 gdi32 comctl32 advapi32 netapi32 kernel32 ntdll)
 add_dependencies(netid netid_def)
index 7faa227..46beca2 100644 (file)
@@ -1,7 +1,5 @@
 
-
-
-add_definitions(-DUNICODE -D_UNICODE)
+set_unicode()
 
 spec2def(newdev ${CMAKE_CURRENT_SOURCE_DIR}/newdev.spec ${CMAKE_CURRENT_BINARY_DIR}/newdev.def)
 
@@ -11,17 +9,11 @@ add_library(newdev SHARED
     wizard.c
     newdev.rc)
 
-set_target_properties(newdev PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(newdev win32dll)
 
 target_link_libraries(newdev
     ${CMAKE_CURRENT_BINARY_DIR}/newdev.def
-    wine
-    mingw_common
-    -lgdi32
-    -lcomctl32
-    -lsetupapi
-    -ladvapi32
-    -luser32
-    -lshell32)
+    wine)
 
-add_dependencies(newdev newdev_def psdk)
+add_importlibs(newdev gdi32 comctl32 setupapi advapi32 user32 shell32 kernel32 ntdll)
+add_dependencies(newdev newdev_def)
index 818827e..54069e0 100644 (file)
@@ -1,20 +1,16 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(ntdsapi ${CMAKE_CURRENT_SOURCE_DIR}/ntdsapi.spec ${CMAKE_CURRENT_BINARY_DIR}/ntdsapi.def)
 
 add_library(ntdsapi SHARED ntdsapi.c)
 
-set_target_properties(ntdsapi PROPERTIES LINK_FLAGS "-Wl,-entry,0")
+set_entrypoint(ntdsapi 0)
 
 target_link_libraries(ntdsapi
     ${CMAKE_CURRENT_BINARY_DIR}/ntdsapi.def
-    wine
-    -luser32
-    mingw_common)
+    wine)
 
-add_dependencies(ntdsapi ntdsapi_def psdk)
+add_importlibs(ntdsapi user32 kernel32 ntdll)
+add_dependencies(ntdsapi ntdsapi_def psdk buildno_header)
index 5a4412d..06116cc 100644 (file)
@@ -1,18 +1,15 @@
 
-
-
-add_definitions(-DUNICODE -D_UNICODE)
+set_unicode()
 
 spec2def(ntlanman ${CMAKE_CURRENT_SOURCE_DIR}/ntlanman.spec ${CMAKE_CURRENT_BINARY_DIR}/ntlanman.def)
 
 add_library(ntlanman SHARED ntlanman.c ntlanman.rc)
 
-set_target_properties(ntlanman PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(ntlanman win32dll)
 
 target_link_libraries(ntlanman
     ${CMAKE_CURRENT_BINARY_DIR}/ntlanman.def
-    wine
-    mingw_common
-    -lnetapi32)
+    wine)
 
-add_dependencies(ntlanman ntlanman_def psdk)
+add_importlibs(ntlanman netapi32 kernel32 ntdll)
+add_dependencies(ntlanman ntlanman_def)
index 497f38b..e4b844e 100644 (file)
@@ -1,20 +1,16 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(ntprint ${CMAKE_CURRENT_SOURCE_DIR}/ntprint.spec ${CMAKE_CURRENT_BINARY_DIR}/ntprint.def)
 
 add_library(ntprint SHARED ntprint.c ntprint.rc)
 
-set_target_properties(ntprint PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(ntprint win32dll)
 
 target_link_libraries(ntprint
     ${CMAKE_CURRENT_BINARY_DIR}/ntprint.def
-    wine
-    -lwinspool
-    mingw_common)
+    wine)
 
+add_importlibs(ntprint winspool kernel32 ntdll)
 add_dependencies(ntprint ntprint_def psdk)
index bff7f75..709c875 100644 (file)
@@ -1,5 +1,6 @@
 
 add_definitions(-D__WINESRC__)
+
 remove_definitions(-D_WIN32_WINNT=0x502)
 add_definitions(-D_WIN32_WINNT=0x600)
 
index ae6bf87..1d5a99e 100644 (file)
@@ -1,21 +1,16 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(olecli32 ${CMAKE_CURRENT_SOURCE_DIR}/olecli32.spec ${CMAKE_CURRENT_BINARY_DIR}/olecli32.def)
 
 add_library(olecli32 SHARED olecli_main.c)
 
-set_target_properties(olecli32 PROPERTIES LINK_FLAGS "-Wl,-entry,0")
+set_entrypoint(olecli32 0)
 
 target_link_libraries(olecli32
     ${CMAKE_CURRENT_BINARY_DIR}/olecli32.def
-    wine
-    -lole32
-    -lgdi32
-    mingw_common)
+    wine)
 
-add_dependencies(olecli32 olecli32_def psdk)
+add_importlibs(oleacc ole32 gdi32 kernel32 ntdll)
+add_dependencies(olecli32 olecli32_def psdk buildno_header)
index ab150ad..cc5ab3a 100644 (file)
@@ -1,8 +1,5 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(oledlg ${CMAKE_CURRENT_SOURCE_DIR}/oledlg.spec ${CMAKE_CURRENT_BINARY_DIR}/oledlg.def)
@@ -13,15 +10,11 @@ add_library(oledlg SHARED
     pastespl.c
     rsrc.rc)
 
-set_target_properties(oledlg PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(oledlg win32dll)
 
 target_link_libraries(oledlg
     ${CMAKE_CURRENT_BINARY_DIR}/oledlg.def
-    wine
-    -lole32
-    -lcomdlg32
-    -luser32
-    -ladvapi32
-    mingw_common)
+    wine)
 
-add_dependencies(oledlg oledlg_def psdk)
+add_importlibs(oledlg ole32 comdlg32 user32 advapi32 kernel32 ntdll)
+add_dependencies(oledlg oledlg_def)
index f592940..ec6ac3e 100644 (file)
@@ -1,6 +1,5 @@
 
 add_definitions(-D__WINESRC__)
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 spec2def(olepro32 ${CMAKE_CURRENT_SOURCE_DIR}/olepro32.spec ${CMAKE_CURRENT_BINARY_DIR}/olepro32.def)
index 1b8688d..19a24b4 100644 (file)
@@ -1,19 +1,17 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(olesvr32 ${CMAKE_CURRENT_SOURCE_DIR}/olesvr32.spec ${CMAKE_CURRENT_BINARY_DIR}/olesvr32.def)
 
 add_library(olesvr32 SHARED olesvr_main.c)
 
-set_target_properties(olesvr32 PROPERTIES LINK_FLAGS "-Wl,-entry,0")
+set_entrypoint(olesvr32 0)
 
 target_link_libraries(olesvr32
     ${CMAKE_CURRENT_BINARY_DIR}/olesvr32.def
     wine
     mingw_common)
 
-add_dependencies(olesvr32 olesvr32_def psdk)
+add_importlibs(olesvr32 kernel32 ntdll)
+add_dependencies(olesvr32 olesvr32_def psdk buildno_header)
index df4b3de..aba389c 100644 (file)
@@ -1,19 +1,16 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(olethk32 ${CMAKE_CURRENT_SOURCE_DIR}/olethk32.spec ${CMAKE_CURRENT_BINARY_DIR}/olethk32.def)
 
 add_library(olethk32 SHARED main.c version.rc)
 
-set_target_properties(olethk32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(olethk32 win32dll)
 
 target_link_libraries(olethk32
     ${CMAKE_CURRENT_BINARY_DIR}/olethk32.def
-    wine
-    mingw_common)
+    wine)
 
+add_importlibs(olethk32 kernel32 ntdll)
 add_dependencies(olethk32 olethk32_def psdk)
index 31cadb0..fbd725d 100644 (file)
@@ -1,5 +1,6 @@
 
 add_definitions(-D__WINESRC__)
+
 remove_definitions(-D_WIN32_WINNT=0x502)
 add_definitions(-D_WIN32_WINNT=0x600)
 
index 8b47363..067beca 100644 (file)
@@ -1,19 +1,16 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(pidgen ${CMAKE_CURRENT_SOURCE_DIR}/pidgen.spec ${CMAKE_CURRENT_BINARY_DIR}/pidgen.def)
 
 add_library(pidgen SHARED main.c rsrc.rc)
 
-set_target_properties(pidgen PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(pidgen win32dll)
 
 target_link_libraries(pidgen
     ${CMAKE_CURRENT_BINARY_DIR}/pidgen.def
-    wine
-    mingw_common)
+    wine)
 
-add_dependencies(pidgen pidgen_def psdk)
+add_importlibs(pidgen kernel32 ntdll)
+add_dependencies(pidgen pidgen_def)
index 6a56507..1a8cdf3 100644 (file)
@@ -1,20 +1,15 @@
 
-
-
-add_definitions(-DUNICODE -D_UNICODE)
+set_unicode()
 
 spec2def(powrprof ${CMAKE_CURRENT_SOURCE_DIR}/powrprof.spec ${CMAKE_CURRENT_BINARY_DIR}/powrprof.def)
 
 add_library(powrprof SHARED powrprof.c powrprof.rc)
 
-set_target_properties(powrprof PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(powrprof win32dll)
 
 target_link_libraries(powrprof
     ${CMAKE_CURRENT_BINARY_DIR}/powrprof.def
-    wine
-    -ladvapi32
-    -luser32
-    -lcomctl32
-    mingw_common)
+    wine)
 
-add_dependencies(powrprof powrprof_def psdk)
+add_importlibs(powrprof advapi32 user32 comctl32 kernel32 ntdll)
+add_dependencies(powrprof powrprof_def)
index 0866a09..3cbbab7 100644 (file)
@@ -1,20 +1,16 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(printui ${CMAKE_CURRENT_SOURCE_DIR}/printui.spec ${CMAKE_CURRENT_BINARY_DIR}/printui.def)
 
 add_library(printui SHARED printui.c printui.rc)
 
-set_target_properties(printui PROPERTIES LINK_FLAGS "-Wl,-entry,0")
+set_entrypoint(printui 0)
 
 target_link_libraries(printui
     ${CMAKE_CURRENT_BINARY_DIR}/printui.def
-    wine
-    -lshell32
-    mingw_common)
+    wine)
 
-add_dependencies(printui printui_def psdk)
+add_importlibs(printui shell32 kernel32 ntdll)
+add_dependencies(printui printui_def psdk buildno_header)
index 367f695..5076114 100644 (file)
@@ -1,20 +1,17 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(query ${CMAKE_CURRENT_SOURCE_DIR}/query.spec ${CMAKE_CURRENT_BINARY_DIR}/query.def)
 
 add_library(query SHARED query_main.c)
 
-set_target_properties(query PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(query win32dll)
 
 target_link_libraries(query
     ${CMAKE_CURRENT_BINARY_DIR}/query.def
     wine
-    -luuid
-    mingw_common)
+    uuid)
 
-add_dependencies(query query_def psdk)
+add_importlibs(query kernel32 ntdll)
+add_dependencies(query query_def)
index 519f203..e528c09 100644 (file)
@@ -10,12 +10,8 @@ add_library(rasadhlp SHARED
 
 set_module_type(rasadhlp win32dll)
 
-target_link_libraries(rasadhlp
-    ${CMAKE_CURRENT_BINARY_DIR}/rasadhlp.def)
+target_link_libraries(rasadhlp ${CMAKE_CURRENT_BINARY_DIR}/rasadhlp.def)
 
-add_importlibs(rasadhlp
-    ws2_32
-    kernel32
-    ntdll)
+add_importlibs(rasadhlp ws2_32 kernel32 ntdll)
 
 add_dependencies(rasadhlp rasadhlp_def)
index 9bef206..4187f3b 100644 (file)
@@ -1,19 +1,16 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(rasapi32 ${CMAKE_CURRENT_SOURCE_DIR}/rasapi32.spec ${CMAKE_CURRENT_BINARY_DIR}/rasapi32.def)
 
 add_library(rasapi32 SHARED rasapi.c)
 
-set_target_properties(rasapi32 PROPERTIES LINK_FLAGS "-Wl,-entry,0")
+set_entrypoint(rasapi32 0)
 
 target_link_libraries(rasapi32
     ${CMAKE_CURRENT_BINARY_DIR}/rasapi32.def
-    wine
-    mingw_common)
+    wine)
 
-add_dependencies(rasapi32 rasapi32_def psdk)
+add_importlibs(rasapi32 kernel32 ntdll)
+add_dependencies(rasapi32 rasapi32_def psdk buildno_header)
index aaf6bef..20ae5cf 100644 (file)
@@ -1,16 +1,14 @@
 
-
-
 spec2def(rasdlg ${CMAKE_CURRENT_SOURCE_DIR}/rasdlg.spec ${CMAKE_CURRENT_BINARY_DIR}/rasdlg.def)
 
 add_library(rasdlg SHARED rasdlg.c rasdlg.rc)
 
-set_target_properties(rasdlg PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(rasdlg win32dll)
 
 target_link_libraries(rasdlg
     ${CMAKE_CURRENT_BINARY_DIR}/rasdlg.def
     wine
-    -luuid
-    mingw_common)
+    uuid)
 
-add_dependencies(rasdlg rasdlg_def psdk)
+add_importlibs(rasdlg kernel32 ntdll)
+add_dependencies(rasdlg rasdlg_def)
index 5517e1a..cb306d4 100644 (file)
@@ -1,16 +1,14 @@
 
-
-
 spec2def(rasman ${CMAKE_CURRENT_SOURCE_DIR}/rasman.spec ${CMAKE_CURRENT_BINARY_DIR}/rasman.def)
 
 add_library(rasman SHARED rasman.c rasman.rc)
 
-set_target_properties(rasman PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(rasman win32dll)
 
 target_link_libraries(rasman
     ${CMAKE_CURRENT_BINARY_DIR}/rasman.def
     wine
-    -luuid
-    mingw_common)
+    uuid)
 
-add_dependencies(rasman rasman_def psdk)
+add_importlibs(rasman kernel32 ntdll)
+add_dependencies(rasman rasman_def)
index 11eabd7..3f69fe2 100644 (file)
@@ -1,19 +1,16 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(resutils ${CMAKE_CURRENT_SOURCE_DIR}/resutils.spec ${CMAKE_CURRENT_BINARY_DIR}/resutils.def)
 
 add_library(resutils SHARED resutils.c)
 
-set_target_properties(resutils PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(resutils win32dll)
 
 target_link_libraries(resutils
     ${CMAKE_CURRENT_BINARY_DIR}/resutils.def
-    wine
-    mingw_common)
+    wine)
 
-add_dependencies(resutils resutils_def psdk)
+add_importlibs(resutils kernel32 ntdll)
+add_dependencies(resutils resutils_def)
index 5754872..8a40afc 100644 (file)
@@ -1,6 +1,5 @@
 
 add_definitions(-D__WINESRC__)
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 spec2def(riched32 ${CMAKE_CURRENT_SOURCE_DIR}/riched32.spec ${CMAKE_CURRENT_BINARY_DIR}/riched32.def)
index bbfb63a..d22fe9d 100644 (file)
@@ -1,6 +1,5 @@
 
 add_definitions(-D__WINESRC__)
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 spec2def(rsabase ${CMAKE_CURRENT_SOURCE_DIR}/rsabase.spec ${CMAKE_CURRENT_BINARY_DIR}/rsabase.def)
index b80b4c0..b3e88f7 100644 (file)
@@ -1,19 +1,14 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(samlib ${CMAKE_CURRENT_SOURCE_DIR}/samlib.spec ${CMAKE_CURRENT_BINARY_DIR}/samlib.def)
 
 add_library(samlib SHARED dllmain.c samlib.c samlib.rc)
 
-set_target_properties(samlib PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(samlib win32dll)
 
-target_link_libraries(samlib
-    ${CMAKE_CURRENT_BINARY_DIR}/samlib.def
-    -ladvapi32
-    mingw_common)
+target_link_libraries(samlib ${CMAKE_CURRENT_BINARY_DIR}/samlib.def)
 
-add_dependencies(samlib samlib_def psdk)
+add_importlibs(samlib advapi32 kernel32 ntdll)
+add_dependencies(samlib samlib_def)
index 4c14012..871464f 100644 (file)
@@ -1,16 +1,13 @@
 
-
-
-add_definitions(-DUNICODE -D_UNICODE)
+set_unicode()
 
 spec2def(samsrv ${CMAKE_CURRENT_SOURCE_DIR}/samsrv.spec ${CMAKE_CURRENT_BINARY_DIR}/samsrv.def)
 
 add_library(samsrv SHARED samsrv.c samsrv.rc)
 
-set_target_properties(samsrv PROPERTIES LINK_FLAGS "-Wl,-entry,0")
+set_entrypoint(samsrv 0)
 
-target_link_libraries(samsrv
-    ${CMAKE_CURRENT_BINARY_DIR}/samsrv.def
-    mingw_common)
+target_link_libraries(samsrv ${CMAKE_CURRENT_BINARY_DIR}/samsrv.def)
 
-add_dependencies(samsrv samsrv_def psdk)
+add_importlibs(samsrv kernel32 ntdll)
+add_dependencies(samsrv samsrv_def psdk buildno_header)
index a56188d..1781ebc 100644 (file)
@@ -1,19 +1,16 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(sccbase ${CMAKE_CURRENT_SOURCE_DIR}/sccbase.spec ${CMAKE_CURRENT_BINARY_DIR}/sccbase.def)
 
 add_library(sccbase SHARED main.c)
 
-set_target_properties(sccbase PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(sccbase win32dll)
 
 target_link_libraries(sccbase
     ${CMAKE_CURRENT_BINARY_DIR}/sccbase.def
-    wine
-    mingw_common)
+    wine)
 
-add_dependencies(sccbase sccbase_def psdk)
+add_importlibs(sccbase kernel32 ntdll)
+add_dependencies(sccbase sccbase_def)
index 72e3514..90fe881 100644 (file)
@@ -1,8 +1,5 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(schannel ${CMAKE_CURRENT_SOURCE_DIR}/schannel.spec ${CMAKE_CURRENT_BINARY_DIR}/schannel.def)
@@ -13,12 +10,11 @@ add_library(schannel SHARED
     usermode.c
     version.rc)
 
-set_target_properties(schannel PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(schannel win32dll)
 
 target_link_libraries(schannel
     ${CMAKE_CURRENT_BINARY_DIR}/schannel.def
-    wine
-    -lsecur32
-    mingw_common)
+    wine)
 
-add_dependencies(schannel schannel_def psdk)
+add_importlibs(schannel secur32 kernel32 ntdll)
+add_dependencies(schannel schannel_def)
index ebe6393..093601f 100644 (file)
@@ -1,6 +1,5 @@
 
 add_definitions(-D__SECUR32__)
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
 
 spec2def(secur32 ${CMAKE_CURRENT_SOURCE_DIR}/secur32.spec ${CMAKE_CURRENT_BINARY_DIR}/secur32.def)
index 403ae92..533ba25 100644 (file)
@@ -1,19 +1,16 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(sensapi ${CMAKE_CURRENT_SOURCE_DIR}/sensapi.spec ${CMAKE_CURRENT_BINARY_DIR}/sensapi.def)
 
 add_library(sensapi SHARED sensapi.c)
 
-set_target_properties(sensapi PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(sensapi win32dll)
 
 target_link_libraries(sensapi
     ${CMAKE_CURRENT_BINARY_DIR}/sensapi.def
-    wine
-    mingw_common)
+    wine)
 
-add_dependencies(sensapi sensapi_def psdk)
+add_importlibs(sensapi kernel32 ntdll)
+add_dependencies(sensapi sensapi_def)
index fef25a7..9dbfe7c 100644 (file)
@@ -1,18 +1,13 @@
 
-
-
-add_definitions(-DUNICODE -D_UNICODE)
+set_unicode()
 
 spec2def(serialui ${CMAKE_CURRENT_SOURCE_DIR}/serialui.spec ${CMAKE_CURRENT_BINARY_DIR}/serialui.def)
 
 add_library(serialui SHARED serialui.c serialui.rc)
 
-set_target_properties(serialui PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(serialui win32dll)
 
-target_link_libraries(serialui
-    ${CMAKE_CURRENT_BINARY_DIR}/serialui.def
-    -luser32
-    -lshlwapi
-    -lkernel32)
+target_link_libraries(serialui ${CMAKE_CURRENT_BINARY_DIR}/serialui.def)
 
-add_dependencies(serialui serialui_def psdk)
+add_importlibs(serialui user32 shlwapi kernel32)
+add_dependencies(serialui serialui_def)
index fb680c0..8244a46 100644 (file)
@@ -1,17 +1,15 @@
 
-set(CMAKE_RC_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 spec2def(shdoclc ${CMAKE_CURRENT_SOURCE_DIR}/shdoclc.spec ${CMAKE_CURRENT_BINARY_DIR}/shdoclc.def)
 
 add_library(shdoclc SHARED rsrc.rc)
 
-set_target_properties(shdoclc PROPERTIES LINK_FLAGS "-Wl,-entry,0")
+set_entrypoint(shdoclc 0)
 
 target_link_libraries(shdoclc
     ${CMAKE_CURRENT_BINARY_DIR}/shdoclc.def
-    wine
-    mingw_common)
+    wine)
 
-add_dependencies(shdoclc shdoclc_def psdk)
+add_importlibs(shdoclc kernel32 ntdll)
+add_dependencies(shdoclc shdoclc_def psdk buildno_header)
index 8bdba8f..62f85ef 100644 (file)
@@ -1,20 +1,16 @@
 
-set(CMAKE_RC_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 spec2def(shfolder ${CMAKE_CURRENT_SOURCE_DIR}/shfolder.spec ${CMAKE_CURRENT_BINARY_DIR}/shfolder.def)
 
 add_library(shfolder SHARED version.rc)
 
-set_target_properties(shfolder PROPERTIES LINK_FLAGS "-Wl,-entry,0")
+set_entrypoint(shfolder 0)
 
 target_link_libraries(shfolder
     ${CMAKE_CURRENT_BINARY_DIR}/shfolder.def
-    wine
-    -lshell32
-    mingw_common)
+    wine)
 
-add_dependencies(shfolder shfolder_def psdk)
+add_importlibs(shfolder shell32 kernel32 ntdll)
+add_dependencies(shfolder shfolder_def psdk buildno_header)
index 7e8aec5..e51081a 100644 (file)
@@ -1,8 +1,5 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
 add_definitions(-D__WINESRC__)
 
 remove_definitions(-D_WIN32_WINNT=0x502)
@@ -27,25 +24,25 @@ add_library(shlwapi SHARED
     wsprintf.c
     shlwapi.rc)
 
-set_target_properties(shlwapi PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(shlwapi win32dll)
 
 target_link_libraries(shlwapi
     ${CMAKE_CURRENT_BINARY_DIR}/shlwapi.def
     wine
-    uuid
-    -luser32
-    -lgdi32
-    -ladvapi32
-    -loleaut32
-    -lole32
-    -lcomctl32
-    -lcomdlg32
-    -lmpr
-    -lmlang
-    -lurlmon
-    -lshell32
-    -lwinmm
-    -lversion
-    mingw_common)
-
-add_dependencies(shlwapi shlwapi_def psdk)
+    uuid)
+
+add_importlibs(shlwapi
+    user32
+    gdi32
+    advapi32
+    oleaut32
+    ole32
+    comctl32
+    comdlg32
+    mpr
+    mlang
+    urlmon
+    winmm
+    version)
+
+add_dependencies(shlwapi shlwapi_def)
index 1198769..46b51eb 100644 (file)
--- a/gcc.cmake
+++ b/gcc.cmake
@@ -89,7 +89,7 @@ macro(set_module_type MODULE TYPE)
         else()
             target_link_libraries(${MODULE} mingw_wmain)
         endif(NOT IS_UNICODE)
-               target_link_libraries(${MODULE} -lgcc mingw_common)
+               target_link_libraries(${MODULE} mingw_common)
     endif()
     if(${TYPE} MATCHES win32cui)
         set_subsystem(${MODULE} console)
@@ -99,7 +99,7 @@ macro(set_module_type MODULE TYPE)
         else()
             target_link_libraries(${MODULE} mingw_wmain)
         endif(NOT IS_UNICODE)
-               target_link_libraries(${MODULE} -lgcc mingw_common)
+               target_link_libraries(${MODULE} mingw_common)
     endif()
     if(${TYPE} MATCHES win32dll)
         set_entrypoint(${MODULE} DllMain@12)
index 7a508c6..0115771 100644 (file)
@@ -5,7 +5,7 @@ add_subdirectory(cardlib)
 add_subdirectory(expat)
 add_subdirectory(freetype)
 add_subdirectory(fullfat)
-add_subdirectory(icu4ros)
+#add_subdirectory(icu4ros)
 #add_subdirectory(libmpg123)
 add_subdirectory(libsamplerate)
 add_subdirectory(libwine)