[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 10 Dec 2010 16:08:35 +0000 (16:08 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 10 Dec 2010 16:08:35 +0000 (16:08 +0000)
- Add some importlib targets.

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

16 files changed:
dll/win32/atl/CMakeLists.txt
dll/win32/avifil32/CMakeLists.txt
dll/win32/credui/CMakeLists.txt
dll/win32/cryptnet/CMakeLists.txt
dll/win32/hlink/CMakeLists.txt
dll/win32/icmp/CMakeLists.txt
dll/win32/inetcomm/CMakeLists.txt
dll/win32/ntdsapi/CMakeLists.txt
dll/win32/odbccp32/CMakeLists.txt
dll/win32/oleacc/CMakeLists.txt
dll/win32/pdh/CMakeLists.txt
dll/win32/powrprof/CMakeLists.txt
dll/win32/winhttp/CMakeLists.txt
dll/win32/wlanapi/CMakeLists.txt
dll/win32/wldap32/CMakeLists.txt
dll/win32/xmllite/CMakeLists.txt

index b47f966..dc965ab 100644 (file)
@@ -22,9 +22,7 @@ add_library(atl SHARED ${SOURCE})
 
 set_module_type(atl win32dll)
 
-target_link_libraries(atl
-    uuid
-    wine)
+target_link_libraries(atl uuid wine)
 
 add_importlibs(atl
     msvcrt
@@ -36,5 +34,7 @@ add_importlibs(atl
     kernel32
     ntdll)
 
+add_importlib_target(atl.spec)
+
 add_dependencies(atl atl_atliface_header)
 add_cab_target(atl 1)
index 4181029..c5c72a5 100644 (file)
@@ -7,6 +7,8 @@ add_definitions(-D_WIN32_WINNT=0x600)
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
+spec2def(avifil32.dll avifil32.spec)
+
 add_library(avifil32 SHARED
     acmstream.c
     api.c
@@ -20,17 +22,11 @@ add_library(avifil32 SHARED
     tmpfile.c
     wavfile.c
     rsrc.rc
-    avifil32.def)
-
-if(NOT MSVC)
-    set_source_files_properties(avifil32.def PROPERTIES EXTERNAL_OBJECT TRUE)
-endif()
+    ${CMAKE_CURRENT_BINARY_DIR}/avifil32.def)
 
 set_module_type(avifil32 win32dll)
 
-target_link_libraries(avifil32
-    uuid
-    wine)
+target_link_libraries(avifil32 uuid wine)
 
 add_importlibs(avifil32
     msvcrt
@@ -43,4 +39,5 @@ add_importlibs(avifil32
     kernel32
     ntdll)
 
+add_importlib_target(avifil32.spec)
 add_cab_target(avifil32 1)
index 9117a16..338c213 100644 (file)
@@ -18,5 +18,6 @@ set_module_type(credui win32dll)
 target_link_libraries(credui wine)
 
 add_importlibs(credui advapi32 user32 comctl32 msvcrt kernel32 ntdll)
+add_importlib_target(credui.spec)
 
 add_cab_target(credui 1)
index f3ad22e..a0e4423 100644 (file)
@@ -21,5 +21,5 @@ add_importlibs(cryptnet
     kernel32
     ntdll)
 
-
+add_importlib_target(cryptnet.spec)
 add_cab_target(cryptnet 1)
index 00cc9e3..c9f328b 100644 (file)
@@ -28,5 +28,5 @@ add_importlibs(hlink
     kernel32
     ntdll)
 
-
+add_importlib_target(hlink.spec)
 add_cab_target(hlink 1)
index 1ab64e7..aed1b62 100644 (file)
@@ -16,5 +16,5 @@ set_module_type(icmp win32dll)
 target_link_libraries(icmp wine)
 
 add_importlibs(icmp ws2_32 msvcrt kernel32 ntdll)
-add_dependencies(icmp psdk)
+add_importlib_target(icmp.spec)
 add_cab_target(icmp 1)
index e914418..c0924d6 100644 (file)
@@ -21,9 +21,7 @@ add_library(inetcomm SHARED ${SOURCE})
 
 set_module_type(inetcomm win32dll)
 
-target_link_libraries(inetcomm
-    uuid
-    wine)
+target_link_libraries(inetcomm uuid wine)
 
 add_importlibs(inetcomm
     ole32
@@ -35,4 +33,5 @@ add_importlibs(inetcomm
     kernel32
     ntdll)
 
+add_importlib_target(inetcomm.spec)
 add_cab_target(inetcomm 1)
index 6413da1..2c9171d 100644 (file)
@@ -14,5 +14,6 @@ set_entrypoint(ntdsapi 0)
 target_link_libraries(ntdsapi wine)
 
 add_importlibs(ntdsapi user32 kernel32 ntdll)
+add_importlib_target(ntdsapi.spec)
 add_dependencies(ntdsapi psdk buildno_header)
 add_cab_target(ntdsapi 1)
index df80d3d..77982c0 100644 (file)
@@ -1,6 +1,7 @@
 
-add_definitions(-D__WINESRC__)
-add_definitions(-D_DLL -D__USE_CRTIMP)
+add_definitions(
+    -D__WINESRC__
+    -D_DLL -D__USE_CRTIMP)
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
@@ -13,9 +14,7 @@ list(APPEND SOURCE
 add_library(odbccp32 SHARED ${SOURCE})
 set_entrypoint(odbccp32 0)
 
-target_link_libraries(odbccp32
-    uuid
-    wine)
+target_link_libraries(odbccp32 uuid wine)
 
 add_importlibs(odbccp32
     msvcrt
@@ -23,5 +22,5 @@ add_importlibs(odbccp32
     kernel32
     ntdll)
 
-
+add_importlib_target(odbccp32.spec)
 add_cab_target(odbccp32 1)
index 59dad21..79f02e8 100644 (file)
@@ -6,7 +6,8 @@ set_rc_compiler()
 spec2def(oleacc.dll oleacc.spec)
 
 list(APPEND SOURCE
-    main.c oleacc.rc
+    main.c
+    oleacc.rc
     ${CMAKE_CURRENT_BINARY_DIR}/oleacc.def)
 
 add_library(oleacc SHARED ${SOURCE})
@@ -20,5 +21,5 @@ add_importlibs(oleacc
     kernel32
     ntdll)
 
-
-add_cab_target(oleacc 1)
\ No newline at end of file
+add_importlib_target(oleacc.spec)
+add_cab_target(oleacc 1)
index e09c32c..8e69d49 100644 (file)
@@ -18,5 +18,6 @@ set_entrypoint(pdh 0)
 target_link_libraries(pdh wine)
 
 add_importlibs(pdh kernel32 ntdll)
+add_importlib_target(pdh.spec)
 
 add_cab_target(pdh 1)
\ No newline at end of file
index 024099a..69d3c5f 100644 (file)
@@ -13,6 +13,5 @@ set_module_type(powrprof win32dll)
 target_link_libraries(powrprof wine)
 
 add_importlibs(powrprof advapi32 user32 comctl32 msvcrt kernel32 ntdll)
-
-add_cab_target(powrprof 1)
 add_importlib_target(powrprof.spec)
+add_cab_target(powrprof 1)
index ce9cec3..af19e7e 100644 (file)
@@ -2,6 +2,8 @@
 add_definitions(-D__WINESRC__)
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
+spec2def(winhttp.dll winhttp.spec)
+
 add_library(winhttp SHARED
     cookie.c
     handle.c
@@ -10,16 +12,10 @@ add_library(winhttp SHARED
     request.c
     session.c
     url.c
-    winhttp.def)
-
-if(NOT MSVC)
-    set_source_files_properties(winhttp.def PROPERTIES EXTERNAL_OBJECT TRUE)
-endif()
+    ${CMAKE_CURRENT_BINARY_DIR}/winhttp.def)
 
 set_module_type(winhttp win32dll)
-
 target_link_libraries(winhttp wine)
-
 add_importlibs(winhttp shlwapi wininet ws2_32 msvcrt crypt32 advapi32 kernel32 ntdll)
-
+add_importlib_target(winhttp.spec)
 add_cab_target(winhttp 1)
index 43133f9..93fd1c3 100644 (file)
@@ -17,6 +17,7 @@ target_link_libraries(wlanapi
     ${PSEH_LIB})
 
 add_importlibs(wlanapi rpcrt4 kernel32 ntdll)
-add_dependencies(wlanapi psdk buildno_header)
+add_importlib_target(wlanapi.spec)
 
-add_cab_target(wlanapi 1)
\ No newline at end of file
+add_dependencies(wlanapi psdk buildno_header)
+add_cab_target(wlanapi 1)
index 73eeb25..2f1f712 100644 (file)
@@ -36,5 +36,5 @@ set_module_type(wldap32 win32dll)
 target_link_libraries(wldap32 wine)
 
 add_importlibs(wldap32 user32 msvcrt kernel32 ntdll)
-
+add_importlib_target(wldap32.spec)
 add_cab_target(wldap32 1)
index d28ff83..8dfc706 100644 (file)
@@ -13,9 +13,8 @@ add_library(xmllite SHARED ${SOURCE})
 
 set_module_type(xmllite win32dll)
 
-target_link_libraries(xmllite
-    wine)
+target_link_libraries(xmllite wine)
 
 add_importlibs(xmllite msvcrt kernel32 ntdll)
-
+add_importlib_target(xmllite.spec)
 add_cab_target(xmllite 1)