SConstruct (12016:893091853afd) SConstruct (12034:4b685699cdaa)
1# -*- mode:python -*-
2
3# Copyright (c) 2013, 2015, 2016 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 1300 unchanged lines hidden (view full) ---

1309 SHLINKFLAGS='$PSHLINKFLAGS',
1310 LIBS='')
1311
1312main.Append(BUILDERS = { 'PartialShared' : partial_shared_builder,
1313 'PartialStatic' : partial_static_builder })
1314
1315# builds in ext are shared across all configs in the build root.
1316ext_dir = abspath(joinpath(str(main.root), 'ext'))
1# -*- mode:python -*-
2
3# Copyright (c) 2013, 2015, 2016 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 1300 unchanged lines hidden (view full) ---

1309 SHLINKFLAGS='$PSHLINKFLAGS',
1310 LIBS='')
1311
1312main.Append(BUILDERS = { 'PartialShared' : partial_shared_builder,
1313 'PartialStatic' : partial_static_builder })
1314
1315# builds in ext are shared across all configs in the build root.
1316ext_dir = abspath(joinpath(str(main.root), 'ext'))
1317ext_build_dirs = []
1317for root, dirs, files in os.walk(ext_dir):
1318 if 'SConscript' in files:
1319 build_dir = os.path.relpath(root, ext_dir)
1318for root, dirs, files in os.walk(ext_dir):
1319 if 'SConscript' in files:
1320 build_dir = os.path.relpath(root, ext_dir)
1321 ext_build_dirs.append(build_dir)
1320 main.SConscript(joinpath(root, 'SConscript'),
1321 variant_dir=joinpath(build_root, build_dir))
1322
1323main.Prepend(CPPPATH=Dir('ext/pybind11/include/'))
1324
1325###################################################
1326#
1327# This builder and wrapper method are used to set up a directory with

--- 79 unchanged lines hidden (view full) ---

1407 # Variables for $BUILD_ROOT/$VARIANT_DIR are stored in
1408 # $BUILD_ROOT/variables/$VARIANT_DIR so you can nuke
1409 # $BUILD_ROOT/$VARIANT_DIR without losing your variables settings.
1410 current_vars_file = joinpath(build_root, 'variables', variant_dir)
1411 if isfile(current_vars_file):
1412 sticky_vars.files.append(current_vars_file)
1413 if not GetOption('silent'):
1414 print "Using saved variables file %s" % current_vars_file
1322 main.SConscript(joinpath(root, 'SConscript'),
1323 variant_dir=joinpath(build_root, build_dir))
1324
1325main.Prepend(CPPPATH=Dir('ext/pybind11/include/'))
1326
1327###################################################
1328#
1329# This builder and wrapper method are used to set up a directory with

--- 79 unchanged lines hidden (view full) ---

1409 # Variables for $BUILD_ROOT/$VARIANT_DIR are stored in
1410 # $BUILD_ROOT/variables/$VARIANT_DIR so you can nuke
1411 # $BUILD_ROOT/$VARIANT_DIR without losing your variables settings.
1412 current_vars_file = joinpath(build_root, 'variables', variant_dir)
1413 if isfile(current_vars_file):
1414 sticky_vars.files.append(current_vars_file)
1415 if not GetOption('silent'):
1416 print "Using saved variables file %s" % current_vars_file
1417 elif variant_dir in ext_build_dirs:
1418 # Things in ext are built without a variant directory.
1419 continue
1415 else:
1416 # Build dir-specific variables file doesn't exist.
1417
1418 # Make sure the directory is there so we can create it later
1419 opt_dir = dirname(current_vars_file)
1420 if not isdir(opt_dir):
1421 mkdir(opt_dir)
1422

--- 105 unchanged lines hidden ---
1420 else:
1421 # Build dir-specific variables file doesn't exist.
1422
1423 # Make sure the directory is there so we can create it later
1424 opt_dir = dirname(current_vars_file)
1425 if not isdir(opt_dir):
1426 mkdir(opt_dir)
1427

--- 105 unchanged lines hidden ---