summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2019-02-26 10:27:15 +0200
committerTapani Pälli <[email protected]>2019-02-27 08:56:46 +0200
commit5e52184f722b70c024bec6dc0872cbf6553a1d82 (patch)
tree889f84d02eec372116715aa5947d971f19757611 /src/gallium/auxiliary
parenta3c366c4b22993731b5d39a8387f30a09de10e38 (diff)
android: make libbacktrace optional on USE_LIBBACKTRACE
Otherwise with VNDK enabled we fail linking: src/gallium/targets/dri/Android.mk: error: gallium_dri (native:vendor) should not link to libbacktrace.vendor (native:vndk_private) Option makes it possible to use libbacktrace only when VNDK is not enabled. Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/Android.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/Android.mk b/src/gallium/auxiliary/Android.mk
index 7618c6fcd93..fe976501451 100644
--- a/src/gallium/auxiliary/Android.mk
+++ b/src/gallium/auxiliary/Android.mk
@@ -32,8 +32,11 @@ LOCAL_SRC_FILES := \
$(C_SOURCES) \
$(NIR_SOURCES) \
$(RENDERONLY_SOURCES) \
- $(VL_STUB_SOURCES) \
- util/u_debug_stack_android.cpp
+ $(VL_STUB_SOURCES)
+
+ifeq ($(USE_LIBBACKTRACE),true)
+ LOCAL_SRC_FILES += util/u_debug_stack_android.cpp
+endif
LOCAL_C_INCLUDES := \
$(GALLIUM_TOP)/auxiliary/util \