Author: akhaldi
Date: Thu Feb 17 22:12:27 2011
New Revision: 50772
URL:
http://svn.reactos.org/svn/reactos?rev=50772&view=rev
Log:
[CMAKE]
- A better, albeit temporary fix for 50714 and 50716.
Modified:
branches/cmake-bringup/drivers/wdm/audio/drm/drmk/CMakeLists.txt
branches/cmake-bringup/drivers/wmi/CMakeLists.txt
Modified: branches/cmake-bringup/drivers/wdm/audio/drm/drmk/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/wdm/audio…
==============================================================================
--- 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] Thu Feb
17 22:12:27 2011
@@ -10,8 +10,19 @@
add_library(drmk SHARED ${SOURCE})
+if(NOT MSVC)
+ set_module_type(drmk kernelmodedriver)
+else()
+ set_target_properties(drmk PROPERTIES SUFFIX ".sys")
+ set_subsystem(drmk native)
+ set_image_base(drmk 0x00010000)
+ add_linkerflag(drmk "/DRIVER")
+ add_dependencies(drmk bugcodes)
+ target_link_libraries(drmk msvcsup)
+ add_dependencies(drmk psdk buildno_header)
+endif()
+
set_entrypoint(drmk 0)
-set_target_properties(drmk PROPERTIES SUFFIX ".sys")
add_importlibs(drmk ntoskrnl)
add_importlib_target(drmk.spec)
Modified: branches/cmake-bringup/drivers/wmi/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/wmi/CMake…
==============================================================================
--- branches/cmake-bringup/drivers/wmi/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/drivers/wmi/CMakeLists.txt [iso-8859-1] Thu Feb 17 22:12:27
2011
@@ -8,6 +8,18 @@
add_library(wmilib SHARED ${SOURCE})
+if(NOT MSVC)
+ set_module_type(wmilib kernelmodedriver)
+else()
+ set_target_properties(wmilib PROPERTIES SUFFIX ".sys")
+ set_subsystem(wmilib native)
+ set_image_base(wmilib 0x00010000)
+ add_linkerflag(wmilib "/DRIVER")
+ add_dependencies(wmilib bugcodes)
+ target_link_libraries(wmilib msvcsup)
+ add_dependencies(wmilib psdk buildno_header)
+endif()
+
set_entrypoint(wmilib 0)
set_target_properties(wmilib PROPERTIES SUFFIX ".sys")
add_importlibs(wmilib ntoskrnl)