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() { var opt; 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); opt = new pmake.Option("with-mingw=PREFIX"); opt.category = "General"; opt.description = "Use MinGW"; opt.action = function(value) { pmake.compiler.prefix = value; pmake.setSystem("Windows"); }; pmake.register(opt); })();