meson.build 746 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. project('ninja special characters' ,'c')
  2. python = import('python3').find_python()
  3. # Without newlines, this should appear directly in build.ninja.
  4. gen = custom_target('gen',
  5. command : [
  6. python,
  7. files('check_quoting.py'),
  8. 'dollar=$',
  9. 'colon=:',
  10. 'space= ',
  11. '''multi1= ::$$ ::$$''',
  12. '@OUTPUT@'],
  13. output : 'result',
  14. install : true,
  15. install_dir : get_option('datadir'))
  16. # With newlines, this should go through the exe wrapper.
  17. gen2 = custom_target('gen2',
  18. command : [
  19. python,
  20. files('check_quoting.py'),
  21. '''newline=
  22. ''',
  23. 'dollar=$',
  24. 'colon=:',
  25. 'space= ',
  26. '''multi2= ::$$
  27. ::$$''',
  28. '@OUTPUT@'],
  29. output : 'result2',
  30. install : true,
  31. install_dir : get_option('datadir'))