meson.build 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. project('SPIRV-Tools', 'cpp',
  2. version : '2020.2',
  3. meson_version : '>=0.48.0',
  4. default_options : [
  5. 'cpp_std=gnu++11',
  6. ]
  7. )
  8. native_options = [
  9. 'b_lto=false',
  10. 'b_ndebug=true',
  11. 'b_sanitize=none',
  12. 'debug=false',
  13. 'optimization=0',
  14. ]
  15. spvhdr_proj = subproject('SPIRV-Headers')
  16. spvhdr_dep = spvhdr_proj.get_variable('spirv_headers_dep')
  17. spvhdr_incpath = spvhdr_proj.get_variable('spirv_include_path')
  18. file_spir_v_xml = spvhdr_proj.get_variable('file_spir_v_xml')
  19. file_unified1_extinst_debuginfo_grammar_json = spvhdr_proj.get_variable('file_unified1_extinst_debuginfo_grammar_json')
  20. file_unified1_extinst_glsl_std_450_grammar_json = spvhdr_proj.get_variable('file_unified1_extinst_glsl_std_450_grammar_json')
  21. file_unified1_extinst_opencl_debuginfo_100_grammar_json = spvhdr_proj.get_variable('file_unified1_extinst_opencl_debuginfo_100_grammar_json')
  22. file_unified1_extinst_opencl_std_100_grammar_json = spvhdr_proj.get_variable('file_unified1_extinst_opencl_std_100_grammar_json')
  23. file_unified1_extinst_spv_amd_gcn_shader_grammar_json = spvhdr_proj.get_variable('file_unified1_extinst_spv_amd_gcn_shader_grammar_json')
  24. file_unified1_extinst_spv_amd_shader_ballot_grammar_json = spvhdr_proj.get_variable('file_unified1_extinst_spv_amd_shader_ballot_grammar_json')
  25. file_unified1_extinst_spv_amd_shader_explicit_vertex_parameter_grammar_json = spvhdr_proj.get_variable('file_unified1_extinst_spv_amd_shader_explicit_vertex_parameter_grammar_json')
  26. file_unified1_extinst_spv_amd_shader_trinary_minmax_grammar_json = spvhdr_proj.get_variable('file_unified1_extinst_spv_amd_shader_trinary_minmax_grammar_json')
  27. file_unified1_spirv_core_grammar_json = spvhdr_proj.get_variable('file_unified1_spirv_core_grammar_json')
  28. cxx = meson.get_compiler('cpp')
  29. add_project_arguments(cxx.get_supported_arguments(
  30. '-fno-exceptions',
  31. '-fno-rtti',
  32. ), language : 'cpp')
  33. project_root = meson.current_source_dir()
  34. private_incdir = include_directories('.', 'source')
  35. public_incdir = include_directories('include')
  36. subdir('utils')
  37. subdir('source')