diff options
author | Hop311 <Hop3114@gmail.com> | 2023-09-14 21:17:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 21:17:04 +0200 |
commit | 9de41a0ed5f050f205219ab2a9f114800d048c14 (patch) | |
tree | 559681d5a2569adc307409d818311760edc12654 /SConstruct | |
parent | 1013b3c21226f703caba954664628694aedde469 (diff) | |
parent | 70c040d042cb536e5ce16b0cfff0e0afa39e8ed7 (diff) |
Merge pull request #151 from OpenVicProject/dataloading
Build system cleanup + dataloading scaffolding + JSON dataloading removed
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -2,7 +2,6 @@ import os import sys from glob import glob -from pathlib import Path # Local from scripts.build.option_handler import OptionsClass @@ -60,9 +59,15 @@ if env["compiledb"]: # - CPPDEFINES are for pre-processor defines # - LINKFLAGS are for linking flags +ovsim_env = SConscript("extension/deps/openvic-simulation/SConstruct") + +env.Append(LIBPATH=ovsim_env.openvic_simulation["LIBPATH"]) +env.Append(LIBS=ovsim_env.openvic_simulation["LIBS"]) +env.Append(CPPPATH=ovsim_env.openvic_simulation["INCPATH"]) + # tweak this if you want to use different folders, or more folders, to store your source code in. -paths = ["extension/src/", "extension/deps/openvic-simulation/src/"] -env.Append(CPPPATH=paths) +paths = ["extension/src/"] +env.Append(CPPPATH=[[env.Dir(p) for p in paths]]) sources = GlobRecursive("*.cpp", paths) env.extension_sources = sources |