Skip to content

Commit

Permalink
Upload bare-bone effect library
Browse files Browse the repository at this point in the history
  • Loading branch information
james34602 committed Jan 11, 2020
1 parent e120d09 commit cd76e78
Show file tree
Hide file tree
Showing 6 changed files with 1,471 additions and 0 deletions.
1 change: 1 addition & 0 deletions Tutorials/Android_Build_Release.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ndk-build.cmd all
1 change: 1 addition & 0 deletions Tutorials/Android_Clean.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ndk-build.cmd clean
23 changes: 23 additions & 0 deletions Tutorials/jni/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libjamesdsp
LOCAL_PRELINK_MODULE := false
LOCAL_SRC_FILES := \
../src/jamesdsp.c \
# terminator
LOCAL_LDLIBS := -llog
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_CPPFLAGS += -Wall -Wextra -ffunction-sections -fdata-sections -Ofast -march=armv7-a -mfpu=neon -ftree-vectorize -fvisibility=hidden# -DDEBUG# -DNDEBUG
LOCAL_CFLAGS += -Wall -Wextra -ffunction-sections -fdata-sections -Ofast -march=armv7-a -mfpu=neon -ftree-vectorize -fvisibility=hidden# -DDEBUG# -DNDEBUG
else ifeq ($(TARGET_ARCH_ABI), arm64-v8a)
LOCAL_CPPFLAGS += -Wall -Wextra -ffunction-sections -fdata-sections -Ofast -march=armv8-a -mfpu=neon -ftree-vectorize -fvisibility=hidden# -DDEBUG# -DNDEBUG
LOCAL_CFLAGS += -Wall -Wextra -ffunction-sections -fdata-sections -Ofast -march=armv8-a -mfpu=neon -ftree-vectorize -fvisibility=hidden# -DDEBUG# -DNDEBUG
else ifeq ($(TARGET_ARCH_ABI), x86)
LOCAL_CPPFLAGS += -ffunction-sections -fdata-sections -Ofast -ftree-vectorize -DNDEBUG -fvisibility=hidden# -DDEBUG
LOCAL_CFLAGS += -ffunction-sections -fdata-sections -Ofast -ftree-vectorize -DNDEBUG -fvisibility=hidden# -DDEBUG
else ifeq ($(TARGET_ARCH_ABI), armeabi)
LOCAL_CPPFLAGS += -ffunction-sections -fdata-sections -Ofast -ftree-vectorize -DNDEBUG -fvisibility=hidden
LOCAL_CFLAGS += -ffunction-sections -fdata-sections -Ofast -ftree-vectorize -DNDEBUG -fvisibility=hidden
endif
LOCAL_LDFLAGS += -nodefaultlibs -Wl,--gc-sections,--exclude-libs,ALL
include $(BUILD_SHARED_LIBRARY)
2 changes: 2 additions & 0 deletions Tutorials/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
APP_OPTIM := release
APP_ABI := armeabi-v7a arm64-v8a x86
Loading

0 comments on commit cd76e78

Please sign in to comment.