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