From 2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 30 Aug 2018 00:42:04 +0200 Subject: sync with upstream --- cmake/scripts/common/Macros.cmake | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'cmake/scripts/common/Macros.cmake') 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) foreach(depspec ${ARGN}) set(_required False) split_dependency_specification(${depspec} dep version) - setup_enable_switch() + setup_enable_switch() if(${enable_switch} STREQUAL AUTO) find_package_with_ver(${dep} ${version}) elseif(${${enable_switch}}) @@ -662,7 +662,11 @@ function(core_find_git_rev stamp) string(REPLACE "\"" "" DATE ${DATE}) string(REPLACE "-" "" DATE ${DATE}) else() - string(TIMESTAMP DATE "%Y%m%d" UTC) + if(EXISTS ${CMAKE_SOURCE_DIR}/BUILDDATE) + file(STRINGS ${CMAKE_SOURCE_DIR}/BUILDDATE DATE LIMIT_INPUT 8) + else() + string(TIMESTAMP DATE "%Y%m%d" UTC) + endif() if(EXISTS ${CMAKE_SOURCE_DIR}/VERSION) file(STRINGS ${CMAKE_SOURCE_DIR}/VERSION HASH LIMIT_INPUT 16) else() @@ -687,6 +691,7 @@ endfunction() # APP_NAME_UC - uppercased app name # APP_PACKAGE - Android full package name # COMPANY_NAME - company name +# APP_WEBSITE - site url # APP_VERSION_MAJOR - the app version major # APP_VERSION_MINOR - the app version minor # APP_VERSION_TAG - the app version tag @@ -711,7 +716,7 @@ macro(core_find_versions) core_file_read_filtered(version_list ${CORE_SOURCE_DIR}/version.txt) core_file_read_filtered(json_version ${CORE_SOURCE_DIR}/xbmc/interfaces/json-rpc/schema/version.txt) string(REGEX REPLACE "([^ ;]*) ([^;]*)" "\\1;\\2" version_list "${version_list};${json_version}") - set(version_props + set(version_props ADDON_API APP_NAME APP_PACKAGE @@ -761,6 +766,9 @@ macro(core_find_versions) # unset variables not used anywhere else unset(version_list) unset(APP_APP_NAME) + unset(APP_COMPANY_NAME) + unset(APP_APP_PACKAGE) + unset(APP_JSONRPC_VERSION) unset(BIN_ADDON_PARTS) # bail if we can't parse version.txt -- cgit v1.2.3