From 801461d74059586742d9ed23dafd203a071c09c0 Mon Sep 17 00:00:00 2001 From: Claudius Holeksa Date: Tue, 23 May 2023 18:35:32 +0200 Subject: scons: Install into correct location --- src/SConscript | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/SConscript') diff --git a/src/SConscript b/src/SConscript index 41f12e1..1ee0d39 100644 --- a/src/SConscript +++ b/src/SConscript @@ -14,8 +14,8 @@ core_env = env.Clone(); core_env.sources = sorted(glob.glob(dir_path + "/*.cpp")) core_env.headers = sorted(glob.glob(dir_path + "/*.h")) -core_env.headers += sorted(glob.glob(dir_path + "/distance/*.h")) -core_env.headers += sorted(glob.glob(dir_path + "/time/*.h")) +core_env.distance_headers = sorted(glob.glob(dir_path + "/distance/*.h")) +core_env.time_headers = sorted(glob.glob(dir_path + "/time/*.h")) env.sources += core_env.sources; env.headers += core_env.headers; @@ -26,10 +26,12 @@ core_env.add_source_files(objects_shared, core_env.sources, shared=True); core_env.library_shared = core_env.SharedLibrary('#build/kel-unit', [objects_shared]); # Set Alias -env.Alias('library_core', [core_env.library_shared, core_env.library_static]); +env.Alias('library_core', [core_env.library_shared]); env.targets += ['library_core']; # Install -env.Install('$prefix/lib/', [core_env.library_shared, core_env.library_static]); +env.Install('$prefix/lib/', [core_env.library_shared]); env.Install('$prefix/include/kel/unit', [core_env.headers]); +env.Install('$prefix/include/kel/unit/distance', [core_env.distance_headers]); +env.Install('$prefix/include/kel/unit/time', [core_env.time_headers]); -- cgit v1.2.3