meson.build 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # `spry` — the Spry application CLI: scaffolding (`spry new`), add commands,
  2. # static key maintenance (`spry keys`), Docker image generation, and the
  3. # 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/Dockerfile',
  26. 'templates/dockerignore',
  27. ),
  28. output: 'Templates.vala',
  29. command: [python3, files('mkconst.py'), '@OUTPUT@', '@INPUT@']
  30. )
  31. executable('spry',
  32. ['spry.vala', 'Generator.vala', 'Keys.vala', 'Docker.vala', 'Dev.vala', spry_templates],
  33. dependencies: [glib_dep, gobject_dep, gio_dep, json_glib_dep],
  34. install: true
  35. )