mirror of
https://github.com/opencv/opencv.git
synced 2025-01-13 00:01:27 +08:00
save previous values of LOCAL_* variables and restore them at the end(cherry picked from commit 286fe261d0
)
This commit is contained in:
parent
daa7b9ce5f
commit
c10692deff
@ -2,6 +2,13 @@
|
|||||||
# you might need to define NDK_USE_CYGPATH=1 before calling the ndk-build
|
# you might need to define NDK_USE_CYGPATH=1 before calling the ndk-build
|
||||||
|
|
||||||
USER_LOCAL_PATH:=$(LOCAL_PATH)
|
USER_LOCAL_PATH:=$(LOCAL_PATH)
|
||||||
|
|
||||||
|
USER_LOCAL_C_INCLUDES:=$(LOCAL_C_INCLUDES)
|
||||||
|
USER_LOCAL_CFLAGS:=$(LOCAL_CFLAGS)
|
||||||
|
USER_LOCAL_STATIC_LIBRARIES:=$(LOCAL_STATIC_LIBRARIES)
|
||||||
|
USER_LOCAL_SHARED_LIBRARIES:=$(LOCAL_SHARED_LIBRARIES)
|
||||||
|
USER_LOCAL_LDLIBS:=$(LOCAL_LDLIBS)
|
||||||
|
|
||||||
LOCAL_PATH:=$(subst ?,,$(firstword ?$(subst \, ,$(subst /, ,$(call my-dir)))))
|
LOCAL_PATH:=$(subst ?,,$(firstword ?$(subst \, ,$(subst /, ,$(call my-dir)))))
|
||||||
|
|
||||||
OPENCV_TARGET_ARCH_ABI:=$(TARGET_ARCH_ABI)
|
OPENCV_TARGET_ARCH_ABI:=$(TARGET_ARCH_ABI)
|
||||||
@ -136,6 +143,13 @@ ifeq ($(OPENCV_LOCAL_CFLAGS),)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
LOCAL_C_INCLUDES:=$(USER_LOCAL_C_INCLUDES)
|
||||||
|
LOCAL_CFLAGS:=$(USER_LOCAL_CFLAGS)
|
||||||
|
LOCAL_STATIC_LIBRARIES:=$(USER_LOCAL_STATIC_LIBRARIES)
|
||||||
|
LOCAL_SHARED_LIBRARIES:=$(USER_LOCAL_SHARED_LIBRARIES)
|
||||||
|
LOCAL_LDLIBS:=$(USER_LOCAL_LDLIBS)
|
||||||
|
|
||||||
LOCAL_C_INCLUDES += $(OPENCV_LOCAL_C_INCLUDES)
|
LOCAL_C_INCLUDES += $(OPENCV_LOCAL_C_INCLUDES)
|
||||||
LOCAL_CFLAGS += $(OPENCV_LOCAL_CFLAGS)
|
LOCAL_CFLAGS += $(OPENCV_LOCAL_CFLAGS)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user