mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
0fb3c1e91e
[PCIX] Make the resource section not discardable. These drivers need to be able to access their message resources at any time.
13 lines
436 B
CMake
13 lines
436 B
CMake
|
|
add_library(pciide MODULE pciide.c pciide.rc)
|
|
set_module_type(pciide kernelmodedriver)
|
|
if(MSVC)
|
|
target_link_options(pciide PRIVATE /SECTION:.rsrc,!D)
|
|
else()
|
|
add_custom_command(
|
|
TARGET pciide POST_BUILD
|
|
COMMAND native-pefixup --section:.rsrc,!D $<TARGET_FILE:pciide>
|
|
VERBATIM)
|
|
endif()
|
|
add_importlibs(pciide pciidex ntoskrnl)
|
|
add_cd_file(TARGET pciide DESTINATION reactos/system32/drivers NO_CAB FOR all)
|