mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
amd/common: Check with_tests before adding test
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7819>
This commit is contained in:
parent
40ede41035
commit
b3504f4173
1 changed files with 14 additions and 12 deletions
|
|
@ -98,16 +98,18 @@ libamd_common = static_library(
|
|||
idep_amdgfxregs_h = declare_dependency(sources : [amdgfxregs_h])
|
||||
|
||||
|
||||
test(
|
||||
'ac_surface_modifier_test',
|
||||
executable(
|
||||
if with_tests
|
||||
test(
|
||||
'ac_surface_modifier_test',
|
||||
['ac_surface_modifier_test.c'],
|
||||
link_with: [libamd_common, libamdgpu_addrlib],
|
||||
include_directories : [
|
||||
inc_amd, inc_gallium, inc_include, inc_src,
|
||||
],
|
||||
dependencies: [idep_amdgfxregs_h, dep_libdrm_amdgpu, idep_mesautil],
|
||||
),
|
||||
suite: ['amd']
|
||||
)
|
||||
executable(
|
||||
'ac_surface_modifier_test',
|
||||
['ac_surface_modifier_test.c'],
|
||||
link_with: [libamd_common, libamdgpu_addrlib],
|
||||
include_directories : [
|
||||
inc_amd, inc_gallium, inc_include, inc_src,
|
||||
],
|
||||
dependencies: [idep_amdgfxregs_h, dep_libdrm_amdgpu, idep_mesautil],
|
||||
),
|
||||
suite: ['amd']
|
||||
)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue