xref: /aosp_15_r20/external/mesa3d/src/gallium/drivers/r600/sfn/tests/meson.build (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1
2r600_test_lib = static_library('r600_test', 'sfn_test_shaders.cpp',
3   cpp_args: r600_cpp_args,
4   include_directories : [ inc_src, inc_mapi, inc_mesa, inc_include,
5                           inc_gallium, inc_gallium_aux, inc_amd_common,
6                           inc_gallium_drivers, ],
7   dependencies : [idep_gtest, dep_thread, dep_llvm, idep_nir,
8                     idep_nir_headers, idep_mesautil],
9
10)
11
12r600_test_dep = declare_dependency(
13    include_directories : [ inc_src, inc_mapi, inc_mesa, inc_include,
14                            inc_gallium, inc_gallium_aux, inc_amd_common,
15                            inc_gallium_drivers, ],
16    link_with : [ libr600, libmesa, libgalliumvl,  libgallium, libradeonwinsys, r600_test_lib],
17    dependencies : [idep_gtest, dep_thread, dep_llvm, idep_nir,
18                    idep_nir_headers, idep_mesautil]
19)
20
21
22
23if with_tests
24   foreach t : ['valuefactory', 'value', 'instr', 'instrfromstring', 'liverange',
25                'optimizer', 'shaderfromstring', 'split_address_loads' ]
26   test(
27       t,
28       executable('test-@0@-r600-sfn'.format(t),
29                  ['sfn_@0@_test.cpp'.format(t)],
30                  dependencies : [r600_test_dep, idep_mesautil],
31                  ),
32       suite : ['r600']
33    )
34    endforeach
35endif
36