project.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. let flags = globalThis.flags;
  2. flags.name = "ArmorPaint";
  3. flags.package = "org.armorpaint";
  4. flags.embed = os_argv().indexOf("--embed") >= 0; // os_argv().indexOf("--debug") == -1; // clang 19
  5. flags.with_physics = true;
  6. flags.with_d3dcompiler = true;
  7. flags.with_nfd = true;
  8. flags.with_compress = platform != "android";
  9. flags.with_image_write = true;
  10. flags.with_video_write = os_argv().indexOf("tcc") == -1;
  11. flags.with_eval = true;
  12. flags.with_plugins = true;
  13. flags.with_kong = true;
  14. flags.with_raytrace = true;
  15. flags.idle_sleep = true;
  16. flags.export_version_info = true;
  17. flags.export_data_list = platform == "android"; // .apk contents
  18. let project = new Project(flags.name);
  19. project.add_project("../base");
  20. project.add_tsfiles("sources");
  21. project.add_tsfiles("sources/material_nodes");
  22. project.add_tsfiles("sources/neural_nodes");
  23. project.add_tsfiles("sources/brush_nodes");
  24. project.add_shaders("shaders/*.kong");
  25. project.add_assets("assets/*", {destination : "data/{name}"});
  26. project.add_assets("assets/export_presets/*", {destination : "data/export_presets/{name}"});
  27. project.add_assets("assets/keymap_presets/*", {destination : "data/keymap_presets/{name}"});
  28. project.add_assets("assets/licenses/**", {destination : "data/licenses/{name}"});
  29. project.add_assets("assets/plugins/*", {destination : "data/plugins/{name}"});
  30. project.add_assets("assets/meshes/*", {destination : "data/meshes/{name}", noembed : true});
  31. project.add_assets("assets/locale/*", {destination : "data/locale/{name}"});
  32. project.add_assets("assets/readme/readme.txt", {destination : "{name}"});
  33. project.flatten();
  34. return project;