Author: akhaldi
Date: Fri Dec 10 16:08:35 2010
New Revision: 50005
URL:
http://svn.reactos.org/svn/reactos?rev=50005&view=rev
Log:
[CMAKE]
- Add some importlib targets.
Modified:
branches/cmake-bringup/dll/win32/atl/CMakeLists.txt
branches/cmake-bringup/dll/win32/avifil32/CMakeLists.txt
branches/cmake-bringup/dll/win32/credui/CMakeLists.txt
branches/cmake-bringup/dll/win32/cryptnet/CMakeLists.txt
branches/cmake-bringup/dll/win32/hlink/CMakeLists.txt
branches/cmake-bringup/dll/win32/icmp/CMakeLists.txt
branches/cmake-bringup/dll/win32/inetcomm/CMakeLists.txt
branches/cmake-bringup/dll/win32/ntdsapi/CMakeLists.txt
branches/cmake-bringup/dll/win32/odbccp32/CMakeLists.txt
branches/cmake-bringup/dll/win32/oleacc/CMakeLists.txt
branches/cmake-bringup/dll/win32/pdh/CMakeLists.txt
branches/cmake-bringup/dll/win32/powrprof/CMakeLists.txt
branches/cmake-bringup/dll/win32/winhttp/CMakeLists.txt
branches/cmake-bringup/dll/win32/wlanapi/CMakeLists.txt
branches/cmake-bringup/dll/win32/wldap32/CMakeLists.txt
branches/cmake-bringup/dll/win32/xmllite/CMakeLists.txt
Modified: branches/cmake-bringup/dll/win32/atl/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/atl/CMa…
==============================================================================
--- branches/cmake-bringup/dll/win32/atl/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/atl/CMakeLists.txt [iso-8859-1] Fri Dec 10 16:08:35
2010
@@ -22,9 +22,7 @@
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 @@
kernel32
ntdll)
+add_importlib_target(atl.spec)
+
add_dependencies(atl atl_atliface_header)
add_cab_target(atl 1)
Modified: branches/cmake-bringup/dll/win32/avifil32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/avifil3…
==============================================================================
--- branches/cmake-bringup/dll/win32/avifil32/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/avifil32/CMakeLists.txt [iso-8859-1] Fri Dec 10
16:08:35 2010
@@ -6,6 +6,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
@@ -20,17 +22,11 @@
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 @@
kernel32
ntdll)
+add_importlib_target(avifil32.spec)
add_cab_target(avifil32 1)
Modified: branches/cmake-bringup/dll/win32/credui/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/credui/…
==============================================================================
--- branches/cmake-bringup/dll/win32/credui/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/credui/CMakeLists.txt [iso-8859-1] Fri Dec 10
16:08:35 2010
@@ -18,5 +18,6 @@
target_link_libraries(credui wine)
add_importlibs(credui advapi32 user32 comctl32 msvcrt kernel32 ntdll)
+add_importlib_target(credui.spec)
add_cab_target(credui 1)
Modified: branches/cmake-bringup/dll/win32/cryptnet/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/cryptne…
==============================================================================
--- branches/cmake-bringup/dll/win32/cryptnet/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/cryptnet/CMakeLists.txt [iso-8859-1] Fri Dec 10
16:08:35 2010
@@ -21,5 +21,5 @@
kernel32
ntdll)
-
+add_importlib_target(cryptnet.spec)
add_cab_target(cryptnet 1)
Modified: branches/cmake-bringup/dll/win32/hlink/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/hlink/C…
==============================================================================
--- branches/cmake-bringup/dll/win32/hlink/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/hlink/CMakeLists.txt [iso-8859-1] Fri Dec 10 16:08:35
2010
@@ -28,5 +28,5 @@
kernel32
ntdll)
-
+add_importlib_target(hlink.spec)
add_cab_target(hlink 1)
Modified: branches/cmake-bringup/dll/win32/icmp/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/icmp/CM…
==============================================================================
--- branches/cmake-bringup/dll/win32/icmp/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/icmp/CMakeLists.txt [iso-8859-1] Fri Dec 10 16:08:35
2010
@@ -16,5 +16,5 @@
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)
Modified: branches/cmake-bringup/dll/win32/inetcomm/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/inetcom…
==============================================================================
--- branches/cmake-bringup/dll/win32/inetcomm/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/inetcomm/CMakeLists.txt [iso-8859-1] Fri Dec 10
16:08:35 2010
@@ -21,9 +21,7 @@
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 @@
kernel32
ntdll)
+add_importlib_target(inetcomm.spec)
add_cab_target(inetcomm 1)
Modified: branches/cmake-bringup/dll/win32/ntdsapi/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/ntdsapi…
==============================================================================
--- branches/cmake-bringup/dll/win32/ntdsapi/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/ntdsapi/CMakeLists.txt [iso-8859-1] Fri Dec 10
16:08:35 2010
@@ -14,5 +14,6 @@
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)
Modified: branches/cmake-bringup/dll/win32/odbccp32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/odbccp3…
==============================================================================
--- branches/cmake-bringup/dll/win32/odbccp32/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/odbccp32/CMakeLists.txt [iso-8859-1] Fri Dec 10
16:08:35 2010
@@ -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 @@
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 @@
kernel32
ntdll)
-
+add_importlib_target(odbccp32.spec)
add_cab_target(odbccp32 1)
Modified: branches/cmake-bringup/dll/win32/oleacc/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/oleacc/…
==============================================================================
--- branches/cmake-bringup/dll/win32/oleacc/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/oleacc/CMakeLists.txt [iso-8859-1] Fri Dec 10
16:08:35 2010
@@ -6,7 +6,8 @@
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 @@
kernel32
ntdll)
-
-add_cab_target(oleacc 1)
+add_importlib_target(oleacc.spec)
+add_cab_target(oleacc 1)
Modified: branches/cmake-bringup/dll/win32/pdh/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/pdh/CMa…
==============================================================================
--- branches/cmake-bringup/dll/win32/pdh/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/pdh/CMakeLists.txt [iso-8859-1] Fri Dec 10 16:08:35
2010
@@ -18,5 +18,6 @@
target_link_libraries(pdh wine)
add_importlibs(pdh kernel32 ntdll)
+add_importlib_target(pdh.spec)
add_cab_target(pdh 1)
Modified: branches/cmake-bringup/dll/win32/powrprof/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/powrpro…
==============================================================================
--- branches/cmake-bringup/dll/win32/powrprof/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/powrprof/CMakeLists.txt [iso-8859-1] Fri Dec 10
16:08:35 2010
@@ -13,6 +13,5 @@
target_link_libraries(powrprof wine)
add_importlibs(powrprof advapi32 user32 comctl32 msvcrt kernel32 ntdll)
-
+add_importlib_target(powrprof.spec)
add_cab_target(powrprof 1)
-add_importlib_target(powrprof.spec)
Modified: branches/cmake-bringup/dll/win32/winhttp/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/winhttp…
==============================================================================
--- branches/cmake-bringup/dll/win32/winhttp/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/winhttp/CMakeLists.txt [iso-8859-1] Fri Dec 10
16:08:35 2010
@@ -1,6 +1,8 @@
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
+
+spec2def(winhttp.dll winhttp.spec)
add_library(winhttp SHARED
cookie.c
@@ -10,16 +12,10 @@
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)
Modified: branches/cmake-bringup/dll/win32/wlanapi/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/wlanapi…
==============================================================================
--- branches/cmake-bringup/dll/win32/wlanapi/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/wlanapi/CMakeLists.txt [iso-8859-1] Fri Dec 10
16:08:35 2010
@@ -17,6 +17,7 @@
${PSEH_LIB})
add_importlibs(wlanapi rpcrt4 kernel32 ntdll)
+add_importlib_target(wlanapi.spec)
+
add_dependencies(wlanapi psdk buildno_header)
-
-add_cab_target(wlanapi 1)
+add_cab_target(wlanapi 1)
Modified: branches/cmake-bringup/dll/win32/wldap32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/wldap32…
==============================================================================
--- branches/cmake-bringup/dll/win32/wldap32/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/wldap32/CMakeLists.txt [iso-8859-1] Fri Dec 10
16:08:35 2010
@@ -36,5 +36,5 @@
target_link_libraries(wldap32 wine)
add_importlibs(wldap32 user32 msvcrt kernel32 ntdll)
-
+add_importlib_target(wldap32.spec)
add_cab_target(wldap32 1)
Modified: branches/cmake-bringup/dll/win32/xmllite/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/xmllite…
==============================================================================
--- branches/cmake-bringup/dll/win32/xmllite/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/xmllite/CMakeLists.txt [iso-8859-1] Fri Dec 10
16:08:35 2010
@@ -13,9 +13,8 @@
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)