summaryrefslogtreecommitdiffstats
path: root/src/gallium/Android.common.mk
diff options
context:
space:
mode:
authorChih-Wei Huang <cwhuang@android-x86.org>2015-05-20 11:25:34 +0800
committerEric Anholt <eric@anholt.net>2015-06-09 12:25:50 -0700
commit1842832660c4eade037caa760110b58a2d7f055b (patch)
treef02b83a444a09087c616ec32cc9d6f3dfb292367 /src/gallium/Android.common.mk
parent1e4081f54aa5c6cba566ed549389d847bf7e6799 (diff)
downloadexternal_mesa3d-1842832660c4eade037caa760110b58a2d7f055b.zip
external_mesa3d-1842832660c4eade037caa760110b58a2d7f055b.tar.gz
external_mesa3d-1842832660c4eade037caa760110b58a2d7f055b.tar.bz2
android: enable the radeonsi driver
Based on the nice work of Paulo Sergio Travaglia <pstglia@gmail.com>. The main modifications are: - Include paths for LLVM header files and shared/static libraries - Set C++ flag "c++11" to avoid compiling errors on LLVM header files - Set defines for LLVM - Add GALLIVM source files - Changes path of libelf library for lollipop Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw> Acked-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/gallium/Android.common.mk')
-rw-r--r--src/gallium/Android.common.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/Android.common.mk b/src/gallium/Android.common.mk
index 782510f..7c6c7ac 100644
--- a/src/gallium/Android.common.mk
+++ b/src/gallium/Android.common.mk
@@ -29,4 +29,12 @@ LOCAL_C_INCLUDES += \
$(GALLIUM_TOP)/winsys \
$(GALLIUM_TOP)/drivers
+ifeq ($(MESA_ENABLE_LLVM),true)
+LOCAL_C_INCLUDES += \
+ external/llvm/include \
+ external/llvm/device/include \
+ external/libcxx/include \
+ external/elfutils/$(if $(filter true,$(MESA_LOLLIPOP_BUILD)),0.153/)libelf
+endif
+
include $(MESA_COMMON_MK)