[ros-diffs] [akhaldi] 49916: [CMAKE] - More work on import lib targets and improving modules.

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Fri Dec 3 11:01:21 UTC 2010


Author: akhaldi
Date: Fri Dec  3 11:01:21 2010
New Revision: 49916

URL: http://svn.reactos.org/svn/reactos?rev=49916&view=rev
Log:
[CMAKE]
- More work on import lib targets and improving modules.

Removed:
    branches/cmake-bringup/dll/win32/user32/user32_stubs.c
Modified:
    branches/cmake-bringup/dll/win32/comctl32/CMakeLists.txt
    branches/cmake-bringup/dll/win32/shdocvw/CMakeLists.txt
    branches/cmake-bringup/dll/win32/shlwapi/CMakeLists.txt
    branches/cmake-bringup/dll/win32/t2embed/CMakeLists.txt
    branches/cmake-bringup/dll/win32/user32/CMakeLists.txt
    branches/cmake-bringup/drivers/directx/dxgthk/CMakeLists.txt
    branches/cmake-bringup/drivers/wdm/audio/drm/drmk/CMakeLists.txt
    branches/cmake-bringup/drivers/wmi/CMakeLists.txt

Modified: branches/cmake-bringup/dll/win32/comctl32/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/comctl32/CMakeLists.txt?rev=49916&r1=49915&r2=49916&view=diff
==============================================================================
--- branches/cmake-bringup/dll/win32/comctl32/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/comctl32/CMakeLists.txt [iso-8859-1] Fri Dec  3 11:01:21 2010
@@ -1,16 +1,19 @@
 
 set_unicode()
 
-add_definitions(-D__WINESRC__)
-add_definitions(-D_WINE)
-add_definitions(-D_COMCTL32_)
+add_definitions(
+    -D__WINESRC__
+    -D_WINE
+    -D_COMCTL32_)
+
 remove_definitions(-D_WIN32_WINNT=0x502)
 add_definitions(-D_WIN32_WINNT=0x600)
+
 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 spec2def(comctl32.dll comctl32.spec)
 
