aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand SIMONNET <bsimonnet@google.com>2015-07-23 13:54:49 -0700
committerBertrand Simonnet <bsimonnet@google.com>2015-07-24 18:41:06 +0000
commit42ffe345db737c10f79b8aaf365058e48bbf5bfa (patch)
treee68ddad232f49c6afa0b63861275f17970eb2b15
parent51915d4a70fad6236e59a0c63c8fc8936a8739f8 (diff)
downloadandroid_external_curl-42ffe345db737c10f79b8aaf365058e48bbf5bfa.tar.gz
android_external_curl-42ffe345db737c10f79b8aaf365058e48bbf5bfa.tar.bz2
android_external_curl-42ffe345db737c10f79b8aaf365058e48bbf5bfa.zip
curl: Fix imported/exported includes.
Set the right library dependencies for libcurl_static to remove the need to manually specify the include paths for boringssl and libz. Also export the headers for both libraries. (cherry-pick of 7f7d02b5cd37ccf025b14837d6d4695275588bf4.) Change-Id: I3da348bfa98569450b1f845302accabd8017ca27
-rw-r--r--Android.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/Android.mk b/Android.mk
index ec31228..13f1787 100644
--- a/Android.mk
+++ b/Android.mk
@@ -18,9 +18,7 @@ curl_CFLAGS := -Wpointer-arith -Wwrite-strings -Wunused -Winline \
curl_includes := \
$(LOCAL_PATH)/include/ \
- $(LOCAL_PATH)/lib \
- external/boringssl/include \
- external/zlib/src
+ $(LOCAL_PATH)/lib
#########################
# Build the libcurl static library
@@ -31,9 +29,11 @@ include $(LOCAL_PATH)/lib/Makefile.inc
LOCAL_SRC_FILES := $(addprefix lib/,$(CSOURCES))
LOCAL_C_INCLUDES := $(curl_includes)
LOCAL_CFLAGS := $(curl_CFLAGS)
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_MODULE:= libcurl
LOCAL_MODULE_TAGS := optional
+LOCAL_STATIC_LIBRARIES := libcrypto_static libz
include $(BUILD_STATIC_LIBRARY)
@@ -46,6 +46,7 @@ include $(LOCAL_PATH)/lib/Makefile.inc
LOCAL_SRC_FILES := $(addprefix lib/,$(CSOURCES))
LOCAL_C_INCLUDES := $(curl_includes)
LOCAL_CFLAGS := $(curl_CFLAGS)
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_MODULE:= libcurl
LOCAL_MODULE_TAGS := optional
@@ -65,7 +66,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_LIBRARIES := libcurl
LOCAL_SHARED_LIBRARIES := libcrypto libssl libz
-
LOCAL_C_INCLUDES := $(curl_includes)
# This may also need to include $(CURLX_CFILES) in order to correctly link