Author: tkreuzer
Date: Sun Nov 21 00:55:46 2010
New Revision: 49677
URL:
http://svn.reactos.org/svn/reactos?rev=49677&view=rev
Log:
[CMAKE]
Add EXTERNAL_OBJECT TRUE for generated def files on gcc builds. Fixes empty exports.
Add kernelmodedriver module type for MSVC
Modified:
branches/cmake-bringup/gcc.cmake
branches/cmake-bringup/msc.cmake
Modified: branches/cmake-bringup/gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/gcc.cmake?rev=496…
==============================================================================
--- branches/cmake-bringup/gcc.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/gcc.cmake [iso-8859-1] Sun Nov 21 00:55:46 2010
@@ -161,7 +161,7 @@
COMMAND native-spec2def --dll ${_dllname}
${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file})
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}.def
- PROPERTIES GENERATED TRUE)
+ PROPERTIES GENERATED TRUE EXTERNAL_OBJECT TRUE)
endmacro()
# Optional 3rd parameter: dllname
Modified: branches/cmake-bringup/msc.cmake
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/msc.cmake?rev=496…
==============================================================================
--- branches/cmake-bringup/msc.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/msc.cmake [iso-8859-1] Sun Nov 21 00:55:46 2010
@@ -75,6 +75,13 @@
target_link_libraries(${MODULE} mingw_common mingw_dllmain)
add_linkerflag(${MODULE} "/DLL")
endif()
+ if(${TYPE} MATCHES kernelmodedriver)
+ set_target_properties(${MODULE} PROPERTIES SUFFIX ".sys")
+ set_entrypoint(${MODULE} DriverEntry@8)
+ set_subsystem(${MODULE} native)
+ set_image_base(${MODULE} 0x00010000)
+ add_dependencies(${MODULE} bugcodes)
+ endif()
endmacro()