-add_library(comctl32 SHARED
+list(APPEND SOURCE
     animate.c
     comboex.c
     comctl32undoc.c
@@ -51,11 +54,11 @@
     rsrc.rc
     ${CMAKE_CURRENT_BINARY_DIR}/comctl32.def)
 
+add_library(comctl32 SHARED ${SOURCE})
+
 set_module_type(comctl32 win32dll)
 
-target_link_libraries(comctl32
-    uuid
-    wine)
+target_link_libraries(comctl32 uuid wine)
 
 add_importlibs(comctl32
     user32

Modified: branches/cmake-bringup/dll/win32/shdocvw/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/shdocvw/CMakeLists.txt?rev=49916&r1=49915&r2=49916&view=diff
==============================================================================
--- branches/cmake-bringup/dll/win32/shdocvw/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/shdocvw/CMakeLists.txt [iso-8859-1] Fri Dec  3 11:01:21 2010
@@ -8,7 +8,7 @@
 
 spec2def(shdocvw.dll shdocvw.spec)
 
-add_library(shdocvw SHARED
+list(APPEND SOURCE
     classinfo.c
     client.c
     dochost.c
@@ -30,11 +30,11 @@
     shdocvw.rc
     ${CMAKE_CURRENT_BINARY_DIR}/shdocvw.def)
 
+add_library(shdocvw SHARED ${SOURCE})
+
 set_module_type(shdocvw win32dll)
 
-target_link_libraries(shdocvw
-    uuid
-    wine)
+target_link_libraries(shdocvw uuid wine)
 
 add_importlibs(shdocvw
     comctl32
@@ -51,6 +51,6 @@
     kernel32
     ntdll)
 
-add_dependencies(shdocvw shdocvw_v1 shdocvw_def)
+add_dependencies(shdocvw shdocvw_v1)
 add_cab_target(shdocvw 1)
 add_importlib_target(shdocvw.spec)

Modified: branches/cmake-bringup/dll/win32/shlwapi/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/shlwapi/CMakeLists.txt?rev=49916&r1=49915&r2=49916&view=diff
==============================================================================
--- branches/cmake-bringup/dll/win32/shlwapi/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/shlwapi/CMakeLists.txt [iso-8859-1] Fri Dec  3 11:01:21 2010
@@ -7,7 +7,7 @@
 
 spec2def(shlwapi.dll shlwapi.spec)
 
-add_library(shlwapi SHARED
+list(APPEND SOURCE
     assoc.c
     clist.c
     istream.c
@@ -25,11 +25,11 @@
     shlwapi.rc
     ${CMAKE_CURRENT_BINARY_DIR}/shlwapi.def)
 
+add_library(shlwapi SHARED ${SOURCE})
+
 set_module_type(shlwapi win32dll)
 
-target_link_libraries(shlwapi
-    wine
-    uuid)
+target_link_libraries(shlwapi wine uuid)
 
 add_importlibs(shlwapi
     user32
@@ -49,6 +49,6 @@
     msvcrt
     ntdll)
 
+add_cab_target(shlwapi 1)
 
-add_cab_target(shlwapi 1)
 add_importlib_target(shlwapi.spec)

Modified: branches/cmake-bringup/dll/win32/t2embed/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/t2embed/CMakeLists.txt?rev=49916&r1=49915&r2=49916&view=diff
==============================================================================
--- branches/cmake-bringup/dll/win32/t2embed/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/t2embed/CMakeLists.txt [iso-8859-1] Fri Dec  3 11:01:21 2010
@@ -5,7 +5,12 @@
 
 spec2def(t2embed.dll t2embed.spec)
 
-add_library(t2embed SHARED t2embed.c t2embed.rc ${CMAKE_CURRENT_BINARY_DIR}/t2embed.def)
+list(APPEND SOURCE
+    t2embed.c
+    t2embed.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/t2embed.def)
+
+add_library(t2embed SHARED ${SOURCE})
 
 set_module_type(t2embed win32dll)
 
@@ -13,5 +18,4 @@
 
 add_importlibs(t2embed gdi32 user32 advapi32 version msvcrt kernel32 ntdll)
 
-
 add_cab_target(t2embed 1)

Modified: branches/cmake-bringup/dll/win32/user32/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/user32/CMakeLists.txt?rev=49916&r1=49915&r2=49916&view=diff
==============================================================================
--- branches/cmake-bringup/dll/win32/user32/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/user32/CMakeLists.txt [iso-8859-1] Fri Dec  3 11:01:21 2010
@@ -64,12 +64,9 @@
     windows/text.c
     windows/window.c
     windows/winpos.c
-    user32_stubs.c
     user32.rc
     ${CMAKE_CURRENT_BINARY_DIR}/user32.def)
     
-set_source_files_properties(user32.def PROPERTIES EXTERNAL_OBJECT TRUE)
-
 add_library(user32 SHARED
     ${CMAKE_CURRENT_BINARY_DIR}/user32_user32.h.gch
     ${SOURCE})
@@ -85,4 +82,3 @@
 add_importlibs(user32 gdi32 advapi32 imm32 msvcrt kernel32 ntdll)
 add_cab_target(user32 1)
 add_importlib_target(user32.spec)
-

Removed: branches/cmake-bringup/dll/win32/user32/user32_stubs.c
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/user32/user32_stubs.c?rev=49915&view=auto
==============================================================================
--- branches/cmake-bringup/dll/win32/user32/user32_stubs.c [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/user32/user32_stubs.c (removed)
@@ -1,45 +1,0 @@
-
-#include <stdarg.h>
-#include "windef.h"
-#include "winbase.h"
-#include "wine/config.h"
-#include "wine/exception.h"
-
-void __wine_spec_unimplemented_stub( const char *module, const char *function )
-{
-    ULONG_PTR args[2];
-
-    args[0] = (ULONG_PTR)module;
-    args[1] = (ULONG_PTR)function;
-    RaiseException( EXCEPTION_WINE_STUB, EH_NONCONTINUABLE, 2, args );
-}
-
-static const char __wine_spec_file_name[] = "user32.dll";
-
-void __wine_stub_user32_dll_22(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "BuildReasonArray"); }
-void __wine_stub_user32_dll_23(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "CalcMenuBar"); }
-void __wine_stub_user32_dll_96(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "CreateSystemThreads"); }
-void __wine_stub_user32_dll_153(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "DestroyReasons"); }
-void __wine_stub_user32_dll_155(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "DeviceEventWorker"); }
-void __wine_stub_user32_dll_203(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "EnterReaderModeHelper"); }
-void __wine_stub_user32_dll_266(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "GetCursorFrameInfo"); }
-void __wine_stub_user32_dll_339(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "GetReasonTitleFromReasonCode"); }
-void __wine_stub_user32_dll_396(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "InitializeWin32EntryTable"); }
-void __wine_stub_user32_dll_424(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "IsProcess16Bit"); }
-void __wine_stub_user32_dll_426(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "IsSETEnabled"); }
-void __wine_stub_user32_dll_434(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "IsWow64Message"); }
-void __wine_stub_user32_dll_451(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "LoadKeyboardLayoutEx"); }
-void __wine_stub_user32_dll_484(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "MessageBoxTimeoutA"); }
-void __wine_stub_user32_dll_485(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "MessageBoxTimeoutW"); }
-void __wine_stub_user32_dll_511(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "PaintMenuBar"); }
-void __wine_stub_user32_dll_529(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "ReasonCodeNeedsBugID"); }
-void __wine_stub_user32_dll_530(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "ReasonCodeNeedsComment"); }
-void __wine_stub_user32_dll_531(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "RecordShutdownReason"); }
-void __wine_stub_user32_dll_543(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "RegisterMessagePumpHook"); }
-void __wine_stub_user32_dll_586(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "SetConsoleReserveKeys"); }
-void __wine_stub_user32_dll_658(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "SoftModalMessageBox"); }
-void __wine_stub_user32_dll_681(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "TranslateMessageEx"); }
-void __wine_stub_user32_dll_693(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "UnregisterMessagePumpHook"); }
-void __wine_stub_user32_dll_702(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "UserLpkPSMTextOut"); }
-void __wine_stub_user32_dll_703(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "UserLpkTabbedTextOut"); }
-void __wine_stub_user32_dll_718(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "Win32PoolAllocationStats"); }

