25 lines
610 B
JavaScript
25 lines
610 B
JavaScript
function main(){
|
|
pmake.subdirectory("external/ppr");
|
|
pmake.subdirectory("external/stb");
|
|
|
|
const IDE = new pmake.ExecutableProject("midas");
|
|
IDE.sources = fs.glob("src/*.c", "src/icon/*.c");
|
|
IDE.includes = ["src", main.milsko + "/include"];
|
|
IDE.libdirs = [main.milsko + "/src", main.milsko + "/lib"];
|
|
IDE.libraries = ["stb", "ppr", "Mw"];
|
|
|
|
pmake.register(IDE);
|
|
}
|
|
main.milsko = "/usr/local";
|
|
|
|
(function(){
|
|
opt = new pmake.Option("with-milsko=PATH");
|
|
opt.category = "General";
|
|
opt.description = "Specify path to milsko";
|
|
|
|
opt.action = function(value){
|
|
main.milsko = value;
|
|
};
|
|
|
|
pmake.register(opt);
|
|
})();
|