1LOCAL_PATH := $(call my-dir) 2 3ifdef HISTORICAL_NDK_VERSIONS_ROOT 4# This is included by the platform build system. 5include $(CLEAR_VARS) 6LOCAL_MODULE := cpufeatures 7LOCAL_SRC_FILES := cpu-features.c 8LOCAL_SDK_VERSION := 9 9LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) 10include $(BUILD_STATIC_LIBRARY) 11 12else # NDK build system 13 14ifneq ($(strip $(filter-out $(NDK_KNOWN_ARCHS),$(TARGET_ARCH))),) 15 16include $(CLEAR_VARS) 17LOCAL_MODULE := cpufeatures 18LOCAL_SRC_FILES := $(NDK_ROOT)/sources/android/libportable/libs/$(TARGET_ARCH_ABI)/libportable.a 19LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) 20include $(PREBUILT_STATIC_LIBRARY) 21 22else # NDK_KNOWN_ARCHS 23 24include $(CLEAR_VARS) 25LOCAL_MODULE := cpufeatures 26LOCAL_SRC_FILES := cpu-features.c 27LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) 28include $(BUILD_STATIC_LIBRARY) 29endif # NDK_KNOWN_ARCHS 30 31endif # HISTORICAL_NDK_VERSIONS_ROOT 32