diff options
author | Gert Wollny <gert.wollny@collabora.com> | 2019-12-23 16:48:52 +0100 |
---|---|---|
committer | Gert Wollny <gert.wollny@collabora.com> | 2019-12-27 10:00:56 +0100 |
commit | 1e581b6b49d5ba46e9dae8f271f6d585d89c9411 (patch) | |
tree | 90505e78d8c88224b8a34e88785f4fe45b2d8687 /tests | |
parent | 1686cf92a7c67b12ed90519e5cf6428eff4d9026 (diff) |
meson: set visibility flag when compiler supports it
Since vtest_server and the tests make use of private interfaces we must
mirror the autotoosl build that keeps the private interfaces in a static
library so that these functions can be called by the test code. The main
library that get installed then uses this static library and adds the
exported interface.
Closes #152
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fuzzer/meson.build | 2 | ||||
-rw-r--r-- | tests/meson.build | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/fuzzer/meson.build b/tests/fuzzer/meson.build index 6c8f2df..96c8792 100644 --- a/tests/fuzzer/meson.build +++ b/tests/fuzzer/meson.build @@ -29,5 +29,5 @@ virgl_fuzzer = executable( 'virgl_fuzzer.c', c_args : [ '-fsanitize=address', '-fsanitize=fuzzer' ], link_args : [ '-fsanitize=address', '-fsanitize=fuzzer' ], - dependencies : [libvirglrenderer_dep, epoxy_dep] + dependencies : [libvirgl_dep, gallium_dep, epoxy_dep] ) diff --git a/tests/meson.build b/tests/meson.build index 7a25562..66b1157 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -30,11 +30,11 @@ libvrtest_sources = [ 'testvirgl_encode.h', ] -libvrtest = library( +libvrtest = static_library( 'vrtest', libvrtest_sources, dependencies : [ - libvirglrenderer_dep, + libvirgl_dep, gallium_dep, check_dep ] |