meson.build 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # `spry` — the Spry application CLI: scaffolding (`spry new`, including USM
  2. # packaging), add commands, static key maintenance (`spry keys`), USM image
  3. # deployment (`spry deploy`), and the build/run/watch dev loop (`spry dev`).
  4. python3 = find_program('python3')
  5. # Embed the editable template files as Vala consts.
  6. spry_templates = custom_target('spry-templates',
  7. input: files(
  8. 'templates/project-meson.build',
  9. 'templates/app-main.vala',
  10. 'templates/layout.html',
  11. 'templates/home.html',
  12. 'templates/HomeEntrypoint.vala',
  13. 'templates/page.html',
  14. 'templates/PageEntrypoint.vala',
  15. 'templates/action.vala',
  16. 'templates/login.html',
  17. 'templates/LoginEntrypoint.vala',
  18. 'templates/login-readme.md',
  19. 'templates/register.html',
  20. 'templates/RegisterEntrypoint.vala',
  21. 'templates/user-management.html',
  22. 'templates/UserManagementEntrypoint.vala',
  23. 'templates/gitignore',
  24. 'templates/README.md',
  25. 'templates/MANIFEST.usm',
  26. 'templates/usm-build.sh',
  27. 'templates/usm-install.sh',
  28. 'templates/usmignore',
  29. ),
  30. output: 'Templates.vala',
  31. command: [python3, files('mkconst.py'), '@OUTPUT@', '@INPUT@']
  32. )
  33. executable('spry',
  34. ['spry.vala', 'Generator.vala', 'Keys.vala', 'Deploy.vala', 'Dev.vala', 'CompileCommands.vala', spry_templates],
  35. dependencies: [glib_dep, gobject_dep, gio_dep, json_glib_dep],
  36. install: true
  37. )