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