diff options
author | Martijn Kaijser <martijn@xbmc.org> | 2017-02-19 18:31:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-19 18:31:22 +0100 |
commit | 3deb56d1bdd33d809b33fbdd6781964476d1bcb2 (patch) | |
tree | 4bd546c600188bbcd0d3c8f8fd457a9e6ccf5eb3 /project | |
parent | d6dafa0e6dcb47456ef52be0b71997d19b922464 (diff) | |
parent | 07483bcaa0b740d1295df233a66630d92f5a6a12 (diff) |
Merge pull request #11447 from Kwiboo/app-name
App-name fixes for Krypton
Diffstat (limited to 'project')
-rw-r--r-- | project/cmake/CMakeLists.txt | 4 | ||||
-rw-r--r-- | project/cmake/scripts/android/PathSetup.cmake | 4 | ||||
-rw-r--r-- | project/cmake/scripts/linux/Install.cmake | 9 | ||||
-rw-r--r-- | project/cmake/scripts/linux/PathSetup.cmake | 4 | ||||
-rw-r--r-- | project/cmake/scripts/osx/PathSetup.cmake | 4 | ||||
-rw-r--r-- | project/cmake/scripts/windows/PathSetup.cmake | 4 |
6 files changed, 17 insertions, 12 deletions
diff --git a/project/cmake/CMakeLists.txt b/project/cmake/CMakeLists.txt index 504e4c046b..cebc751de6 100644 --- a/project/cmake/CMakeLists.txt +++ b/project/cmake/CMakeLists.txt @@ -28,6 +28,7 @@ include(scripts/common/AddOptions.cmake) include(scripts/common/ArchSetup.cmake) include(scripts/common/Macros.cmake) include(scripts/common/ProjectMacros.cmake) +core_find_versions() include(scripts/${CORE_SYSTEM_NAME}/PathSetup.cmake) include(ExternalProject) @@ -75,7 +76,6 @@ else() endif() core_find_git_rev(APP_SCMID FULL) -core_find_versions() # Dynamically loaded libraries built with the project add_custom_target(${APP_NAME_LC}-libraries) @@ -332,7 +332,7 @@ unset(_MAIN_LIBRARIES) if(WIN32) set_target_properties(${APP_NAME_LC} PROPERTIES WIN32_EXECUTABLE ON) set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT ${APP_NAME_LC}) - target_sources(kodi PRIVATE ${CORE_SOURCE_DIR}/xbmc/platform/win32/app.manifest) + target_sources(${APP_NAME_LC} PRIVATE ${CORE_SOURCE_DIR}/xbmc/platform/win32/app.manifest) elseif(CORE_SYSTEM_NAME STREQUAL android) # Nothing else() diff --git a/project/cmake/scripts/android/PathSetup.cmake b/project/cmake/scripts/android/PathSetup.cmake index 69de88318e..1274fcfa76 100644 --- a/project/cmake/scripts/android/PathSetup.cmake +++ b/project/cmake/scripts/android/PathSetup.cmake @@ -29,5 +29,5 @@ list(APPEND final_message "Includedir: ${includedir}") list(APPEND final_message "Datarootdir: ${datarootdir}") list(APPEND final_message "Datadir: ${datadir}") -set(PATH_DEFINES -DBIN_INSTALL_PATH=\"${libdir}/kodi\" - -DINSTALL_PATH=\"${datarootdir}/kodi\") +set(PATH_DEFINES -DBIN_INSTALL_PATH=\"${libdir}/${APP_NAME_LC}\" + -DINSTALL_PATH=\"${datarootdir}/${APP_NAME_LC}\") diff --git a/project/cmake/scripts/linux/Install.cmake b/project/cmake/scripts/linux/Install.cmake index 4372a750bb..53f7e5ccad 100644 --- a/project/cmake/scripts/linux/Install.cmake +++ b/project/cmake/scripts/linux/Install.cmake @@ -41,6 +41,10 @@ configure_file(${PROJECT_SOURCE_DIR}/KodiConfig.cmake.in # Configure xsession entry configure_file(${CORE_SOURCE_DIR}/tools/Linux/kodi-xsession.desktop.in + ${CORE_BUILD_DIR}/${APP_NAME_LC}-xsession.desktop @ONLY) + +# Configure desktop entry +configure_file(${CORE_SOURCE_DIR}/tools/Linux/kodi.desktop.in ${CORE_BUILD_DIR}/${APP_NAME_LC}.desktop @ONLY) # Install app @@ -78,12 +82,13 @@ foreach(file ${install_data}) endforeach() # Install xsession entry -install(FILES ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/${APP_NAME_LC}.desktop +install(FILES ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/${APP_NAME_LC}-xsession.desktop + RENAME ${APP_NAME_LC}.desktop DESTINATION ${datarootdir}/xsessions COMPONENT kodi) # Install desktop entry -install(FILES ${CORE_SOURCE_DIR}/tools/Linux/kodi.desktop +install(FILES ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/${APP_NAME_LC}.desktop DESTINATION ${datarootdir}/applications COMPONENT kodi) diff --git a/project/cmake/scripts/linux/PathSetup.cmake b/project/cmake/scripts/linux/PathSetup.cmake index 5532c2d962..f9f78ba622 100644 --- a/project/cmake/scripts/linux/PathSetup.cmake +++ b/project/cmake/scripts/linux/PathSetup.cmake @@ -36,5 +36,5 @@ list(APPEND final_message "Datarootdir: ${datarootdir}") list(APPEND final_message "Datadir: ${datadir}") list(APPEND final_message "Docdir: ${docdir}") -set(PATH_DEFINES -DBIN_INSTALL_PATH=\"${libdir}/kodi\" - -DINSTALL_PATH=\"${datarootdir}/kodi\") +set(PATH_DEFINES -DBIN_INSTALL_PATH=\"${libdir}/${APP_NAME_LC}\" + -DINSTALL_PATH=\"${datarootdir}/${APP_NAME_LC}\") diff --git a/project/cmake/scripts/osx/PathSetup.cmake b/project/cmake/scripts/osx/PathSetup.cmake index 071dfd45ea..ddb417697e 100644 --- a/project/cmake/scripts/osx/PathSetup.cmake +++ b/project/cmake/scripts/osx/PathSetup.cmake @@ -28,5 +28,5 @@ list(APPEND final_message "Includedir: ${includedir}") list(APPEND final_message "Datarootdir: ${datarootdir}") list(APPEND final_message "Datadir: ${datadir}") -set(PATH_DEFINES -DBIN_INSTALL_PATH=\"${libdir}/kodi\" - -DINSTALL_PATH=\"${datarootdir}/kodi\") +set(PATH_DEFINES -DBIN_INSTALL_PATH=\"${libdir}/${APP_NAME_LC}\" + -DINSTALL_PATH=\"${datarootdir}/${APP_NAME_LC}\") diff --git a/project/cmake/scripts/windows/PathSetup.cmake b/project/cmake/scripts/windows/PathSetup.cmake index 8550616cd7..f6defdeae7 100644 --- a/project/cmake/scripts/windows/PathSetup.cmake +++ b/project/cmake/scripts/windows/PathSetup.cmake @@ -30,5 +30,5 @@ list(APPEND final_message "Includedir: ${includedir}") list(APPEND final_message "Datarootdir: ${datarootdir}") list(APPEND final_message "Datadir: ${datadir}") -set(PATH_DEFINES -DBIN_INSTALL_PATH=\"${libdir}/kodi\" - -DINSTALL_PATH=\"${datarootdir}/kodi\") +set(PATH_DEFINES -DBIN_INSTALL_PATH=\"${libdir}/${APP_NAME_LC}\" + -DINSTALL_PATH=\"${datarootdir}/${APP_NAME_LC}\") |