SConstruct (14037:a1e12c851596) | SConstruct (14044:f0737a28cd4a) |
---|---|
1# -*- mode:python -*- 2 | 1# -*- mode:python -*- 2 |
3# Copyright (c) 2013, 2015-2017 ARM Limited | 3# Copyright (c) 2013, 2015-2017, 2019 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 9# to a hardware implementation of the functionality of the software 10# licensed hereunder. You may use the software subject to the license 11# terms below provided that you ensure that this notice is replicated --- 273 unchanged lines hidden (view full) --- 285 286global_vars_file = joinpath(build_root, 'variables.global') 287 288global_vars = Variables(global_vars_file, args=ARGUMENTS) 289 290global_vars.AddVariables( 291 ('CC', 'C compiler', environ.get('CC', main['CC'])), 292 ('CXX', 'C++ compiler', environ.get('CXX', main['CXX'])), | 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 9# to a hardware implementation of the functionality of the software 10# licensed hereunder. You may use the software subject to the license 11# terms below provided that you ensure that this notice is replicated --- 273 unchanged lines hidden (view full) --- 285 286global_vars_file = joinpath(build_root, 'variables.global') 287 288global_vars = Variables(global_vars_file, args=ARGUMENTS) 289 290global_vars.AddVariables( 291 ('CC', 'C compiler', environ.get('CC', main['CC'])), 292 ('CXX', 'C++ compiler', environ.get('CXX', main['CXX'])), |
293 ('CCFLAGS_EXTRA', 'Extra C and C++ compiler flags', ''), 294 ('LDFLAGS_EXTRA', 'Extra linker flags', ''), |
|
293 ('PYTHON_CONFIG', 'Python config binary to use', 294 [ 'python2.7-config', 'python-config' ]), 295 ('PROTOC', 'protoc tool', environ.get('PROTOC', 'protoc')), 296 ('BATCH', 'Use batch pool for build and tests', False), 297 ('BATCH_CMD', 'Batch pool submission command name', 'qdo'), 298 ('M5_BUILD_CACHE', 'Cache built objects in this directory', False), 299 ('EXTRAS', 'Add extra directories to the compilation', '') 300 ) --- 979 unchanged lines hidden (view full) --- 1280 "be inaccurate.") 1281 1282 # Save sticky variable settings back to current variables file 1283 sticky_vars.Save(current_vars_file, env) 1284 1285 if env['USE_SSE2']: 1286 env.Append(CCFLAGS=['-msse2']) 1287 | 295 ('PYTHON_CONFIG', 'Python config binary to use', 296 [ 'python2.7-config', 'python-config' ]), 297 ('PROTOC', 'protoc tool', environ.get('PROTOC', 'protoc')), 298 ('BATCH', 'Use batch pool for build and tests', False), 299 ('BATCH_CMD', 'Batch pool submission command name', 'qdo'), 300 ('M5_BUILD_CACHE', 'Cache built objects in this directory', False), 301 ('EXTRAS', 'Add extra directories to the compilation', '') 302 ) --- 979 unchanged lines hidden (view full) --- 1282 "be inaccurate.") 1283 1284 # Save sticky variable settings back to current variables file 1285 sticky_vars.Save(current_vars_file, env) 1286 1287 if env['USE_SSE2']: 1288 env.Append(CCFLAGS=['-msse2']) 1289 |
1290 env.Append(CCFLAGS='$CCFLAGS_EXTRA') 1291 env.Append(LINKFLAGS='$LDFLAGS_EXTRA') 1292 |
|
1288 # The src/SConscript file sets up the build rules in 'env' according 1289 # to the configured variables. It returns a list of environments, 1290 # one for each variant build (debug, opt, etc.) 1291 SConscript('src/SConscript', variant_dir = variant_path, exports = 'env') 1292 1293# base help text 1294Help(''' 1295Usage: scons [scons options] [build variables] [target(s)] 1296 1297Extra scons options: 1298%(options)s 1299 1300Global build variables: 1301%(global_vars)s 1302 1303%(local_vars)s 1304''' % help_texts) | 1293 # The src/SConscript file sets up the build rules in 'env' according 1294 # to the configured variables. It returns a list of environments, 1295 # one for each variant build (debug, opt, etc.) 1296 SConscript('src/SConscript', variant_dir = variant_path, exports = 'env') 1297 1298# base help text 1299Help(''' 1300Usage: scons [scons options] [build variables] [target(s)] 1301 1302Extra scons options: 1303%(options)s 1304 1305Global build variables: 1306%(global_vars)s 1307 1308%(local_vars)s 1309''' % help_texts) |