Modified: branches/cmake-bringup/drivers/directx/dxgthk/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/directx/dxgthk/CMakeLists.txt?rev=49916&r1=49915&r2=49916&view=diff
==============================================================================
--- branches/cmake-bringup/drivers/directx/dxgthk/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/drivers/directx/dxgthk/CMakeLists.txt [iso-8859-1] Fri Dec  3 11:01:21 2010
@@ -1,14 +1,16 @@
 
 spec2def(dxgthk.sys dxgthk.spec)
 
-add_library(dxgthk SHARED
+list(APPEND SOURCE
     main.c
     dxgthk.rc
     ${CMAKE_CURRENT_BINARY_DIR}/dxgthk.def)
 
+add_library(dxgthk SHARED ${SOURCE})
+
 set_module_type(dxgthk kernelmodedriver)
+
 add_importlibs(dxgthk win32k)
-
 add_importlib_target(dxgthk.spec)
 
 add_cab_target(dxgthk 2)

Modified: branches/cmake-bringup/drivers/wdm/audio/drm/drmk/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/wdm/audio/drm/drmk/CMakeLists.txt?rev=49916&r1=49915&r2=49916&view=diff
==============================================================================
--- branches/cmake-bringup/drivers/wdm/audio/drm/drmk/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/drivers/wdm/audio/drm/drmk/CMakeLists.txt [iso-8859-1] Fri Dec  3 11:01:21 2010
@@ -3,12 +3,15 @@
 
 spec2def(drmk.sys drmk.spec)
 
-add_library(drmk SHARED
+list(APPEND SOURCE
     stubs.cpp
     drmk.rc
     ${CMAKE_CURRENT_BINARY_DIR}/drmk.def)
 
+add_library(drmk SHARED ${SOURCE})
+
 set_module_type(drmk kernelmodedriver)
 add_importlibs(drmk ntoskrnl)
+add_importlib_target(drmk.spec)
 
-add_cab_target(drmk 2)
+add_cab_target(drmk 2)

Modified: branches/cmake-bringup/drivers/wmi/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/wmi/CMakeLists.txt?rev=49916&r1=49915&r2=49916&view=diff
==============================================================================
--- branches/cmake-bringup/drivers/wmi/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/drivers/wmi/CMakeLists.txt [iso-8859-1] Fri Dec  3 11:01:21 2010
@@ -1,12 +1,16 @@
 
 spec2def(wmilib.sys wmilib.spec)
 
-add_library(wmilib SHARED
+list(APPEND SOURCE
     wmilib.c
     wmilib.rc
     ${CMAKE_CURRENT_BINARY_DIR}/wmilib.def)
 
+add_library(wmilib SHARED ${SOURCE})
+
 set_module_type(wmilib kernelmodedriver)
+
 add_importlibs(wmilib ntoskrnl)
+add_importlib_target(wmilib.spec)
 
-add_cab_target(wmilib 2)
+add_cab_target(wmilib 2)




More information about the Ros-diffs mailing list