Skip to content

Commit

Permalink
Add Android.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
xm-cqc committed Jun 5, 2017
1 parent 321f032 commit 5932a8c
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
35 changes: 35 additions & 0 deletions FaceIdentification/examples/android/jni/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := FaceIdentification

DIRS = src tools

LOCAL_SRC_FILES := FaceIdentification/src/blob.cpp \
FaceIdentification/src/common_net.cpp \
FaceIdentification/src/bias_adder_net.cpp \
FaceIdentification/src/bn_net.cpp \
FaceIdentification/src/conv_net.cpp \
FaceIdentification/src/eltwise_net.cpp \
FaceIdentification/src/inner_product_net.cpp \
FaceIdentification/src/max_pooling_net.cpp \
FaceIdentification/src/pad_net.cpp \
FaceIdentification/src/spatial_transform_net.cpp \
FaceIdentification/src/tform_maker_net.cpp \
FaceIdentification/src/net.cpp \
FaceIdentification/src/math_functions.cpp \
FaceIdentification/src/log.cpp \
FaceIdentification/tools/aligner.cpp \
FaceIdentification/tools/face_identification.cpp

LOCAL_C_INCLUDES := $(LOCAL_PATH)/FaceIdentification/include \
$(LOCAL_PATH)/FaceIdentification/src \
$(LOCAL_PATH)/FaceIdentification/tools

LOCAL_CFLAGS := -mfloat-abi=softfp -mfpu=neon-vfpv4 -march=armv7-a
LOCAL_ARM_NEON := true
TARGET_ARCH_ABI := armeabi-v7a
LOCAL_ARM_MODE := arm

include $(BUILD_STATIC_LIBRARY)
7 changes: 7 additions & 0 deletions FaceIdentification/examples/android/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
APP_MODULES := FaceIdentification
APP_PLATFORM := android-9
APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -fexceptions -std=c++11 -O2
APP_ABI := armeabi-v7a

#APP_CPPFLAGS += -D__VIPL_LOG__
1 change: 1 addition & 0 deletions FaceIdentification/examples/android/jni/FaceIdentification

1 comment on commit 5932a8c

@xm-cqc
Copy link
Author

@xm-cqc xm-cqc commented on 5932a8c Jun 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add Android.mk

Please sign in to comment.