Skip to content

Commit 1244d64

Browse files
committed
Add source download cache
Signed-off-by: Uilian Ries <uilianries@gmail.com>
1 parent 138e596 commit 1244d64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

classes/conan.bbclass

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ CONAN_SETTINGS_BUILD_TYPE ?= "${@'Debug' if d.getVar('DEBUG_BUILD') == '1' else
3232
CONAN_EXTRA_CFLAGS ?= "${TUNE_CCARGS}"
3333
CONAN_EXTRA_CXXFLAGS ?= "${TUNE_CCARGS}"
3434
CONAN_EXTRA_CONFIG ?= ""
35+
CONAN_CONF_SOURCES_DOWNLOAD_CACHE ?= "${CONAN_HOME}/download_cache"
3536

3637
export CONAN_HOME
3738
export CONAN_LOG_LEVEL="${CONAN_LOGLEVEL}"
@@ -77,6 +78,7 @@ conan_do_configure() {
7778
printf "core:non_interactive=1\n" > "${CONAN_HOME}/conan.conf"
7879
printf "core:default_build_profile=${CONAN_PROFILE_BUILD_PATH}\n" >> "${CONAN_HOME}/conan.conf"
7980
printf "core:default_profile=${CONAN_PROFILE_HOST_PATH}\n" >> "${CONAN_HOME}/conan.conf"
81+
printf "core.sources:download_cache=${CONAN_CONF_SOURCES_DOWNLOAD_CACHE}\n" >> "${CONAN_HOME}/conan.conf"
8082

8183
if [ -n "${CONAN_CONFIG_URL}" ]; then
8284
bbnote "Installing Conan configuration from: ${CONAN_CONFIG_URL}"

0 commit comments

Comments
 (0)