X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=SConstruct;h=399676e5c401722ec4a399342e27d53d58393582;hb=63c74af5519ae3db82627b9cd3b36bb2cfa3bd72;hp=a1632970ba88fe300bf74347d511e4c1e603d5ac;hpb=d723d5bf571eb48c641b092058eaa38bb6c4fcc8;p=anna.git diff --git a/SConstruct b/SConstruct index a163297..399676e 100644 --- a/SConstruct +++ b/SConstruct @@ -91,6 +91,10 @@ for source in sources: env.Default (libraries) +# User environment variables +env.Append (PROJECT_ROOT = current_directory) +env.Append (VARIANT_DIR = variant_dir) + # ## Run 'scons dynamic' to compile dynamic libraries # @@ -183,7 +187,11 @@ env.Alias('doc', env.Command('doc.dummy', [], 'cd docs/doxygen; doxygen')) # # See http://www.scons.org/wiki/InstallTargets and http://www.scons.org/doc/production/HTML/scons-user/c2938.html install_include = env.Install (target_usr_local_include, Glob("include/anna/*")) -install_lib = env.Install (target_usr_local_lib, Glob("source/*/" + variant + "/*.a")) +static_lib_files = 'source/*/' + variant + '/*.a' +dynamic_lib_files = 'source/*/' + variant + '/*.so' +files_grabbed = [Glob(e) for e in [static_lib_files, dynamic_lib_files]] + +install_lib = env.Install (target_usr_local_lib, files_grabbed) install_dynlib = env.Install (target_usr_local_lib, Glob("dynamic/launcher/default/" + variant + "/*.so")) install_example = env.Install (target_opt_bin, Glob("example/*/*/" + variant + "/example_*")) postinstall_example = env.Command('./example/postinstall.out', None, './example/postinstall.sh')