When TARGET_ARCH=x86_64, the LOCAL_SRC_FILES will be wrongly set to
codegen.cpp.arm, but the android make will 'smartly' remove the suffix
".arm" and try to compile the codegen.cpp without the libenc dependency.
NO_REF_TASK
Tested: local build
Change-Id: I25df0692886fd8b7c56d467d3b6f674919b09b56
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
-ifeq ($(TARGET_ARCH),x86)
+ifneq ($(filter x86%,$(TARGET_ARCH)),)
LOCAL_SRC_FILES:= \
codegen.cpp
else
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../..
-ifeq ($(TARGET_ARCH),x86)
+ifneq ($(filter x86%,$(TARGET_ARCH)),)
LOCAL_STATIC_LIBRARIES := libenc
endif