Skip to content

Commit

Permalink
Merge pull request pytorch#41 from kamgurgul/master
Browse files Browse the repository at this point in the history
Android NDK 21
  • Loading branch information
Ashkan Aliabadi authored May 17, 2020
2 parents c209221 + d659a1b commit 5e27a64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 3 additions & 7 deletions jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ LOCAL_MODULE := cpuinfo
LOCAL_SRC_FILES := \
src/init.c \
src/api.c \
src/linux/current.c \
src/cache.c \
src/linux/processors.c \
src/linux/smallfile.c \
src/linux/multiline.c \
src/linux/cpulist.c
ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),armeabi armeabi-v7a arm64-v8a))
ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),armeabi-v7a arm64-v8a))
LOCAL_SRC_FILES += \
src/arm/uarch.c \
src/arm/cache.c \
Expand All @@ -21,16 +21,13 @@ LOCAL_SRC_FILES += \
src/arm/linux/midr.c \
src/arm/linux/hwcap.c \
src/arm/android/properties.c
ifeq ($(TARGET_ARCH_ABI),armeabi)
LOCAL_SRC_FILES += src/arm/linux/aarch32-isa.c.arm
endif # armeabi
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_SRC_FILES += src/arm/linux/aarch32-isa.c
endif # armeabi-v7a
ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
LOCAL_SRC_FILES += src/arm/linux/aarch64-isa.c
endif # arm64-v8a
endif # armeabi, armeabi-v7a, or arm64-v8a
endif # armeabi-v7a, or arm64-v8a
ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),x86 x86_64))
LOCAL_SRC_FILES += \
src/x86/init.c \
Expand Down Expand Up @@ -64,7 +61,6 @@ endif
LOCAL_STATIC_LIBRARIES := clog
include $(BUILD_STATIC_LIBRARY)


$(call import-add-path,$(LOCAL_PATH)/deps)

$(call import-module,clog/jni)
4 changes: 2 additions & 2 deletions jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_PLATFORM := android-15
APP_PLATFORM := android-16
APP_PIE := true
APP_STL := c++_static
APP_ABI := armeabi armeabi-v7a arm64-v8a x86 x86_64
APP_ABI := armeabi-v7a arm64-v8a x86 x86_64

0 comments on commit 5e27a64

Please sign in to comment.