summaryrefslogtreecommitdiffstats
path: root/cmake/scripts/common/Macros.cmake
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2018-08-30 00:42:04 +0200
committermanuel <manuel@mausz.at>2018-08-30 00:42:04 +0200
commit2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a (patch)
treecc9e1f8ea69eebca8416677b2470a5b3f11a850e /cmake/scripts/common/Macros.cmake
parentb3d195f0188758a14875a5a2f270e4fd190a679f (diff)
downloadkodi-pvr-build-2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a.tar.gz
kodi-pvr-build-2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a.tar.bz2
kodi-pvr-build-2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a.zip
sync with upstream
Diffstat (limited to 'cmake/scripts/common/Macros.cmake')
-rw-r--r--cmake/scripts/common/Macros.cmake14
1 files changed, 11 insertions, 3 deletions
diff --git a/cmake/scripts/common/Macros.cmake b/cmake/scripts/common/Macros.cmake
index c21069d..0d89dd3 100644
--- a/cmake/scripts/common/Macros.cmake
+++ b/cmake/scripts/common/Macros.cmake
@@ -468,7 +468,7 @@ function(core_optional_dyload_dep)
468 foreach(depspec ${ARGN}) 468 foreach(depspec ${ARGN})
469 set(_required False) 469 set(_required False)
470 split_dependency_specification(${depspec} dep version) 470 split_dependency_specification(${depspec} dep version)
471 setup_enable_switch() 471 setup_enable_switch()
472 if(${enable_switch} STREQUAL AUTO) 472 if(${enable_switch} STREQUAL AUTO)
473 find_package_with_ver(${dep} ${version}) 473 find_package_with_ver(${dep} ${version})
474 elseif(${${enable_switch}}) 474 elseif(${${enable_switch}})
@@ -662,7 +662,11 @@ function(core_find_git_rev stamp)
662 string(REPLACE "\"" "" DATE ${DATE}) 662 string(REPLACE "\"" "" DATE ${DATE})
663 string(REPLACE "-" "" DATE ${DATE}) 663 string(REPLACE "-" "" DATE ${DATE})
664 else() 664 else()
665 string(TIMESTAMP DATE "%Y%m%d" UTC) 665 if(EXISTS ${CMAKE_SOURCE_DIR}/BUILDDATE)
666 file(STRINGS ${CMAKE_SOURCE_DIR}/BUILDDATE DATE LIMIT_INPUT 8)
667 else()
668 string(TIMESTAMP DATE "%Y%m%d" UTC)
669 endif()
666 if(EXISTS ${CMAKE_SOURCE_DIR}/VERSION) 670 if(EXISTS ${CMAKE_SOURCE_DIR}/VERSION)
667 file(STRINGS ${CMAKE_SOURCE_DIR}/VERSION HASH LIMIT_INPUT 16) 671 file(STRINGS ${CMAKE_SOURCE_DIR}/VERSION HASH LIMIT_INPUT 16)
668 else() 672 else()
@@ -687,6 +691,7 @@ endfunction()
687# APP_NAME_UC - uppercased app name 691# APP_NAME_UC - uppercased app name
688# APP_PACKAGE - Android full package name 692# APP_PACKAGE - Android full package name
689# COMPANY_NAME - company name 693# COMPANY_NAME - company name
694# APP_WEBSITE - site url
690# APP_VERSION_MAJOR - the app version major 695# APP_VERSION_MAJOR - the app version major
691# APP_VERSION_MINOR - the app version minor 696# APP_VERSION_MINOR - the app version minor
692# APP_VERSION_TAG - the app version tag 697# APP_VERSION_TAG - the app version tag
@@ -711,7 +716,7 @@ macro(core_find_versions)
711 core_file_read_filtered(version_list ${CORE_SOURCE_DIR}/version.txt) 716 core_file_read_filtered(version_list ${CORE_SOURCE_DIR}/version.txt)
712 core_file_read_filtered(json_version ${CORE_SOURCE_DIR}/xbmc/interfaces/json-rpc/schema/version.txt) 717 core_file_read_filtered(json_version ${CORE_SOURCE_DIR}/xbmc/interfaces/json-rpc/schema/version.txt)
713 string(REGEX REPLACE "([^ ;]*) ([^;]*)" "\\1;\\2" version_list "${version_list};${json_version}") 718 string(REGEX REPLACE "([^ ;]*) ([^;]*)" "\\1;\\2" version_list "${version_list};${json_version}")
714 set(version_props 719 set(version_props
715 ADDON_API 720 ADDON_API
716 APP_NAME 721 APP_NAME
717 APP_PACKAGE 722 APP_PACKAGE
@@ -761,6 +766,9 @@ macro(core_find_versions)
761 # unset variables not used anywhere else 766 # unset variables not used anywhere else
762 unset(version_list) 767 unset(version_list)
763 unset(APP_APP_NAME) 768 unset(APP_APP_NAME)
769 unset(APP_COMPANY_NAME)
770 unset(APP_APP_PACKAGE)
771 unset(APP_JSONRPC_VERSION)
764 unset(BIN_ADDON_PARTS) 772 unset(BIN_ADDON_PARTS)
765 773
766 # bail if we can't parse version.txt 774 # bail if we can't parse version.txt