Files
armorpaint/paint/project.js
T
2025-10-01 12:40:05 +02:00

36 lines
1.5 KiB
JavaScript

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;
flags.with_video_write = true;
flags.with_eval = true;
flags.with_plugins = true;
flags.with_kong = true;
flags.with_raytrace = true;
flags.idle_sleep = true;
flags.export_version_info = true;
flags.export_data_list = platform == "android"; // .apk contents
let project = new Project(flags.name);
project.add_project("../base");
project.add_tsfiles("sources");
project.add_tsfiles("sources/material_nodes");
project.add_tsfiles("sources/brush_nodes");
project.add_shaders("shaders/*.kong");
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 });
project.add_assets("assets/locale/*", { destination: "data/locale/{name}" });
project.add_assets("assets/readme/readme.txt", { destination: "{name}" });
project.flatten();
return project;