aboutsummaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-09-14 21:17:04 +0200
committer GitHub <noreply@github.com>2023-09-14 21:17:04 +0200
commit9de41a0ed5f050f205219ab2a9f114800d048c14 (patch)
tree559681d5a2569adc307409d818311760edc12654 /SConstruct
parent1013b3c21226f703caba954664628694aedde469 (diff)
parent70c040d042cb536e5ce16b0cfff0e0afa39e8ed7 (diff)
Merge pull request #151 from OpenVicProject/dataloading
Build system cleanup + dataloading scaffolding + JSON dataloading removed
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct11
1 files changed, 8 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index eefd99d..2d34e01 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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