diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-03-29 01:37:10 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:58 +0200 |
commit | f9666347840e519f6248c71688b57227bca4f454 (patch) | |
tree | 91362ea567f8e8817b2d84b4dae6be603d80f703 /src/main.cpp | |
parent | c6e8fe8125f8900f3019716aa1cfbf18ff8264bd (diff) |
Add 'lib' config, for including external libraries without pkg-config
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index af43892..47da4bb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -421,6 +421,14 @@ static int buildProject(const FileString &projectPath, const FileString &project } } + for(const std::string &lib : sibsConfig.getLibs()) + { + string staticLibCmd = "\""; + staticLibCmd += lib; + staticLibCmd += "\""; + ninja.addDependency(staticLibCmd); + } + if(sibsConfig.shouldBuildTests() && sibsConfig.getTestPath().empty() && !sibsConfig.zigTestAllFiles && sibsConfig.zigTestFiles.empty()) { printf("Project is missing tests subdirectory. No tests to build\n"); |