meson.build 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. # Statum end-to-end example app.
  2. #
  3. # A small but complete browser-driven Statum application: a server-rendered,
  4. # client-hydrated home page with login/logout actions. The Statum client
  5. # scripts are embedded in libstatum and served by default, so this only
  6. # generates the page (home.html + main.html template) and the page CSS.
  7. home_page = custom_target('home-page',
  8. input: 'home.html',
  9. output: 'HomePage.vala',
  10. command: [statum_mkpstm, '-o', '@OUTPUT@', '-n', 'HomePage', '--ns=Example', '@INPUT@'],
  11. depend_files: files('main.html', 'counter-card.html')
  12. )
  13. dashboard_page = custom_target('dashboard-page',
  14. input: 'dashboard.html',
  15. output: 'DashboardPage.vala',
  16. command: [statum_mkpstm, '-o', '@OUTPUT@', '-n', 'DashboardPage', '--ns=Example', '@INPUT@'],
  17. depend_files: files('main.html')
  18. )
  19. styles_resource = custom_target('styles-resource',
  20. input: 'styles.css',
  21. output: 'StylesResource.vala',
  22. command: [statum_mkres, '-o', '@OUTPUT@', '-n', 'styles.css', '-c', 'text/css', '@INPUT@']
  23. )
  24. executable('statum-example',
  25. ['Main.vala', 'HomeEntrypoint.vala', 'Actions.vala', home_page, dashboard_page, styles_resource],
  26. dependencies: [statum_dep],
  27. install: false
  28. )