summaryrefslogtreecommitdiff
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r--RepositoryExternal.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 5686a923c50f..cb63693fa885 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -1021,6 +1021,9 @@ endif # SYSTEM_ICU
ifeq ($(SYSTEM_OPENSSL),YES)
+gb_LinkTarget__use_openssl_headers:=
+gb_ExternalProject__use_openssl:=
+
define gb_LinkTarget__use_openssl
$(call gb_LinkTarget_set_include,$(1),\
$$(INCLUDE) \
@@ -1044,7 +1047,21 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
))
endif
+define gb_ExternalProject__use_openssl
+$(call gb_ExternalProject_use_package,$(1),openssl)
+
+endef
+
+define gb_LinkTarget__use_openssl_headers
+$(call gb_LinkTarget_set_include,$(1),\
+ -I$(call gb_UnpackedTarball_get_dir,openssl)/include \
+ $$(INCLUDE) \
+)
+
+endef
+
define gb_LinkTarget__use_openssl
+$(call gb_LinkTarget_use_package,$(1),openssl)
ifeq ($(OS),WNT)
$(call gb_LinkTarget_use_libraries,$(1),\
crypto \