diff options
author | George L. Albany <Megacake1234@gmail.com> | 2023-11-11 22:15:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-11 22:15:23 +0100 |
commit | ce1f1e5fe32ed0856bd2b6df5136dad3f6bc9918 (patch) | |
tree | 003fc00c91f26f8716b2fff4a735880c3d44c07b | |
parent | c3689423a74594344e46dc7d91ea9d85fccc4e80 (diff) | |
parent | 70b5f75b43af8df85cfcc9da24a8180fd2f7f772 (diff) |
Merge pull request #30 from OpenVicProject/fix/compiledb
-rw-r--r-- | SConstruct | 11 | ||||
m--------- | scripts | 0 |
2 files changed, 9 insertions, 2 deletions
@@ -52,9 +52,11 @@ library = None env["OBJSUFFIX"] = suffix + env["OBJSUFFIX"] library_name = "libopenvic-dataloader{}{}".format(suffix, env["LIBSUFFIX"]) +default_args = [] + if env["build_ovdl_library"]: library = env.StaticLibrary(target=os.path.join(BINDIR, library_name), source=sources) - Default(library) + default_args += [library] env.Append(LIBPATH=[env.Dir(BINDIR)]) env.Prepend(LIBS=[library_name]) @@ -80,8 +82,13 @@ if env["build_ovdl_headless"]: source=headless_env.headless_sources, PROGSUFFIX=".headless" + env["PROGSUFFIX"] ) - Default(headless_program) + default_args += [headless_program] + +# Add compiledb if the option is set +if env.get("compiledb", False): + default_args += ["compiledb"] +Default(*default_args) if "env" in locals(): # FIXME: This method mixes both cosmetic progress stuff and cache handling... diff --git a/scripts b/scripts -Subproject a0ca6e84c28eba5df99381fb32d1fd149d86f5b +Subproject 3a4190526bde8e3fcd49c3ebcf77b5a87dc8ab6 |