aboutsummaryrefslogtreecommitdiff
path: root/cmake/scripts
diff options
context:
space:
mode:
authorMiguel Borges de Freitas <92enen@gmail.com>2023-04-22 23:57:58 +0100
committerMiguel Borges de Freitas <92enen@gmail.com>2023-04-22 23:58:28 +0100
commit52cb3dd72a7cefcb3019388caaa8a2735c87abf1 (patch)
tree4a308a06a2d718f023e9b538bc16886aa119597c /cmake/scripts
parent63cb92e1f2fc75f4d6d0fc951655ffda05918d01 (diff)
[Darwin] Fix and make Credits rebrandable
Diffstat (limited to 'cmake/scripts')
-rw-r--r--cmake/scripts/common/Macros.cmake12
-rw-r--r--cmake/scripts/darwin_embedded/Install.cmake3
-rw-r--r--cmake/scripts/osx/Install.cmake3
3 files changed, 18 insertions, 0 deletions
diff --git a/cmake/scripts/common/Macros.cmake b/cmake/scripts/common/Macros.cmake
index 49198a1c43..b6863960b7 100644
--- a/cmake/scripts/common/Macros.cmake
+++ b/cmake/scripts/common/Macros.cmake
@@ -646,6 +646,10 @@ endfunction()
# APP_PACKAGE - Android full package name
# COMPANY_NAME - company name
# APP_WEBSITE - site url
+# ABOUT_WEBSITE - url for the about page of the app
+# DEV_NAME - name of the developer of the app
+# DOCS_WEBSITE - url for the documentation of the app
+# FORUM_WEBSITE - url for the forum/discussion board of the app
# APP_VERSION_MAJOR - the app version major
# APP_VERSION_MINOR - the app version minor
# APP_VERSION_TAG - the app version tag
@@ -676,10 +680,14 @@ macro(core_find_versions)
set(version_props
ADDON_API
ADDON_REPOS
+ ABOUT_WEBSITE
APP_NAME
APP_PACKAGE
COMPANY_NAME
COPYRIGHT_YEARS
+ DEV_NAME
+ DOCS_WEBSITE
+ FORUM_WEBSITE
JSONRPC_VERSION
PACKAGE_DESCRIPTION
PACKAGE_IDENTITY
@@ -699,6 +707,10 @@ macro(core_find_versions)
string(TOLOWER ${APP_APP_NAME} APP_NAME_LC)
string(TOUPPER ${APP_APP_NAME} APP_NAME_UC)
set(COMPANY_NAME ${APP_COMPANY_NAME})
+ set(ABOUT_WEBSITE ${APP_ABOUT_WEBSITE})
+ set(DEV_NAME ${APP_DEV_NAME})
+ set(DOCS_WEBSITE ${APP_DOCS_WEBSITE})
+ set(FORUM_WEBSITE ${APP_FORUM_WEBSITE})
set(APP_VERSION ${APP_VERSION_MAJOR}.${APP_VERSION_MINOR})
# Let Flatpak builders etc override APP_PACKAGE
# NOTE: We cannot declare an option() in top-level CMakeLists.txt
diff --git a/cmake/scripts/darwin_embedded/Install.cmake b/cmake/scripts/darwin_embedded/Install.cmake
index 02464eef9f..34589cf544 100644
--- a/cmake/scripts/darwin_embedded/Install.cmake
+++ b/cmake/scripts/darwin_embedded/Install.cmake
@@ -123,6 +123,9 @@ set(DEPENDS_ROOT_FOR_XCODE ${NATIVEPREFIX}/..)
configure_file(${CMAKE_SOURCE_DIR}/tools/darwin/packaging/darwin_embedded/mkdeb-darwin_embedded.sh.in
${CMAKE_BINARY_DIR}/tools/darwin/packaging/darwin_embedded/mkdeb-darwin_embedded.sh @ONLY)
+configure_file(${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/Credits.html.in
+ ${CMAKE_BINARY_DIR}/xbmc/platform/darwin/Credits.html @ONLY)
+
add_custom_target(deb
COMMAND sh ./mkdeb-darwin_embedded.sh ${CORE_BUILD_CONFIG}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/tools/darwin/packaging/darwin_embedded)
diff --git a/cmake/scripts/osx/Install.cmake b/cmake/scripts/osx/Install.cmake
index 65bac0705c..9e75f8c2d9 100644
--- a/cmake/scripts/osx/Install.cmake
+++ b/cmake/scripts/osx/Install.cmake
@@ -45,6 +45,9 @@ add_dependencies(bundle ${APP_NAME_LC})
configure_file(${CMAKE_SOURCE_DIR}/tools/darwin/packaging/osx/mkdmg-osx.sh.in
${CMAKE_BINARY_DIR}/tools/darwin/packaging/osx/mkdmg-osx.sh @ONLY)
+configure_file(${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/Credits.html.in
+ ${CMAKE_BINARY_DIR}/xbmc/platform/darwin/Credits.html @ONLY)
+
string(TOLOWER ${CORE_BUILD_CONFIG} CORE_BUILD_CONFIG_LOWERCASED)
if(${CORE_BUILD_CONFIG_LOWERCASED} STREQUAL "release")
set(ALLOW_DEBUGGER "false")