meson.build 1.3 KB

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