Files
armorpaint/paint/project.js
T

45 lines
2.0 KiB
JavaScript
Raw Normal View History

2020-03-20 13:48:20 +01:00
2025-10-15 18:39:55 +02:00
let flags = globalThis.flags;
flags.name = "ArmorPaint";
flags.package = "org.armorpaint";
flags.embed = os_argv().indexOf("--embed") >= 0; // os_argv().indexOf("--debug") == -1; // clang 19
flags.with_physics = true;
flags.with_d3dcompiler = true;
flags.with_nfd = true;
flags.with_compress = platform != "android";
flags.with_image_write = true;
2025-12-16 19:23:41 +01:00
flags.with_video_write = os_argv().indexOf("tcc") == -1;
2025-10-15 18:39:55 +02:00
flags.with_eval = true;
flags.with_plugins = true;
flags.with_kong = true;
flags.with_raytrace = true;
2026-04-04 13:07:01 +02:00
flags.with_bc7 = true;
2026-05-31 17:33:48 +02:00
flags.with_audio = false; // platform == "linux";
2025-10-15 18:39:55 +02:00
flags.idle_sleep = true;
2025-09-02 12:05:25 +02:00
flags.export_version_info = true;
2025-10-15 18:39:55 +02:00
flags.export_data_list = platform == "android"; // .apk contents
2023-04-17 21:15:08 +02:00
2026-01-30 00:01:00 +01:00
if (platform == "wasm") {
2026-05-31 14:01:36 +02:00
flags.with_nfd = false;
flags.with_compress = false;
flags.with_plugins = false;
flags.with_raytrace = false;
flags.export_data_list = true;
2026-01-30 00:01:00 +01:00
}
2023-12-04 17:14:50 +01:00
let project = new Project(flags.name);
2024-09-12 21:24:34 +02:00
project.add_project("../base");
2026-05-28 11:52:16 +02:00
project.add_cfiles("sources/startup.c");
2026-03-06 12:56:38 +01:00
project.add_cfiles("sources/main.c");
2025-03-29 21:52:27 +01:00
project.add_shaders("shaders/*.kong");
2025-10-15 18:39:55 +02:00
project.add_assets("assets/*", {destination : "data/{name}"});
project.add_assets("assets/export_presets/*", {destination : "data/export_presets/{name}"});
project.add_assets("assets/keymap_presets/*", {destination : "data/keymap_presets/{name}"});
project.add_assets("assets/licenses/**", {destination : "data/licenses/{name}"});
project.add_assets("assets/plugins/*", {destination : "data/plugins/{name}"});
project.add_assets("assets/meshes/*", {destination : "data/meshes/{name}", noembed : true});
2026-01-29 13:24:53 +01:00
project.add_assets("assets/meshes/default/*", {destination : "data/meshes/{name}"}); // embed default mesh
2025-10-15 18:39:55 +02:00
project.add_assets("assets/locale/*", {destination : "data/locale/{name}"});
project.add_assets("assets/readme/readme.txt", {destination : "{name}"});
2024-05-11 22:03:44 +02:00
return project;