diff options
author | Gurchetan Singh <[email protected]> | 2019-03-15 10:08:45 -0700 |
---|---|---|
committer | Gurchetan Singh <[email protected]> | 2019-03-21 15:36:39 -0700 |
commit | b07086104533060b833f5d70200dae3c0da6ff7d (patch) | |
tree | 3e1309daa8fac86ab2a264f478aef8c4de3e5e2d /configure.ac | |
parent | bfed0a7099c2205859f85077976ca143c3c1e840 (diff) |
configure.ac / meson: depend on libnativewindow when appropriate
libnativewindow is only available on O or greater, and it's
required for some features.
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 073ffc508d5..78d5967a437 100644 --- a/configure.ac +++ b/configure.ac @@ -1574,6 +1574,12 @@ if test "x$enable_libglvnd" = xyes -a "x$EGL_LIB_SUFFIX" != x; then AC_MSG_ERROR([EGL lib suffix can't be used with libglvnd]) fi +AC_ARG_WITH([platform-sdk-version], + [AS_HELP_STRING([--with-platform-sdk-version@<:@=NAME@:>@], + [specify Android platform SDK version @<:@default=none@:>@])], + [platform_sdk_version=$withval], + [platform_sdk_version=""]) + dnl dnl Mangled Mesa support dnl @@ -1908,7 +1914,12 @@ for plat in $platforms; do ;; android) - PKG_CHECK_MODULES([ANDROID], [cutils hardware sync]) + if test -n "$platform_sdk_version" && test "$platform_sdk_version" -ge 26; then + PKG_CHECK_MODULES([ANDROID], [cutils hardware nativewindow sync]) + else + PKG_CHECK_MODULES([ANDROID], [cutils hardware sync]) + fi + if test -n "$with_gallium_drivers"; then PKG_CHECK_MODULES([BACKTRACE], [backtrace]) fi |