Fix compile when plugins are disabled

This commit is contained in:
luboslenco
2025-07-28 19:23:22 +02:00
parent 9fa5323aca
commit e37156109f
2 changed files with 16 additions and 3 deletions
+6 -3
View File
@@ -8,6 +8,7 @@ flags.with_compress = true;
flags.with_image_write = true;
flags.with_iron = true;
flags.with_eval = true;
flags.with_plugins = true;
let project = new Project("Base");
let dir = flags.name.toLowerCase();
@@ -48,9 +49,11 @@ if (!flags.lite) {
}
}
project.add_define("WITH_PLUGINS");
project.add_project("../" + dir + "/plugins");
project.add_project("plugins");
if (flags.with_plugins) {
project.add_define("WITH_PLUGINS");
project.add_project("../" + dir + "/plugins");
project.add_project("plugins");
}
project.add_tsfiles("sources/ts");
project.add_tsfiles("sources/ts/iron");