diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-07-18 19:07:53 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-07-18 19:07:53 +0200 |
commit | 14dbb72f6c6043b442c5a74299fbe55b9f199ca6 (patch) | |
tree | 09f1dbf37ab555c4be3a734af43ac860da027194 /modules/remote-filesystem/c++/SConscript | |
parent | f1223709e193c4513047293a1a42b55b9e8874b8 (diff) |
wip
Diffstat (limited to 'modules/remote-filesystem/c++/SConscript')
-rw-r--r-- | modules/remote-filesystem/c++/SConscript | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/modules/remote-filesystem/c++/SConscript b/modules/remote-filesystem/c++/SConscript new file mode 100644 index 0000000..2bf03be --- /dev/null +++ b/modules/remote-filesystem/c++/SConscript @@ -0,0 +1,38 @@ +#!/bin/false + +import os +import os.path +import glob + + +Import('env') + +dir_path = Dir('.').abspath + +# Environment for base library +remote-filesystem_env = env.Clone(); + +remote-filesystem_env.sources = sorted(glob.glob(dir_path + "/*.cpp")) +remote-filesystem_env.headers = sorted(glob.glob(dir_path + "/*.hpp")) + +env.sources += remote-filesystem_env.sources; +env.headers += remote-filesystem_env.headers; + +## Shared lib +objects_shared = [] +remote-filesystem_env.add_source_files(objects_shared, remote-filesystem_env.sources, shared=True); +env.library_shared = remote-filesystem_env.SharedLibrary('#build/forstio-remote-filesystem', [objects_shared]); + +## Static lib +objects_static = [] +remote-filesystem_env.add_source_files(objects_static, remote-filesystem_env.sources, shared=False); +env.library_static = remote-filesystem_env.StaticLibrary('#build/forstio-remote-filesystem', [objects_static]); + +# Set Alias +env.Alias('library_remote-filesystem', [env.library_shared, env.library_static]); + +env.targets += ['library_remote-filesystem']; + +# Install +env.Install('$prefix/lib/', [env.library_shared, env.library_static]); +env.Install('$prefix/include/forstio/remote/filesystem/', [remote-filesystem_env.headers]); |