From 8452e8cc34dd940d55f8384a60a7e2d45179a60b Mon Sep 17 00:00:00 2001 From: Joseph Morrow Date: Thu, 28 May 2015 13:26:07 -0400 Subject: [PATCH] Fix issue where Boost is downloaded everytime for Android builds. Change-Id: I6c5244ef63c360993ecf569d35f95b5eac6ed42c Signed-off-by: Joseph Morrow Reviewed-on: https://gerrit.iotivity.org/gerrit/1124 Tested-by: jenkins-iotivity Reviewed-by: Doug Hudson Reviewed-by: Erich Keane --- extlibs/boost/SConscript | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/extlibs/boost/SConscript b/extlibs/boost/SConscript index 0fe0662..734721f 100644 --- a/extlibs/boost/SConscript +++ b/extlibs/boost/SConscript @@ -34,9 +34,13 @@ if 'android' == target_os : msg="Host platform (%s) is currently not supported for boost builds" % host_os raise SCons.Errors.EnvironmentError(msg) - boost_zip = env.URLDownload(boost_arch_name, boost_url) - boost_dir = env.UnpackAll(boost_bootstrap, boost_zip) - boost_b2 = env.BoostBootstrap(boost_b2_name, boost_dir) + if not os.path.exists(boost_arch_name): + boost_arch_name = env.URLDownload(boost_arch_name, boost_url) + + if not os.path.exists(boost_base_name): + boost_arch_name = env.UnpackAll(boost_bootstrap, boost_arch_name) + + boost_b2 = env.BoostBootstrap(boost_b2_name, boost_arch_name) dep_sys_root = env['DEP_SYS_ROOT'] dep_src_dir = dep_sys_root + os.sep + 'include' -- 2.7.4