mirror of
https://github.com/reactos/reactos.git
synced 2025-01-10 08:10:18 +00:00
[CMAKE]
Add EXTERNAL_OBJECT TRUE for generated def files on gcc builds. Fixes empty exports. Add kernelmodedriver module type for MSVC svn path=/branches/cmake-bringup/; revision=49677
This commit is contained in:
parent
8ee00e2746
commit
f12dd9240e
2 changed files with 8 additions and 1 deletions
|
@ -161,7 +161,7 @@ macro(spec2def _dllname _spec_file)
|
|||
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
|
||||
|
|
|
@ -75,6 +75,13 @@ macro(set_module_type MODULE TYPE)
|
|||
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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue