Skip to content

Commit

Permalink
Make easier to use as subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
tcdude committed Nov 28, 2024
1 parent 7e02138 commit a840325
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions kfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ let project = new Project('soso');
project.useAsLibrary = () => {
project.cmd = false;
project.debugDir = null;
project.addExclude('tests/test_unit.c');
};

project.addFile('src/**');
project.addFile('tests/**');
project.addFile('ext/**');
project.addExclude('ext/sht/example.c');
if (typeof noShtPlease === 'undefined') {
project.addFile('ext/sht/sht.c');
project.addFile('ext/sht/murmur3.c');
project.addIncludeDir('ext');
global.noShtPlease = true;
}
project.addIncludeDir('src');
project.addIncludeDir('ext');
project.setCStd('c99');
project.setCppStd('c++11');
project.setDebugDir('bin');
Expand Down

0 comments on commit a840325

Please sign in to comment.