From dcae0509135c2067635ae3cf84b05dc9fb3d2d02 Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Tue, 25 Feb 2014 21:47:33 +0100 Subject: Build webdav based on serf if neon is disabled. Change-Id: I0cbb89c8d5ac65eda8bb21aaf0d07996a015d281 --- Repository.mk | 2 +- RepositoryExternal.mk | 10 ++--- config_host.mk.in | 2 +- configure.ac | 52 ++++++++++++++---------- postprocess/CustomTarget_registry.mk | 2 +- postprocess/Rdb_services.mk | 2 +- ucb/Library_ucpdav1.mk | 55 ++++++++++++++++++++++++++ ucb/Module_ucb.mk | 7 +--- ucb/source/ucp/webdav/ContentProperties.hxx | 4 +- ucb/source/ucp/webdav/PropertyMap.hxx | 4 +- ucb/source/ucp/webdav/webdavcontent.cxx | 4 +- ucb/source/ucp/webdav/webdavresponseparser.cxx | 4 +- ucb/source/ucp/webdav/webdavservices.cxx | 10 +---- 13 files changed, 106 insertions(+), 52 deletions(-) diff --git a/Repository.mk b/Repository.mk index 79d7089d8588..5072b708f146 100644 --- a/Repository.mk +++ b/Repository.mk @@ -533,7 +533,7 @@ $(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo, \ textconv_dict \ ucb1 \ ucbhelper \ - $(if $(DISABLE_NEON),,ucpdav1) \ + $(if $(WITH_WEBDAV),ucpdav1) \ ucpfile1 \ ucpftp1 \ ucpchelp1 \ diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index eec50bd83019..a4daea749060 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -1000,7 +1000,9 @@ gb_LinkTarget__use_liblangtag := endif # ENABLE_LIBLANGTAG -ifneq ($(DISABLE_NEON),) +gb_ExternalProject__use_apr := + +ifeq ($(WITH_WEBDAV),serf) define gb_LinkTarget__use_apr $(call gb_LinkTarget_set_include,$(1),\ @@ -1048,9 +1050,7 @@ endif endef -else - -gb_ExternalProject__use_apr := +else ifeq ($(WITH_WEBDAV),neon) ifneq ($(SYSTEM_NEON),) @@ -1088,7 +1088,7 @@ endef endif # SYSTEM_NEON -endif # DISABLE_NEON +endif # WITH_WEBDAV ifneq ($(SYSTEM_REDLAND),) diff --git a/config_host.mk.in b/config_host.mk.in index cbe2978bf86f..1c2d25bb371b 100644 --- a/config_host.mk.in +++ b/config_host.mk.in @@ -95,7 +95,6 @@ export DISABLE_CVE_TESTS=@DISABLE_CVE_TESTS@ export DISABLE_DBCONNECTIVITY=@DISABLE_DBCONNECTIVITY@ export DISABLE_DYNLOADING=@DISABLE_DYNLOADING@ export DISABLE_EXPORT=@DISABLE_EXPORT@ -export DISABLE_NEON=@DISABLE_NEON@ export DISABLE_OPENSSL=@DISABLE_OPENSSL@ export DISABLE_PYTHON=@DISABLE_PYTHON@ export DISABLE_SCRIPTING=@DISABLE_SCRIPTING@ @@ -607,6 +606,7 @@ export WITH_MOZAB4WIN=@WITH_MOZAB4WIN@ export WITH_MYSPELL_DICTS=@WITH_MYSPELL_DICTS@ export WITH_POOR_HELP_LOCALIZATIONS=@WITH_POOR_HELP_LOCALIZATIONS@ export WITH_THEMES=@WITH_THEMES@ +export WITH_WEBDAV=@WITH_WEBDAV@ export WORKDIR=@WORKDIR@ export WORKDIR_FOR_BUILD=@WORKDIR_FOR_BUILD@ export WORK_STAMP=@SOURCEVERSION@ diff --git a/configure.ac b/configure.ac index 6c78067acb95..cdae8b5cb983 100644 --- a/configure.ac +++ b/configure.ac @@ -652,7 +652,6 @@ linux-android*) build_gstreamer=no build_gstreamer_0_10=no enable_lotuswordpro=no - enable_neon=no enable_mpl_subset=yes enable_opengl=no enable_report_builder=no @@ -1777,6 +1776,14 @@ AC_ARG_WITH(lpsolver, WITH_LPSOLVER=$withval, WITH_LPSOLVER="lpsolve") +AC_ARG_WITH(webdav, + AS_HELP_STRING([--with-webdav], + [Specify which library to use for webdav implementation. + Possible values: "neon", "serf", "no". The default value is "neon". + Example: --with-webdav="serf"]), + WITH_WEBDAV=$withval, + WITH_WEBDAV="neon") + AC_ARG_WITH(linker-hash-style, AS_HELP_STRING([--with-linker-hash-style], [Use linker with --hash-style=