1# -*- mode:python -*- 2 |
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'])), |
293 ('CCFLAGS_EXTRA', 'Extra C and C++ compiler flags', ''), 294 ('LDFLAGS_EXTRA', 'Extra linker flags', ''), |
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 |
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) |