aboutsummaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-09-24 23:45:37 +0200
committer Hop311 <hop3114@gmail.com>2023-09-27 15:14:46 +0200
commitde2017128313b9a322eb59c40a4180099d9c18b7 (patch)
treea8aa710f9f2024e863d489f1ab553dccb4398315 /SConstruct
parentfadabd3e19605a7f30ee7e3dd1453f21384dd662 (diff)
DDS load + moved terrain (type) loading to sim
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 5 insertions, 4 deletions
diff --git a/SConstruct b/SConstruct
index db5d150..ee7be9d 100644
--- a/SConstruct
+++ b/SConstruct
@@ -36,9 +36,10 @@ SConscript("extension/deps/SCsub", "env")
# - LINKFLAGS are for linking flags
# tweak this if you want to use different folders, or more folders, to store your source code in.
-paths = ["extension/src"]
-env.Append(CPPPATH=[[env.Dir(p) for p in paths]])
-sources = env.GlobRecursive("*.cpp", paths)
+source_paths = ["extension/src"]
+include_paths = ["extension/deps/gli", "extension/deps/gli/external"]
+env.Append(CPPPATH=[[env.Dir(p) for p in source_paths + include_paths]])
+sources = env.GlobRecursive("*.cpp", source_paths)
env.extension_sources = sources
# Remove unassociated intermediate binary files if allowed, usually the result of a renamed or deleted source file
@@ -49,7 +50,7 @@ if env["intermediate_delete"]:
return file[:file.rindex(".")]
found_one = False
- for path in paths:
+ for path in source_paths:
for obj_file in [file[:-len(".os")] for file in glob(path + "*.os", recursive=True)]:
found = False
for source_file in sources: