diff options
author | Claudius Holeksa <mail@keldu.de> | 2023-04-29 18:44:59 +0200 |
---|---|---|
committer | Claudius Holeksa <mail@keldu.de> | 2023-04-29 18:44:59 +0200 |
commit | f07487ce8f0f3ebd5c4d1082a9521f09588fa34a (patch) | |
tree | 5cccd5e20d180cbe128dd0ae7759b50d26199af4 /forstio/io/SConscript | |
parent | 47c44aab6cf54e4885de4138cab1aa3825f115e4 (diff) |
Added io to new repo
Diffstat (limited to 'forstio/io/SConscript')
-rw-r--r-- | forstio/io/SConscript | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/forstio/io/SConscript b/forstio/io/SConscript new file mode 100644 index 0000000..62ad58a --- /dev/null +++ b/forstio/io/SConscript @@ -0,0 +1,38 @@ +#!/bin/false + +import os +import os.path +import glob + + +Import('env') + +dir_path = Dir('.').abspath + +# Environment for base library +io_env = env.Clone(); + +io_env.sources = sorted(glob.glob(dir_path + "/*.cpp")) +io_env.headers = sorted(glob.glob(dir_path + "/*.h")) + +env.sources += io_env.sources; +env.headers += io_env.headers; + +## Shared lib +objects_shared = [] +io_env.add_source_files(objects_shared, io_env.sources, shared=True); +io_env.library_shared = io_env.SharedLibrary('#build/forstio-io', [objects_shared]); + +## Static lib +objects_static = [] +io_env.add_source_files(objects_static, io_env.sources, shared=False); +io_env.library_static = io_env.StaticLibrary('#build/forstio-io', [objects_static]); + +# Set Alias +env.Alias('library_io', [io_env.library_shared, io_env.library_static]); + +env.targets += ['library_io']; + +# Install +env.Install('$prefix/lib/', [io_env.library_shared, io_env.library_static]); +env.Install('$prefix/include/forstio/io/', [io_env.headers]); |