~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/compiler/meson.build

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
  build_by_default : false,
55
55
)
56
56
 
 
57
subdir('nir')
 
58
 
57
59
subdir('spirv')
58
60
 
59
 
subdir('nir')
60
 
 
61
 
# These are here because putting it in spirv/meson.build would create a circular
62
 
# dependency with nir/meson.build.
63
 
spirv2nir = executable(
64
 
  'spirv2nir',
65
 
  files('spirv/spirv2nir.c'),
66
 
  dependencies : [dep_m, idep_nir, idep_mesautil],
67
 
  include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, include_directories('spirv')],
68
 
  c_args : [c_msvc_compat_args, no_override_init_args],
69
 
  gnu_symbol_visibility : 'hidden',
70
 
  build_by_default : with_tools.contains('nir'),
71
 
  install : with_tools.contains('nir'),
72
 
)
73
 
 
74
 
if with_tests
75
 
  test(
76
 
    'spirv_tests',
77
 
    executable(
78
 
      'spirv_tests',
79
 
      files(
80
 
        'spirv/tests/helpers.h',
81
 
        'spirv/tests/avail_vis.cpp',
82
 
        'spirv/tests/volatile.cpp',
83
 
        'spirv/tests/control_flow_tests.cpp',
84
 
      ),
85
 
      c_args : [c_msvc_compat_args, no_override_init_args],
86
 
      gnu_symbol_visibility : 'hidden',
87
 
      include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
88
 
      dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
89
 
    ),
90
 
    suite : ['compiler', 'spirv'],
91
 
    protocol : 'gtest',
92
 
  )
93
 
endif
94
 
 
95
61
if with_clc
96
62
  subdir('clc')
97
63
endif