aboutsummaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-09-29 00:28:12 +0200
committer Hop311 <hop3114@gmail.com>2023-09-29 00:28:12 +0200
commit90c90f2ece542c05df9e87cdf7398bbf54a87697 (patch)
tree288de15dd56bb54d0b75f3c3dc51d19c072e3a69 /SConstruct
parenta53a1891c63cbf809c4fc5481238de6a8b12f8c1 (diff)
Scons rearrangement
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 4 insertions, 5 deletions
diff --git a/SConstruct b/SConstruct
index ee7be9d..db5d150 100644
--- a/SConstruct
+++ b/SConstruct
@@ -36,10 +36,9 @@ 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.
-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)
+paths = ["extension/src"]
+env.Append(CPPPATH=[[env.Dir(p) for p in paths]])
+sources = env.GlobRecursive("*.cpp", paths)
env.extension_sources = sources
# Remove unassociated intermediate binary files if allowed, usually the result of a renamed or deleted source file
@@ -50,7 +49,7 @@ if env["intermediate_delete"]:
return file[:file.rindex(".")]
found_one = False
- for path in source_paths:
+ for path in paths:
for obj_file in [file[:-len(".os")] for file in glob(path + "*.os", recursive=True)]:
found = False
for source_file in sources: