Fix issue where Boost is downloaded everytime for Android builds. 24/1124/5
authorJoseph Morrow <joseph.l.morrow@intel.com>
Thu, 28 May 2015 17:26:07 +0000 (13:26 -0400)
committerErich Keane <erich.keane@intel.com>
Thu, 28 May 2015 20:31:37 +0000 (20:31 +0000)
Change-Id: I6c5244ef63c360993ecf569d35f95b5eac6ed42c
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1124
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
extlibs/boost/SConscript

index 0fe0662..734721f 100644 (file)
@@ -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'