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 5eef7fb commit dd2df7f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
24 changes: 24 additions & 0 deletions FaceAlignment/examples/android/jni/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := FaceAlignment

DIRS = FaceAlignment/src \
FaceAlignment/src/classifier \
FaceAlignment/src/feat \
FaceAlignment/src/io \
FaceAlignment/src/util \
FaceAlignment/include

INC = $(foreach dir,$(DIRS),$(LOCAL_PATH)/$(dir))
SRC = $(foreach dir,$(DIRS),$(wildcard $(LOCAL_PATH)/$(dir)/*.c))
SRC += $(foreach dir,$(DIRS),$(wildcard $(LOCAL_PATH)/$(dir)/*.cpp))

LOCAL_SRC_FILES := $(SRC:$(LOCAL_PATH)/%=%)

LOCAL_C_INCLUDES := $(INC)

LOCAL_CFLAGS := -Wall

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

1 comment on commit dd2df7f

@xm-cqc
Copy link
Author

@xm-cqc xm-cqc commented on dd2df7f 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 makefile

Please sign in to comment.