Skip to content

Commit

Permalink
Update submodule, miniglog
Browse files Browse the repository at this point in the history
  • Loading branch information
tzutalin committed Jul 15, 2016
1 parent 63a46e4 commit 78f2757
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
he MIT License (MIT)

Copyright (c) 2015 TzuTaLin
Copyright (c) 2015-2016 TzuTaLin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ EXT_INSTALL_PATH = $(TOP_LEVEL_PATH)/third_party
OPENCV_PATH = $(EXT_INSTALL_PATH)/opencv/jni
OPENCV_INCLUDE_DIR = $(OPENCV_PATH)/include

MINI_GLOG_PATH = $(EXT_INSTALL_PATH)/miniglog
MINI_GLOG_INCLUDE_DIR = $(MINI_GLOG_PATH)

### Test daemon
#==========================svm_ex===================================
include $(CLEAR_VARS)
Expand Down Expand Up @@ -64,5 +61,8 @@ LOCAL_LDFLAGS += -pie -fPIE
include $(BUILD_EXECUTABLE)
#============================svr_ex================================

MINIGLOG_LIB_TYPE := STATIC
MINI_GLOG_PATH = $(EXT_INSTALL_PATH)/miniglog
include $(MINI_GLOG_PATH)/Android.mk

include $(SUB_MK_FILES)
15 changes: 10 additions & 5 deletions jni/jnilib_ex/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,12 @@ OPENCV_CAMERA_MODULES := off
OPENCV_LIB_TYPE := STATIC
include $(OPENCV_PATH)/OpenCV.mk

# import dlib
LOCAL_STATIC_LIBRARIES += dlib

LOCAL_MODULE := people_det

LOCAL_C_INCLUDES += \
$(MINI_GLOG_INCLUDE_DIR) \
$(OPENCV_INCLUDE_DIR)

LOCAL_SRC_FILES += \
$(MINI_GLOG_PATH)/glog/logging.cc \
jni_people_det.cpp \
imageutils_jni.cpp \
common/rgb2yuv.cpp \
Expand All @@ -26,6 +21,16 @@ LOCAL_SRC_FILES += \
LOCAL_LDLIBS += -lm -llog -ldl -lz -ljnigraphics
LOCAL_CPPFLAGS += -fexceptions -frtti -std=c++11

# import dlib
LOCAL_STATIC_LIBRARIES += dlib

### import miniglog
ifeq ($(MINIGLOG_LIB_TYPE),SHARED)
LOCAL_SHARED_LIBRARIES += miniglog
else
LOCAL_STATIC_LIBRARIES += miniglog
endif

ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_ARM_MODE := arm
LOCAL_ARM_NEON := true
Expand Down
4 changes: 2 additions & 2 deletions jni/other_daemon_ex/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ LOCAL_SRC_FILES := face_landmark_detection_ex.cpp
LOCAL_LDLIBS := -lm -llog -ldl -lz
LOCAL_CPPFLAGS += -fexceptions -frtti -std=c++11

LOCAL_ARM_MODE := arm
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_ARM_NEON := true
LOCAL_ARM_MODE := arm
LOCAL_ARM_NEON := true
endif

LOCAL_CFLAGS += -pie -fPIE
Expand Down
2 changes: 1 addition & 1 deletion third_party/miniglog

0 comments on commit 78f2757

Please sign in to comment.