summaryrefslogtreecommitdiffstats
path: root/cmake/scripts/common/Macros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/scripts/common/Macros.cmake')
-rw-r--r--cmake/scripts/common/Macros.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmake/scripts/common/Macros.cmake b/cmake/scripts/common/Macros.cmake
index f7327e3..d896651 100644
--- a/cmake/scripts/common/Macros.cmake
+++ b/cmake/scripts/common/Macros.cmake
@@ -626,6 +626,9 @@ endfunction()
626# APP_VERSION_TAG_LC - lowercased app version tag 626# APP_VERSION_TAG_LC - lowercased app version tag
627# APP_VERSION - the app version (${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}-${APP_VERSION_TAG}) 627# APP_VERSION - the app version (${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}-${APP_VERSION_TAG})
628# APP_ADDON_API - the addon API version in the form of 16.9.702 628# APP_ADDON_API - the addon API version in the form of 16.9.702
629# ADDON_REPOS - official addon repositories and their origin path delimited by pipe
630# - e.g. repository.xbmc.org|https://mirrors.kodi.tv -
631# (multiple repo/path-sets are delimited by comma)
629# FILE_VERSION - file version in the form of 16,9,702,0 - Windows only 632# FILE_VERSION - file version in the form of 16,9,702,0 - Windows only
630# JSONRPC_VERSION - the json api version in the form of 8.3.0 633# JSONRPC_VERSION - the json api version in the form of 8.3.0
631# 634#
@@ -646,6 +649,7 @@ macro(core_find_versions)
646 string(REGEX REPLACE "([^ ;]*) ([^;]*)" "\\1;\\2" version_list "${version_list};${json_version}") 649 string(REGEX REPLACE "([^ ;]*) ([^;]*)" "\\1;\\2" version_list "${version_list};${json_version}")
647 set(version_props 650 set(version_props
648 ADDON_API 651 ADDON_API
652 ADDON_REPOS
649 APP_NAME 653 APP_NAME
650 APP_PACKAGE 654 APP_PACKAGE
651 COMPANY_NAME 655 COMPANY_NAME
@@ -676,12 +680,13 @@ macro(core_find_versions)
676 string(TOLOWER ${APP_VERSION_TAG} APP_VERSION_TAG_LC) 680 string(TOLOWER ${APP_VERSION_TAG} APP_VERSION_TAG_LC)
677 endif() 681 endif()
678 string(REPLACE "." "," FILE_VERSION ${APP_ADDON_API}.0) 682 string(REPLACE "." "," FILE_VERSION ${APP_ADDON_API}.0)
683 set(ADDON_REPOS ${APP_ADDON_REPOS})
679 set(JSONRPC_VERSION ${APP_JSONRPC_VERSION}) 684 set(JSONRPC_VERSION ${APP_JSONRPC_VERSION})
680 685
681 # Set defines used in addon.xml.in and read from versions.h to set add-on 686 # Set defines used in addon.xml.in and read from versions.h to set add-on
682 # version parts automatically 687 # version parts automatically
683 # This part is nearly identical to "AddonHelpers.cmake", except location of versions.h 688 # This part is nearly identical to "AddonHelpers.cmake", except location of versions.h
684 file(STRINGS ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/versions.h BIN_ADDON_PARTS) 689 file(STRINGS ${CORE_SOURCE_DIR}/xbmc/addons/kodi-dev-kit/include/kodi/versions.h BIN_ADDON_PARTS)
685 foreach(loop_var ${BIN_ADDON_PARTS}) 690 foreach(loop_var ${BIN_ADDON_PARTS})
686 string(FIND "${loop_var}" "#define ADDON_" matchres) 691 string(FIND "${loop_var}" "#define ADDON_" matchres)
687 if("${matchres}" EQUAL 0) 692 if("${matchres}" EQUAL 0)
@@ -748,5 +753,5 @@ macro(find_addon_xml_in_files)
748 endforeach() 753 endforeach()
749 754
750 # Append also versions.h to depends 755 # Append also versions.h to depends
751 list(APPEND ADDON_XML_DEPENDS "${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/versions.h") 756 list(APPEND ADDON_XML_DEPENDS "${CORE_SOURCE_DIR}/xbmc/addons/kodi-dev-kit/include/kodi/versions.h")
752endmacro() 757endmacro()