2009-10-09 16:24:22 +00:00
|
|
|
#
|
2023-12-01 18:45:48 +00:00
|
|
|
function(make_plugin_register _outputfile _registertype _api_level _blurb)
|
2021-01-06 19:43:37 +00:00
|
|
|
file(RELATIVE_PATH output "${CMAKE_BINARY_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/${_outputfile}")
|
|
|
|
add_custom_command(
|
2012-09-25 01:20:51 +00:00
|
|
|
OUTPUT
|
2009-10-09 16:24:22 +00:00
|
|
|
${_outputfile}
|
2023-05-27 11:16:29 +00:00
|
|
|
COMMAND ${Python3_EXECUTABLE}
|
2023-05-26 13:16:06 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/tools/make-plugin-reg.py
|
2009-10-09 16:24:22 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
2017-11-20 19:58:46 +00:00
|
|
|
${_registertype}
|
2023-12-01 01:19:34 +00:00
|
|
|
${_blurb}
|
2023-12-01 18:45:48 +00:00
|
|
|
${_api_level}
|
2017-11-20 19:58:46 +00:00
|
|
|
${ARGN}
|
2021-01-06 19:43:37 +00:00
|
|
|
COMMENT "Generating ${output}"
|
2009-10-09 16:24:22 +00:00
|
|
|
DEPENDS
|
2017-11-20 19:58:46 +00:00
|
|
|
${ARGN}
|
2023-05-26 13:16:06 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/tools/make-plugin-reg.py
|
2023-12-01 01:19:34 +00:00
|
|
|
VERBATIM
|
2009-10-09 16:24:22 +00:00
|
|
|
)
|
2021-01-06 19:43:37 +00:00
|
|
|
endfunction()
|
2023-12-01 18:45:48 +00:00
|
|
|
|
|
|
|
macro(register_plugin_files _outputfile _registertype _blurb)
|
|
|
|
make_plugin_register(${_outputfile} ${_registertype} 0 ${_blurb} ${ARGN})
|
|
|
|
endmacro()
|
|
|
|
|
|
|
|
macro(register_codec_files _outputfile _api_level _blurb)
|
|
|
|
make_plugin_register(${_outputfile} plugin_codec ${_api_level} ${_blurb} ${ARGN})
|
|
|
|
endmacro()
|