diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 18:07:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 18:07:22 +0000 |
commit | c04dcc2e7d834218ef2d4194331e383402495ae1 (patch) | |
tree | 7333e38d10d75386e60f336b80c2443c1166031d /xbmc/interfaces/json-rpc/schema/CMakeLists.txt | |
parent | Initial commit. (diff) | |
download | kodi-c04dcc2e7d834218ef2d4194331e383402495ae1.tar.xz kodi-c04dcc2e7d834218ef2d4194331e383402495ae1.zip |
Adding upstream version 2:20.4+dfsg.upstream/2%20.4+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'xbmc/interfaces/json-rpc/schema/CMakeLists.txt')
-rw-r--r-- | xbmc/interfaces/json-rpc/schema/CMakeLists.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/xbmc/interfaces/json-rpc/schema/CMakeLists.txt b/xbmc/interfaces/json-rpc/schema/CMakeLists.txt new file mode 100644 index 0000000..a4d5583 --- /dev/null +++ b/xbmc/interfaces/json-rpc/schema/CMakeLists.txt @@ -0,0 +1,30 @@ +set(JSON_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/version.txt + ${CMAKE_CURRENT_SOURCE_DIR}/license.txt + ${CMAKE_CURRENT_SOURCE_DIR}/methods.json + ${CMAKE_CURRENT_SOURCE_DIR}/types.json + ${CMAKE_CURRENT_SOURCE_DIR}/notifications.json) + +add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/ServiceDescription.h + COMMAND JsonSchemaBuilder::JsonSchemaBuilder ${JSON_SRCS} + WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR} + DEPENDS ${JSON_SRCS} + COMMENT "Generating ServiceDescription.h") + +add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/addons/xbmc.json/addon.xml + COMMAND ${CMAKE_COMMAND} + -DCMAKE_SOURCE_DIR=${CMAKE_SOURCE_DIR} + -DCORE_BINARY_DIR=${CMAKE_BINARY_DIR} + -DCORE_SYSTEM_NAME=${CORE_SYSTEM_NAME} + -P ${CMAKE_CURRENT_SOURCE_DIR}/GenerateAddonXml.cmake + WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} + DEPENDS ${JSON_SRCS} ${CMAKE_SOURCE_DIR}/addons/xbmc.json/addon.xml.in + COMMENT "Generating xbmc.json/addon.xml") + +add_custom_target(generate_json_header ALL + DEPENDS ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/ServiceDescription.h + ${CMAKE_BINARY_DIR}/addons/xbmc.json/addon.xml) +set_target_properties(generate_json_header PROPERTIES FOLDER "Build Utilities") + +if(BOOTSTRAP_IN_TREE) + add_dependencies(generate_json_header JsonSchemaBuilder::JsonSchemaBuilder) +endif() |