diff options
author | Chih-Wei Huang <cwhuang@android-x86.org> | 2015-05-20 11:25:34 +0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2015-06-09 12:25:50 -0700 |
commit | 1842832660c4eade037caa760110b58a2d7f055b (patch) | |
tree | f02b83a444a09087c616ec32cc9d6f3dfb292367 /Android.common.mk | |
parent | 1e4081f54aa5c6cba566ed549389d847bf7e6799 (diff) |
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 'Android.common.mk')
-rw-r--r-- | Android.common.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Android.common.mk b/Android.common.mk index edf52d6fab..43766bf8c5 100644 --- a/Android.common.mk +++ b/Android.common.mk @@ -68,6 +68,14 @@ LOCAL_CFLAGS += \ endif endif +ifeq ($(MESA_ENABLE_LLVM),true) +LOCAL_CFLAGS += \ + -DHAVE_LLVM=0x0305 -DLLVM_VERSION_PATCH=2 \ + -D__STDC_CONSTANT_MACROS \ + -D__STDC_FORMAT_MACROS \ + -D__STDC_LIMIT_MACROS +endif + LOCAL_CPPFLAGS += \ -Wno-error=non-virtual-dtor \ -Wno-non-virtual-dtor |