diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2017-05-04 09:15:15 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2017-05-04 09:17:58 +0100 |
commit | 46d5927c3461ec270de8b0fc087ac5dc2431488f (patch) | |
tree | 2393795ba60a59158c3a62ae014ddc3a03b995e7 /SConstruct | |
parent | c772c0b2ecfe76cac5867915fdc296d14bb829a2 (diff) | |
download | armcl-46d5927c3461ec270de8b0fc087ac5dc2431488f.tar.gz armcl-46d5927c3461ec270de8b0fc087ac5dc2431488f.tar.bz2 armcl-46d5927c3461ec270de8b0fc087ac5dc2431488f.zip |
arm_compute v17.05
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 7a1caa32b..693ad68a3 100644 --- a/SConstruct +++ b/SConstruct @@ -20,4 +20,32 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -SConscript('sconscript', variant_dir='build', duplicate=0) +import os + +vars = Variables("scons") +vars.AddVariables( + BoolVariable("debug", "Debug", False), + BoolVariable("asserts", "Enable asserts (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")), + BoolVariable("Werror", "Enable/disable the -Werror compilation flag", True), + BoolVariable("opencl", "Enable OpenCL support", True), + BoolVariable("neon", "Enable Neon support", False), + BoolVariable("embed_kernels", "Embed OpenCL kernels in library binary", False), + BoolVariable("set_soname", "Set the library's soname and shlibversion (requires SCons 2.4 or above)", False), + BoolVariable("openmp", "Enable OpenMP backend", False), + BoolVariable("cppthreads", "Enable C++11 threads backend", True), + PathVariable("build_dir", "Specify sub-folder for the build", ".", PathVariable.PathIsDirCreate), + ("extra_cxx_flags", "Extra CXX flags to be appended to the build command", "") +) + +env = Environment(platform='posix', variables = vars, ENV = os.environ) + +Help(vars.GenerateHelpText(env)) + +Export('vars') +Export('env') + +if not GetOption("help"): + SConscript('sconscript', variant_dir='#build/%s/arm_compute' % env['build_dir'], duplicate=0) |