mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:12:58 +00:00
[MEDIA][CMAKE] Create add_driver_inf cmake function
*.inf files for drivers can now be placed along with the driver code
This commit is contained in:
parent
d8c6ef5ef9
commit
019f21ee1d
31 changed files with 34 additions and 27 deletions
|
@ -298,7 +298,7 @@ macro(dir_to_num dir var)
|
|||
elseif(${dir} STREQUAL reactos/3rdParty)
|
||||
set(${var} 63)
|
||||
elseif(${dir} STREQUAL reactos/Resources/Themes/Lunar)
|
||||
set(${var} 64)
|
||||
set(${var} 64)
|
||||
elseif(${dir} STREQUAL reactos/Resources/Themes/Mizu)
|
||||
set(${var} 65)
|
||||
elseif(${dir} STREQUAL reactos/system32/spool/prtprocs/x64)
|
||||
|
@ -908,6 +908,21 @@ function(create_registry_hives)
|
|||
|
||||
endfunction()
|
||||
|
||||
function(add_driver_inf _module)
|
||||
# Add to the inf files list
|
||||
foreach(_file ${ARGN})
|
||||
set(_converted_item ${CMAKE_CURRENT_BINARY_DIR}/${_file})
|
||||
set(_source_item ${CMAKE_CURRENT_SOURCE_DIR}/${_file})
|
||||
add_custom_command(OUTPUT "${_converted_item}"
|
||||
COMMAND native-utf16le "${_source_item}" "${_converted_item}"
|
||||
DEPENDS native-utf16le "${_source_item}")
|
||||
add_cd_file(FILE ${_converted_item} DESTINATION reactos/inf FOR all)
|
||||
list(APPEND _converted_inf_files ${_converted_item})
|
||||
endforeach()
|
||||
|
||||
add_custom_target(${_module}_inf_files DEPENDS ${_converted_inf_files})
|
||||
endfunction()
|
||||
|
||||
if(KDBG)
|
||||
set(ROSSYM_LIB "rossym")
|
||||
else()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue