display: fixup ion ifdef again
switch back to TARGET_USES_ION (to be more inline with cm and a frameworks change forces it to be defined anyway) Change-Id: Ibc90a8ab0f7ff3477e149ee69489686f94476fec
This commit is contained in:
parent
a91c998940
commit
0f24916293
@ -15,7 +15,10 @@ endif
|
||||
common_libs := liblog libutils libcutils libhardware
|
||||
|
||||
#Common C flags
|
||||
common_flags := -DUSE_ION -DDEBUG_CALC_FPS -Wno-missing-field-initializers
|
||||
common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
|
||||
ifeq ($(TARGET_USES_ION),true)
|
||||
common_flags += -DUSE_ION
|
||||
endif
|
||||
ifeq ($(ARCH_ARM_HAVE_NEON),true)
|
||||
common_flags += -D__ARM_HAVE_NEON
|
||||
endif
|
||||
|
@ -36,12 +36,11 @@ LOCAL_C_INCLUDES := $(common_includes)
|
||||
LOCAL_SHARED_LIBRARIES := $(common_libs) libgenlock
|
||||
LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"memalloc\"
|
||||
LOCAL_SRC_FILES := alloc_controller.cpp
|
||||
ifeq ($(TARGET_USES_PMEM),true)
|
||||
ifeq ($(TARGET_USES_ION),true)
|
||||
LOCAL_SRC_FILES += ionalloc.cpp
|
||||
else
|
||||
LOCAL_SRC_FILES += pmemalloc.cpp \
|
||||
ashmemalloc.cpp \
|
||||
pmem_bestfit_alloc.cpp
|
||||
else
|
||||
LOCAL_CFLAGS += -DUSE_ION
|
||||
LOCAL_SRC_FILES += ionalloc.cpp
|
||||
endif
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
Loading…
Reference in New Issue
Block a user