aboutsummaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-02-19 17:24:27 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:47:18 +0000
commit6a3daf1f566c0bb722207f125d2aaee6930e9947 (patch)
treedea39487249683f5f1a1ab0d9a2668cfb7783510 /SConstruct
parent931b489e17cc482f533f8cc0226f966369bbf0ad (diff)
downloadComputeLibrary-6a3daf1f566c0bb722207f125d2aaee6930e9947.tar.gz
COMPMID-942: Created 'embed_only' build target for ArmNN
Change-Id: I579943339fc77c31ce29253cdbc3d8654ac0c6f0 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/121167 Reviewed-by: Pablo Tello <pablo.tello@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct10
1 files changed, 7 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index 82100decfa..b74a6b9a2a 100644
--- a/SConstruct
+++ b/SConstruct
@@ -42,7 +42,7 @@ vars.AddVariables(
BoolVariable("logging", "Logging (this flag is forced to 1 for debug=1)", False),
EnumVariable("arch", "Target Architecture", "armv7a", allowed_values=("armv7a", "arm64-v8a", "arm64-v8.2-a", "x86_32", "x86_64")),
EnumVariable("os", "Target OS", "linux", allowed_values=("linux", "android", "bare_metal")),
- EnumVariable("build", "Build type", "cross_compile", allowed_values=("native", "cross_compile")),
+ EnumVariable("build", "Build type", "cross_compile", allowed_values=("native", "cross_compile", "embed_only")),
BoolVariable("examples", "Build example programs", True),
BoolVariable("Werror", "Enable/disable the -Werror compilation flag", True),
BoolVariable("standalone", "Builds the tests as standalone executables, links statically with libgcc, libstdc++ and libarm_compute", False),
@@ -61,11 +61,17 @@ vars.AddVariables(
env = Environment(platform="posix", variables=vars, ENV = os.environ)
env.Append(LIBPATH = ["#build/%s" % env['build_dir']])
+Export('env')
+Export('vars')
SConsignFile('build/.%s' % env['build_dir'])
Help(vars.GenerateHelpText(env))
+if env['build'] == "embed_only":
+ SConscript('./SConscript', variant_dir='#build/%s' % env['build_dir'], duplicate=0)
+ Return()
+
if env['neon'] and 'x86' in env['arch']:
print "Cannot compile NEON for x86"
Exit(1)
@@ -231,8 +237,6 @@ if env['logging']:
env.Append(CPPPATH = ['#/include', "#"])
env.Append(CXXFLAGS = env['extra_cxx_flags'])
-Export('vars')
-Export('env')
Export('version_at_least')
if env['opencl']: