Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ BUILD ] Add 16K shared lib package option for Android #2699

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions jni/Android.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ LOCAL_MODULE := ml-api-inference

LOCAL_SRC_FILES := @MESON_ML_API_COMMON_ROOT@/lib/arm64-v8a/libnnstreamer-native.so
LOCAL_EXPORT_C_INCLUDES := @MESON_ML_API_COMMON_ROOT@/include
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

include $(PREBUILT_SHARED_LIBRARY)

Expand Down Expand Up @@ -65,6 +66,7 @@ LOCAL_CXXFLAGS += -std=c++17 -frtti -fexceptions @ML_API_COMMON@ @MESON_CXX
LOCAL_MODULE_TAGS := optional

LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_STATIC_LIBRARIES += iniparser openblas

Expand All @@ -87,6 +89,7 @@ LOCAL_CXXFLAGS += -std=c++17 -frtti -fexceptions @ML_API_COMMON@ -DVERSION_
LOCAL_MODULE_TAGS := optional

LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SHARED_LIBRARIES += nntrainer

Expand All @@ -105,6 +108,7 @@ LOCAL_CXXFLAGS += -std=c++17 -frtti -fexceptions @ML_API_COMMON@ @MESON_CXX
LOCAL_MODULE_TAGS := optional

LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SHARED_LIBRARIES += ccapi-nntrainer nntrainer ml-api-inference

Expand Down
Loading