tests/meson: Add dependencies for the dummy vendor libraries.
Added a depends parameter to the GLX and EGL unit tests to ensure that meson builds the dummy vendor libraries before trying to run the tests.
This commit is contained in:
parent
0f0d49f0f3
commit
1bb30a62f4
|
@ -44,9 +44,11 @@ if with_glx
|
|||
)
|
||||
endif
|
||||
|
||||
libEGL_dummy = []
|
||||
|
||||
if get_option('egl')
|
||||
foreach v : ['0', '1']
|
||||
shared_library(
|
||||
libEGL_dummy += shared_library(
|
||||
'EGL_dummy' + v,
|
||||
['EGL_dummy.c'],
|
||||
c_args : ['-DDUMMY_VENDOR_NAME="dummy@0@"'.format(v)],
|
||||
|
|
|
@ -83,6 +83,7 @@ if with_glx
|
|||
),
|
||||
env : env_glx,
|
||||
suite : ['glx'],
|
||||
depends : [libGLX_dummy],
|
||||
)
|
||||
|
||||
exe_glxmakecurrent = executable(
|
||||
|
@ -106,6 +107,7 @@ if with_glx
|
|||
args : t[1],
|
||||
env : t[2],
|
||||
suite : ['glx'],
|
||||
depends : [libGLX_dummy],
|
||||
)
|
||||
endforeach
|
||||
|
||||
|
@ -123,6 +125,7 @@ if with_glx
|
|||
args : ['-t', '1', '-i', '1'],
|
||||
env : env_glx,
|
||||
suite : ['glx'],
|
||||
depends : [libGLX_dummy],
|
||||
)
|
||||
|
||||
exe_glxgetprocaddress = executable(
|
||||
|
@ -137,6 +140,7 @@ if with_glx
|
|||
exe_glxgetprocaddress,
|
||||
env : env_glx,
|
||||
suite : ['glx'],
|
||||
depends : [libGLX_dummy],
|
||||
)
|
||||
|
||||
test(
|
||||
|
@ -144,6 +148,7 @@ if with_glx
|
|||
exe_glxgetprocaddress,
|
||||
env : env_glx,
|
||||
suite : ['glx'],
|
||||
depends : [libGLX_dummy],
|
||||
)
|
||||
|
||||
test(
|
||||
|
@ -156,6 +161,7 @@ if with_glx
|
|||
),
|
||||
env : env_glx,
|
||||
suite : ['glx'],
|
||||
depends : [libGLX_dummy],
|
||||
)
|
||||
|
||||
test(
|
||||
|
@ -169,6 +175,7 @@ if with_glx
|
|||
),
|
||||
env : env_glx,
|
||||
suite : ['glx'],
|
||||
depends : [libGLX_dummy],
|
||||
)
|
||||
|
||||
test(
|
||||
|
@ -182,6 +189,7 @@ if with_glx
|
|||
),
|
||||
env : env_glx,
|
||||
suite : ['glx'],
|
||||
depends : [libGLX_dummy],
|
||||
)
|
||||
endif
|
||||
|
||||
|
@ -208,6 +216,7 @@ if get_option('egl')
|
|||
),
|
||||
env : env_egl,
|
||||
suite : ['egl'],
|
||||
depends : libEGL_dummy,
|
||||
)
|
||||
endforeach
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue