subdirectory support
This commit is contained in:
parent
7ce5bd3cf3
commit
96f3fa1f70
9 changed files with 109 additions and 29 deletions
12
pmake.js
12
pmake.js
|
|
@ -16,15 +16,7 @@ function main() {
|
|||
generate("src/system/*.js");
|
||||
generate("src/js/*.js");
|
||||
|
||||
const Duktape = new pmake.LibraryProject("Duktape");
|
||||
Duktape.output = "duktape";
|
||||
Duktape.sources = fs.glob("external/duktape/*.c");
|
||||
Duktape.includes = [ "external/duktape" ];
|
||||
Duktape.libdirs = ["a"];
|
||||
|
||||
if(pmake.system.target == "Unix") {
|
||||
Duktape.libraries = [ "m" ];
|
||||
}
|
||||
pmake.subdirectory("external/duktape");
|
||||
|
||||
const stb = new pmake.InterfaceProject("stb");
|
||||
stb.includes = [ "external/stb" ];
|
||||
|
|
@ -32,7 +24,7 @@ function main() {
|
|||
const PMake = new pmake.ExecutableProject("PMake");
|
||||
PMake.output = "pmake";
|
||||
PMake.sources = fs.glob("src/*.c", "src/compiler/*.c", "src/system/*.c", "src/js/*.c");
|
||||
PMake.libraries = [ Duktape, stb ];
|
||||
PMake.libraries = [ "duktape", stb ];
|
||||
|
||||
pmake.register(PMake);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue