Skip to content

Commit cd76e78

Browse files
committed
Upload bare-bone effect library
1 parent e120d09 commit cd76e78

File tree

6 files changed

+1471
-0
lines changed

6 files changed

+1471
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ndk-build.cmd all

Tutorials/Android_Clean.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ndk-build.cmd clean

Tutorials/jni/Android.mk

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
LOCAL_PATH := $(call my-dir)
2+
include $(CLEAR_VARS)
3+
LOCAL_MODULE := libjamesdsp
4+
LOCAL_PRELINK_MODULE := false
5+
LOCAL_SRC_FILES := \
6+
../src/jamesdsp.c \
7+
# terminator
8+
LOCAL_LDLIBS := -llog
9+
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
10+
LOCAL_CPPFLAGS += -Wall -Wextra -ffunction-sections -fdata-sections -Ofast -march=armv7-a -mfpu=neon -ftree-vectorize -fvisibility=hidden# -DDEBUG# -DNDEBUG
11+
LOCAL_CFLAGS += -Wall -Wextra -ffunction-sections -fdata-sections -Ofast -march=armv7-a -mfpu=neon -ftree-vectorize -fvisibility=hidden# -DDEBUG# -DNDEBUG
12+
else ifeq ($(TARGET_ARCH_ABI), arm64-v8a)
13+
LOCAL_CPPFLAGS += -Wall -Wextra -ffunction-sections -fdata-sections -Ofast -march=armv8-a -mfpu=neon -ftree-vectorize -fvisibility=hidden# -DDEBUG# -DNDEBUG
14+
LOCAL_CFLAGS += -Wall -Wextra -ffunction-sections -fdata-sections -Ofast -march=armv8-a -mfpu=neon -ftree-vectorize -fvisibility=hidden# -DDEBUG# -DNDEBUG
15+
else ifeq ($(TARGET_ARCH_ABI), x86)
16+
LOCAL_CPPFLAGS += -ffunction-sections -fdata-sections -Ofast -ftree-vectorize -DNDEBUG -fvisibility=hidden# -DDEBUG
17+
LOCAL_CFLAGS += -ffunction-sections -fdata-sections -Ofast -ftree-vectorize -DNDEBUG -fvisibility=hidden# -DDEBUG
18+
else ifeq ($(TARGET_ARCH_ABI), armeabi)
19+
LOCAL_CPPFLAGS += -ffunction-sections -fdata-sections -Ofast -ftree-vectorize -DNDEBUG -fvisibility=hidden
20+
LOCAL_CFLAGS += -ffunction-sections -fdata-sections -Ofast -ftree-vectorize -DNDEBUG -fvisibility=hidden
21+
endif
22+
LOCAL_LDFLAGS += -nodefaultlibs -Wl,--gc-sections,--exclude-libs,ALL
23+
include $(BUILD_SHARED_LIBRARY)

Tutorials/jni/Application.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
APP_OPTIM := release
2+
APP_ABI := armeabi-v7a arm64-v8a x86

0 commit comments

Comments
 (0)