From 8cdf8dec703d882b46ca50a769fabb95ffc48e2c Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 24 Nov 2016 21:27:41 +0100 Subject: sync with upstream --- project/cmake/addons/depends/CMakeLists.txt | 15 +++++++------- project/cmake/addons/depends/README | 6 +++--- .../depends/common/kodi-platform/kodi-platform.txt | 2 +- .../addons/depends/common/tinyxml/CMakeLists.txt | 3 +-- .../cmake/addons/depends/windows/CMakeLists.txt | 23 +++++++++------------ .../cmake/addons/depends/windows/Find7Zip.cmake | 7 ------- project/cmake/addons/depends/windows/Install.cmake | 24 ++++++++++++++++++++++ .../cmake/addons/depends/windows/extract-7z.cmake | 10 --------- .../addons/depends/windows/extract-direct.cmake | 2 -- project/cmake/addons/depends/windows/install.cmake | 24 ---------------------- 10 files changed, 46 insertions(+), 70 deletions(-) delete mode 100644 project/cmake/addons/depends/windows/Find7Zip.cmake create mode 100644 project/cmake/addons/depends/windows/Install.cmake delete mode 100644 project/cmake/addons/depends/windows/extract-7z.cmake delete mode 100644 project/cmake/addons/depends/windows/extract-direct.cmake delete mode 100644 project/cmake/addons/depends/windows/install.cmake (limited to 'project/cmake/addons/depends') diff --git a/project/cmake/addons/depends/CMakeLists.txt b/project/cmake/addons/depends/CMakeLists.txt index 760acf4..622701d 100644 --- a/project/cmake/addons/depends/CMakeLists.txt +++ b/project/cmake/addons/depends/CMakeLists.txt @@ -1,7 +1,6 @@ +cmake_minimum_required(VERSION 3.1) project(kodi-addons-depends) -cmake_minimum_required(VERSION 2.8) - list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}) if(NOT CMAKE_BUILD_TYPE) @@ -14,13 +13,13 @@ endif() include(ExternalProject) -if(NOT DEPENDS_PATH) - set(DEPENDS_PATH ${PROJECT_SOURCE_DIR}/../build/depends) +if(NOT ADDON_DEPENDS_PATH) + set(ADDON_DEPENDS_PATH ${PROJECT_SOURCE_DIR}/../build/depends) else() - file(TO_CMAKE_PATH "${DEPENDS_PATH}" DEPENDS_PATH) + file(TO_CMAKE_PATH "${ADDON_DEPENDS_PATH}" ADDON_DEPENDS_PATH) endif() -get_filename_component(DEPENDS_PATH "${DEPENDS_PATH}" ABSOLUTE) -list(APPEND CMAKE_PREFIX_PATH ${DEPENDS_PATH}) +get_filename_component(ADDON_DEPENDS_PATH "${ADDON_DEPENDS_PATH}" ABSOLUTE) +list(APPEND CMAKE_PREFIX_PATH ${ADDON_DEPENDS_PATH}) if(NOT BUILD_DIR) set(BUILD_DIR "${CMAKE_BINARY_DIR}/build") @@ -30,7 +29,7 @@ endif() get_filename_component(BUILD_DIR "${BUILD_DIR}" ABSOLUTE) ## use add_addon_depends to handle the cmake based dependencies -include(${APP_ROOT}/project/cmake/scripts/common/handle-depends.cmake) +include(${CORE_SOURCE_DIR}/project/cmake/scripts/common/HandleDepends.cmake) add_addon_depends(depends "${PROJECT_SOURCE_DIR}") ## if there's a platform-specific sub-directory containing a CMakeLists.txt, add it to the build as well diff --git a/project/cmake/addons/depends/README b/project/cmake/addons/depends/README index 66e924a..584a167 100644 --- a/project/cmake/addons/depends/README +++ b/project/cmake/addons/depends/README @@ -34,9 +34,9 @@ specific paths: builds. * CORE_SYSTEM_NAME is the name of the platform (e.g. "linux" or "android") in lower-case (defaults to lowercase(CMAKE_SYSTEM_NAME)). - * APP_ROOT points to the root directory of the project (default is the + * CORE_SOURCE_DIR points to the root directory of the project (default is the absolute representation of ../../.. starting from this directory). - * DEPENDS_PATH points to the directory where the built dependencies + * ADDON_DEPENDS_PATH points to the directory where the built dependencies (their include and library file) will be installed to. * ARCH_DEFINES specifies the platform-specific C/C++ preprocessor defines (defaults to empty). @@ -56,6 +56,6 @@ In case of additional options the call might look like this cmake [-G ] \ -DCMAKE_BUILD_TYPE=Release \ - -DAPP_ROOT="" \ + -DCORE_SOURCE_DIR="" \ -DARCH_DEFINES="-DTARGET_LINUX" \ -DCMAKE_INSTALL_PREFIX="