aboutsummaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-09-02 15:03:14 +0200
committer Spartan322 <Megacake1234@gmail.com>2023-09-02 19:20:25 +0200
commitdbc66788a680daf3f8a1c0c6e7fbd1b77cc06864 (patch)
tree288a1530b1f3cd2d7ba2bb5821e2c4160725707c /SConstruct
parentf990117e56060811ddd2a850ec712485aea79649 (diff)
Add github actions and workflow
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 3 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 6770de7..3128ebc 100644
--- a/SConstruct
+++ b/SConstruct
@@ -245,7 +245,7 @@ env["OBJSUFFIX"] = suffix + env["OBJSUFFIX"]
library_name = "libopenvic-dataloader{}{}".format(suffix, env["LIBSUFFIX"])
if env["build_ovdl_library"]:
- library = env.StaticLibrary(target=env.File(os.path.join(BINDIR, library_name)), source=sources)
+ library = env.StaticLibrary(target=os.path.join(BINDIR, library_name), source=sources)
Default(library)
env.Append(LIBPATH=[env.Dir(BINDIR)])
@@ -267,6 +267,8 @@ if env["build_ovdl_headless"]:
headless_env.headless_sources = GlobRecursive("*.cpp", headless_path)
if not env["build_ovdl_library"]:
headless_env.headless_sources += sources
+ else:
+ headless_env.headless_sources += env.lexy_sources
headless_program = headless_env.Program(
target=os.path.join(BINDIR, headless_name),
source=headless_env.headless_sources,