summaryrefslogtreecommitdiff
path: root/forstio/async/SConstruct
diff options
context:
space:
mode:
authorClaudius Holeksa <mail@keldu.de>2023-04-29 18:06:59 +0200
committerClaudius Holeksa <mail@keldu.de>2023-04-29 18:06:59 +0200
commit8e2dbd441c6511f1ce15f41dff267c6bfdaefafe (patch)
tree19ae2c6962b0c43d8b1631dad6ad871d03c5b8de /forstio/async/SConstruct
parent937e67ff5ae9e770367bfee3100154b6a6957ce7 (diff)
Fixed async build and added result-dev to ignore
Diffstat (limited to 'forstio/async/SConstruct')
-rw-r--r--forstio/async/SConstruct24
1 files changed, 9 insertions, 15 deletions
diff --git a/forstio/async/SConstruct b/forstio/async/SConstruct
index 2d5050f..0d7b7c6 100644
--- a/forstio/async/SConstruct
+++ b/forstio/async/SConstruct
@@ -35,38 +35,32 @@ def isAbsolutePath(key, dirname, env):
env_vars = Variables(
args=ARGUMENTS
-);
+)
env_vars.Add('prefix',
help='Installation target location of build results and headers',
default='/usr/local/',
validator=isAbsolutePath
-);
+)
env=Environment(ENV=os.environ, variables=env_vars, CPPPATH=[],
CPPDEFINES=['SAW_UNIX'],
CXXFLAGS=['-std=c++20','-g','-Wall','-Wextra'],
- LIBS=[]);
-env.__class__.add_source_files = add_kel_source_files;
+ LIBS=['forstio-core'])
+env.__class__.add_source_files = add_kel_source_files
env.Tool('compilation_db');
env.cdb = env.CompilationDatabase('compile_commands.json');
env.objects = [];
env.sources = [];
env.headers = [];
+env.targets = [];
-Export('env');
-SConscript('src/forstio/async/SConscript');
-
-# Tests
-# SConscript('tests/SConscript')
-# env.Alias('test', env.test_program)
+Export('env')
+SConscript('SConscript')
env.Alias('cdb', env.cdb);
-env.Alias('all', ['library']);# , 'test'])
+env.Alias('all', [env.targets]);
env.Default('all');
-env.Install('$prefix/lib/', [env.library_shared, env.library_static]);
-env.Install('$prefix/include/forstio/async/', [env.headers]);
-
-env.Alias('install', '$prefix');
+env.Alias('install', '$prefix')