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