meson.build 892 B

1234567891011121314151617181920
  1. # Configure in subdir with absolute paths for input and relative for output
  2. configure_file(input : '../dummy.dat',
  3. output : 'config2-1.h',
  4. command : [genprog, scriptfile, ifile, 'config2-1.h'],
  5. install_dir : 'share/appdireh')
  6. run_command(check_file, join_paths(meson.current_build_dir(), 'config2-1.h'))
  7. # Configure in subdir with files() for input and relative for output
  8. configure_file(input : '../dummy.dat',
  9. output : 'config2-2.h',
  10. command : [genprog, scriptfile, files('../dummy.dat'), 'config2-2.h'],
  11. install_dir : 'share/appdirok')
  12. run_command(check_file, join_paths(meson.current_build_dir(), 'config2-2.h'))
  13. # Configure in subdir with string templates for input and output
  14. configure_file(input : '../dummy.dat',
  15. output : 'config2-3.h',
  16. command : [found_script, '@INPUT@', '@OUTPUT@'])
  17. run_command(check_file, join_paths(meson.current_build_dir(), 'config2-3.h'))