endif
ifeq ($(MESA_ENABLE_LLVM),true)
-LOCAL_CFLAGS += \
- -DHAVE_LLVM=0x0305 -DMESA_LLVM_VERSION_PATCH=2
+ ifeq ($(MESA_ANDROID_MAJOR_VERSION),5)
+ LOCAL_CFLAGS += -DHAVE_LLVM=0x0305 -DMESA_LLVM_VERSION_PATCH=2
+ ELF_INCLUDES := external/elfutils/0.153/libelf
+ endif
+ ifeq ($(MESA_ANDROID_MAJOR_VERSION),6)
+ LOCAL_CFLAGS += -DHAVE_LLVM=0x0307 -DMESA_LLVM_VERSION_PATCH=0
+ ELF_INCLUDES := external/elfutils/src/libelf
+ endif
+ ifeq ($(MESA_ANDROID_MAJOR_VERSION),7)
+ LOCAL_CFLAGS += -DHAVE_LLVM=0x0308 -DMESA_LLVM_VERSION_PATCH=0
+ ELF_INCLUDES := external/elfutils/libelf
+ endif
endif
ifneq ($(LOCAL_IS_HOST_MODULE),true)
external/llvm/include \
external/llvm/device/include \
external/libcxx/include \
- external/elfutils/$(if $(filter 5,$(MESA_ANDROID_MAJOR_VERSION)),0.153/,$(if $(filter 6,$(MESA_ANDROID_MAJOR_VERSION)),src/))libelf
+ $(ELF_INCLUDES)
LOCAL_STATIC_LIBRARIES := libLLVMCore
external/llvm/include \
external/llvm/device/include \
external/libcxx/include \
- external/elfutils/$(if $(filter true,$(MESA_LOLLIPOP_BUILD)),0.153/)libelf
+ $(ELF_INCLUDES)
endif
include $(MESA_COMMON_MK)