From a99bab12713b67a3f9281b2945df53e7b23c830f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 25 Jan 2019 12:24:47 +0100 Subject: build: meson: enables va messaging and visibility This patch syncs with the defined compiler flags in autotools: the enable of VA messaging and the compiler's support to visibility attribute. Fixes: #275 --- meson.build | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 1407354..b3270dd 100644 --- a/meson.build +++ b/meson.build @@ -108,6 +108,15 @@ if get_option('with_wayland') != 'no' WITH_WAYLAND = wayland_dep.found() endif +va_c_args = [] +if get_option('enable_va_messaging') + va_c_args += ['-DENABLE_VA_MESSAGING=1'] +endif + +# Symbol visibility +if cc.has_argument('-fvisibility=hidden') + va_c_args += ['-DHAVE_GNUC_VISIBILITY_ATTRIBUTE'] +endif if (not WITH_DRM and not WITH_X11 and not WITH_WAYLAND) error('Please install at least one backend dev files (DRM, X11, Wayland)') -- cgit v1.2.1