meson,i965: Link with android deps when building for android.

The DBG marco in brw_blorp.c ends up calling an android log function:

error: undefined reference to '__android_log_print'

v2: On suggestion from Lionel, hang the Android dependency onto a new
    libintel_common dependency.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
Bas Nieuwenhuizen
2019-07-26 13:49:59 +02:00
parent da9e2958ec
commit 5a26f528cb
4 changed files with 20 additions and 9 deletions
+10
View File
@@ -45,6 +45,16 @@ libintel_common = static_library(
dependencies : [dep_expat, dep_libdrm, dep_thread, idep_genxml],
)
libintel_extra_dependencies = []
if with_platform_android
libintel_extra_dependencies += dep_android
endif
idep_libintel_common = declare_dependency(
link_with: [libintel_common],
dependencies: [libintel_extra_dependencies],
)
install_intel_gpu_tests = get_option('install-intel-gpu-tests')
if install_intel_gpu_tests