summaryrefslogtreecommitdiffstats
path: root/cmake/scripts/common/HandleDepends.cmake
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2020-07-02 23:09:26 +0200
committermanuel <manuel@mausz.at>2020-07-02 23:09:26 +0200
commit5f8335c1e49ce108ef3481863833c98efa00411b (patch)
treef02b5c1c9765bb6a14c8eb42bb4f81b9face0b55 /cmake/scripts/common/HandleDepends.cmake
parente317daf081a1048904fdf0b548946fa3ba6593a7 (diff)
downloadkodi-pvr-build-5f8335c1e49ce108ef3481863833c98efa00411b.tar.gz
kodi-pvr-build-5f8335c1e49ce108ef3481863833c98efa00411b.tar.bz2
kodi-pvr-build-5f8335c1e49ce108ef3481863833c98efa00411b.zip
sync with upstreamHEADmaster
Diffstat (limited to 'cmake/scripts/common/HandleDepends.cmake')
-rw-r--r--cmake/scripts/common/HandleDepends.cmake20
1 files changed, 16 insertions, 4 deletions
diff --git a/cmake/scripts/common/HandleDepends.cmake b/cmake/scripts/common/HandleDepends.cmake
index 40e382b..7cacd25 100644
--- a/cmake/scripts/common/HandleDepends.cmake
+++ b/cmake/scripts/common/HandleDepends.cmake
@@ -68,8 +68,8 @@ function(add_addon_depends addon searchpath)
68 -DCORE_SYSTEM_NAME=${CORE_SYSTEM_NAME} 68 -DCORE_SYSTEM_NAME=${CORE_SYSTEM_NAME}
69 -DENABLE_STATIC=1 69 -DENABLE_STATIC=1
70 -DBUILD_SHARED_LIBS=0) 70 -DBUILD_SHARED_LIBS=0)
71 # windows store args 71 # windows args
72 if (CMAKE_SYSTEM_NAME STREQUAL WindowsStore) 72 if (CMAKE_SYSTEM_NAME STREQUAL WindowsStore OR CMAKE_SYSTEM_NAME STREQUAL Windows)
73 list(APPEND BUILD_ARGS -DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME} 73 list(APPEND BUILD_ARGS -DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME}
74 -DCMAKE_SYSTEM_VERSION=${CMAKE_SYSTEM_VERSION}) 74 -DCMAKE_SYSTEM_VERSION=${CMAKE_SYSTEM_VERSION})
75 endif() 75 endif()
@@ -78,8 +78,10 @@ function(add_addon_depends addon searchpath)
78 # make sure we create strings, not lists 78 # make sure we create strings, not lists
79 set(TMP_C_FLAGS "${CMAKE_C_FLAGS} ${ARCH_DEFINES}") 79 set(TMP_C_FLAGS "${CMAKE_C_FLAGS} ${ARCH_DEFINES}")
80 set(TMP_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ARCH_DEFINES}") 80 set(TMP_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ARCH_DEFINES}")
81 set(TMP_EXE_LINKER_FLAGS "-L${OUTPUT_DIR}/lib ${CMAKE_EXE_LINKER_FLAGS}")
81 list(APPEND BUILD_ARGS -DCMAKE_C_FLAGS=${TMP_C_FLAGS} 82 list(APPEND BUILD_ARGS -DCMAKE_C_FLAGS=${TMP_C_FLAGS}
82 -DCMAKE_CXX_FLAGS=${TMP_CXX_FLAGS}) 83 -DCMAKE_CXX_FLAGS=${TMP_CXX_FLAGS}
84 -DCMAKE_EXE_LINKER_FLAGS=${TMP_EXE_LINKER_FLAGS})
83 endif() 85 endif()
84 86
85 if(CMAKE_TOOLCHAIN_FILE) 87 if(CMAKE_TOOLCHAIN_FILE)
@@ -88,6 +90,17 @@ function(add_addon_depends addon searchpath)
88 message(${BUILD_ARGS}) 90 message(${BUILD_ARGS})
89 endif() 91 endif()
90 92
93 # used for addons where need special folders to store there content (if
94 # not set the addon define it byself).
95 # e.g. Google Chromium addon where his git bring:
96 # - "unable to create file" ... "Filename too long"
97 # see also WARNING by Windows on: https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart
98 if(THIRD_PARTY_PATH)
99 message(STATUS "Third party lib path specified")
100 message(STATUS ${THIRD_PARTY_PATH})
101 list(APPEND BUILD_ARGS -DTHIRD_PARTY_PATH=${THIRD_PARTY_PATH})
102 endif()
103
91 set(PATCH_COMMAND) 104 set(PATCH_COMMAND)
92 105
93 # if there's a CMakeLists.txt use it to prepare the build 106 # if there's a CMakeLists.txt use it to prepare the build
@@ -215,7 +228,6 @@ function(add_addon_depends addon searchpath)
215 -DOUTPUT_DIR=${OUTPUT_DIR} 228 -DOUTPUT_DIR=${OUTPUT_DIR}
216 -DCMAKE_PREFIX_PATH=${OUTPUT_DIR} 229 -DCMAKE_PREFIX_PATH=${OUTPUT_DIR}
217 -DCMAKE_INSTALL_PREFIX=${OUTPUT_DIR} 230 -DCMAKE_INSTALL_PREFIX=${OUTPUT_DIR}
218 -DCMAKE_EXE_LINKER_FLAGS=-L${OUTPUT_DIR}/lib
219 -DCMAKE_INCLUDE_PATH=${OUTPUT_DIR}/include) 231 -DCMAKE_INCLUDE_PATH=${OUTPUT_DIR}/include)
220 endif() 232 endif()
221 233