summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorJesse Natalie <jenatali@microsoft.com>2021-11-18 14:51:05 -0800
committerMarge Bot <emma+marge@anholt.net>2021-11-19 21:21:35 +0000
commit9e82a56745c3422c6afa6406a2afc658244da365 (patch)
treeebf85bc31d6a77f04af25dbd0ef2d1efd4b44745 /android
parent81cc94b8f0ff05649b85a681c1a2bf6b9f932315 (diff)
downloadmesa-9e82a56745c3422c6afa6406a2afc658244da365.tar.gz
mesa-9e82a56745c3422c6afa6406a2afc658244da365.tar.bz2
mesa-9e82a56745c3422c6afa6406a2afc658244da365.zip
android: Add a BOARD CFlags option so build can be customized
Reviewed-by: Roman Stratiienko <r.stratiienko@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13532>
Diffstat (limited to 'android')
-rw-r--r--android/Android.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/Android.mk b/android/Android.mk
index e4e1d3aa563..4cc400f2883 100644
--- a/android/Android.mk
+++ b/android/Android.mk
@@ -42,6 +42,7 @@ LOCAL_SHARED_LIBRARIES := libc libdl libdrm libm liblog libcutils libz libc++ li
LOCAL_STATIC_LIBRARIES := libexpat libarect libelf
LOCAL_HEADER_LIBRARIES := libnativebase_headers hwvulkan_headers libbacktrace_headers
MESON_GEN_PKGCONFIGS := backtrace cutils expat hardware libdrm:$(LIBDRM_VERSION) nativewindow sync zlib:1.2.11 libelf
+LOCAL_CFLAGS += $(BOARD_MESA3D_CFLAGS)
ifneq ($(filter swr swrast,$(BOARD_MESA3D_GALLIUM_DRIVERS) $(BOARD_MESA3D_VULKAN_DRIVERS)),)
MESON_GEN_LLVM_STUB := true