subdirectory support

This commit is contained in:
Nishi 2026-05-10 00:22:00 +09:00
commit 96f3fa1f70
Signed by: nishi
GPG key ID: 27EF69B208EB9343
9 changed files with 109 additions and 29 deletions

11
external/duktape/pmake.js vendored Normal file
View file

@ -0,0 +1,11 @@
function main() {
const duktape = new pmake.LibraryProject("duktape");
duktape.sources = fs.glob("*.c");
duktape.includes = [ "." ];
if(pmake.system.target == "Unix") {
duktape.libraries = [ "m" ];
}
pmake.register(duktape);
}