meson.build 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. project('SPIRV-Tools', 'cpp',
  2. version : '2019.4.136',
  3. meson_version : '>=0.48.0',
  4. default_options : [
  5. 'cpp_std=gnu++11',
  6. ]
  7. )
  8. spvhdr_proj = subproject('SPIRV-Headers')
  9. spvhdr_dep = spvhdr_proj.get_variable('spirv_headers_dep')
  10. spvhdr_incpath = spvhdr_proj.get_variable('spirv_include_path')
  11. file_spir_v_xml = spvhdr_proj.get_variable('file_spir_v_xml')
  12. file_unified1_spirv_core_grammar_json = spvhdr_proj.get_variable('file_unified1_spirv_core_grammar_json')
  13. file_unified1_extinst_glsl_std_450_grammar_json = spvhdr_proj.get_variable('file_unified1_extinst_glsl_std_450_grammar_json')
  14. file_unified1_extinst_opencl_std_100_grammar_json = spvhdr_proj.get_variable('file_unified1_extinst_opencl_std_100_grammar_json')
  15. cxx = meson.get_compiler('cpp')
  16. add_project_arguments(cxx.get_supported_arguments(
  17. '-fno-exceptions',
  18. '-fno-rtti',
  19. ), language : 'cpp')
  20. project_root = meson.current_source_dir()
  21. private_incdir = include_directories('.', 'source')
  22. public_incdir = include_directories('include')
  23. subdir('utils')
  24. subdir('source')