diff options
author | Spartan322 <Megacake1234@gmail.com> | 2023-07-27 21:33:58 +0200 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2023-07-27 22:58:57 +0200 |
commit | abedb335f8e7f54113f0f43552feba2b2b666c7d (patch) | |
tree | 0a2d2b2a4abf6a05fc538a8fea39e361082a0b90 | |
parent | debb71065c8947ee6d79c981eb43d631beb11294 (diff) |
Standardize dataloader env to `env.openvic_dataloader` dictionary
-rw-r--r-- | SConstruct | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -213,6 +213,8 @@ env.GlobRecursive = GlobRecursive SConscript("deps/SCsub") +env.openvic_dataloader = {} + # For the reference: # - CCFLAGS are compilation flags shared between C and C++ # - CFLAGS are for C-specific compilation flags @@ -245,10 +247,12 @@ if env["build_ovdl_library"]: library = env.StaticLibrary(target=env.File("bin/%s" % library_name), source=sources) Default(library) -env.Append(LIBPATH=[env.Dir("bin")]) + env.openvic_dataloader["LIBPATH"] = [env.Dir("bin")] + env.openvic_dataloader["LIBS"] = [library_name] + env.openvic_dataloader["INCPATH"] = [env.Dir("include")] -if library != None or os.path.exists("bin/%s" % library_name): - env.Append(LIBS=[library_name]) + env.Append(LIBPATH=env.openvic_dataloader["LIBPATH"]) + env.Append(LIBS=env.openvic_dataloader["LIBS"]) headless_program = None env["PROGSUFFIX"] = suffix + env["PROGSUFFIX"] |