diff options
author | Arne Morten Kvarving <spiff@kodi.tv> | 2019-05-23 12:36:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-23 12:36:20 +0200 |
commit | 15349b09d436007c0e4401fa17108abaf98cd37f (patch) | |
tree | a1c00383a1a2206059b9fb2e7537d65d15a4df51 /cmake | |
parent | 9e07f20ad186fe119d537eb8886788953d7c35a1 (diff) | |
parent | fb8318e87396c5ad5360d46e21bacf954410f6d5 (diff) |
Merge pull request #16009 from AlwinEsch/add-addon-depend-special-path
[cmake][addons] add THIRD_PARTY_PATH definition
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/addons/CMakeLists.txt | 11 | ||||
-rw-r--r-- | cmake/scripts/common/HandleDepends.cmake | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/cmake/addons/CMakeLists.txt b/cmake/addons/CMakeLists.txt index 8f0420f945..a2a962f879 100644 --- a/cmake/addons/CMakeLists.txt +++ b/cmake/addons/CMakeLists.txt @@ -123,6 +123,17 @@ if(CMAKE_TOOLCHAIN_FILE) message(STATUS ${BUILD_ARGS}) endif() +# used for addons where need special folders to store there content (if +# not set the addon define it byself). +# e.g. Google Chromium addon where his git bring: +# - "unable to create file" ... "Filename too long" +# see also WARNING by Windows on: https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart +if(THIRD_PARTY_PATH) + message(STATUS "Third party lib path specified") + message(STATUS ${THIRD_PARTY_PATH}) + list(APPEND BUILD_ARGS -DTHIRD_PARTY_PATH=${THIRD_PARTY_PATH}) +endif() + if(NOT ADDONS_TO_BUILD) set(ADDONS_TO_BUILD "all") else() diff --git a/cmake/scripts/common/HandleDepends.cmake b/cmake/scripts/common/HandleDepends.cmake index 40e382b94c..f4fe6e2fe8 100644 --- a/cmake/scripts/common/HandleDepends.cmake +++ b/cmake/scripts/common/HandleDepends.cmake @@ -88,6 +88,17 @@ function(add_addon_depends addon searchpath) message(${BUILD_ARGS}) endif() + # used for addons where need special folders to store there content (if + # not set the addon define it byself). + # e.g. Google Chromium addon where his git bring: + # - "unable to create file" ... "Filename too long" + # see also WARNING by Windows on: https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart + if(THIRD_PARTY_PATH) + message(STATUS "Third party lib path specified") + message(STATUS ${THIRD_PARTY_PATH}) + list(APPEND BUILD_ARGS -DTHIRD_PARTY_PATH=${THIRD_PARTY_PATH}) + endif() + set(PATCH_COMMAND) # if there's a CMakeLists.txt use it to prepare the build |