Kaydet (Commit) 9f3a3ab6 authored tarafından Matúš Kukan's avatar Matúš Kukan

tweak curl gbuildification

Change-Id: I17eae5612b88c3f57842a8ae50b1d062acf94765
üst 485498d3
...@@ -1621,6 +1621,10 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \ ...@@ -1621,6 +1621,10 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
)) ))
define gb_LinkTarget__use_curl define gb_LinkTarget__use_curl
$(call gb_LinkTarget_set_include,$(1),\
-I$(call gb_UnpackedTarball_get_dir,curl/include) \
$$(INCLUDE) \
)
$(call gb_LinkTarget_use_libraries,$(1),\ $(call gb_LinkTarget_use_libraries,$(1),\
curl \ curl \
) )
......
...@@ -25,15 +25,16 @@ else ...@@ -25,15 +25,16 @@ else
$(eval $(call gb_ExternalPackage_add_file,curl,lib/libcurl.so,lib/.libs/libcurl.so.4.2.0)) $(eval $(call gb_ExternalPackage_add_file,curl,lib/libcurl.so,lib/.libs/libcurl.so.4.2.0))
endif endif
else ifeq ($(GUI),WNT) else ifeq ($(OS)$(COM),WNTGCC)
ifeq ($(COM),GCC)
$(eval $(call gb_ExternalPackage_add_file,curl,lib/libcurl.a,.libs/libcurl.a)) $(eval $(call gb_ExternalPackage_add_file,curl,lib/libcurl.a,.libs/libcurl.a))
$(eval $(call gb_ExternalPackage_add_file,curl,bin/libcurl.dll,.libs/libcurl.dll)) $(eval $(call gb_ExternalPackage_add_file,curl,bin/libcurl.dll,.libs/libcurl.dll))
else ifeq ($(COM),WNT)
else ifeq ($(COM),MSC)
$(eval $(call gb_ExternalPackage_add_file,curl,lib/libcurl.lib,lib/libcurl.lib)) $(eval $(call gb_ExternalPackage_add_file,curl,lib/libcurl.lib,lib/libcurl.lib))
$(eval $(call gb_ExternalPackage_add_file,curl,bin/libcurl.dll,lib/libcurl.dll)) $(eval $(call gb_ExternalPackage_add_file,curl,bin/libcurl.dll,lib/libcurl.dll))
endif
endif endif
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -16,6 +16,7 @@ $(eval $(call gb_ExternalProject_register_targets,curl,\ ...@@ -16,6 +16,7 @@ $(eval $(call gb_ExternalProject_register_targets,curl,\
)) ))
ifeq ($(GUI),UNX) ifeq ($(GUI),UNX)
$(call gb_ExternalProject_get_state_target,curl,build): $(call gb_ExternalProject_get_state_target,curl,build):
cd $(EXTERNAL_WORKDIR) \ cd $(EXTERNAL_WORKDIR) \
&& ./configure --with-nss --without-ssl --without-libidn --enable-ftp --enable-ipv6 --enable-http --disable-gopher \ && ./configure --with-nss --without-ssl --without-libidn --enable-ftp --enable-ipv6 --enable-http --disable-gopher \
...@@ -25,10 +26,11 @@ $(call gb_ExternalProject_get_state_target,curl,build): ...@@ -25,10 +26,11 @@ $(call gb_ExternalProject_get_state_target,curl,build):
$(if $(filter TRUE,$(ENABLE_DEBUG)),--enable-debug) \ $(if $(filter TRUE,$(ENABLE_DEBUG)),--enable-debug) \
$(if $(SYSBASE),CPPFLAGS="-I$(SYSBASE)/usr/include" LDFLAGS="-L$(SYSBASE)/usr/lib") \ $(if $(SYSBASE),CPPFLAGS="-I$(SYSBASE)/usr/include" LDFLAGS="-L$(SYSBASE)/usr/lib") \
&& cd lib \ && cd lib \
&& $(GNUMAKE) -j$(EXTMAXPROCESS) \ && $(MAKE) \
&& touch $@ && touch $@
else ifeq ($(GUI),WNT)
ifeq ($(COM),GCC) else ifeq ($(OS)$(COM),WNTGCC)
$(call gb_ExternalProject_get_state_target,curl,build): $(call gb_ExternalProject_get_state_target,curl,build):
cd $(EXTERNAL_WORKDIR) \ cd $(EXTERNAL_WORKDIR) \
&& ./configure --with-nss --without-ssl --enable-ftp --enable-ipv6 --disable-http --disable-gopher \ && ./configure --with-nss --without-ssl --enable-ftp --enable-ipv6 --disable-http --disable-gopher \
...@@ -39,17 +41,16 @@ $(call gb_ExternalProject_get_state_target,curl,build): ...@@ -39,17 +41,16 @@ $(call gb_ExternalProject_get_state_target,curl,build):
LDFLAGS="$(patsubst ;, -L,$(ILIB))" \ LDFLAGS="$(patsubst ;, -L,$(ILIB))" \
CPPFLAGS="$(INCLUDE)" OBJDUMP="objdump" \ CPPFLAGS="$(INCLUDE)" OBJDUMP="objdump" \
&& cd lib \ && cd lib \
&& $(GNUMAKE) -j$(EXTMAXPROCESS) \ && $(MAKE) \
&& touch $@ && touch $@
else ifeq ($(COM),MSC) else ifeq ($(COM),MSC)
$(call gb_ExternalProject_get_state_target,curl,build): $(call gb_ExternalProject_get_state_target,curl,build):
cd $(EXTERNAL_WORKDIR)/lib \ cd $(EXTERNAL_WORKDIR)/lib \
&& unset MAKEFLAGS \ && MAKEFLAGS= && LIB="$(ILIB)" && nmake -f Makefile.vc9 cfg=release-dll \
&& export LIB="$(ILIB)" \ EXCFLAGS="/EHa /Zc:wchar_t- /D_CRT_SECURE_NO_DEPRECATE $(SOLARINC)" $(if $(filter X86_64,$(CPUNAME)),MACHINE=X64) \
&& nmake -f Makefile.vc9 cfg=release-dll EXCFLAGS="/EHa /Zc:wchar_t- /D_CRT_SECURE_NO_DEPRECATE $(SOLARINC)" $(if $(filter X86_64,$(CPUNAME)),MACHINE=X64) \
&& touch $@ && touch $@
endif
endif endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment