From a783cea3300ca854fc988e7c47bec088fb457444 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. (cherry picked from commit dcae0509135c2067635ae3cf84b05dc9fb3d2d02) Conflicts: Repository.mk postprocess/CustomTarget_registry.mk ucb/Module_ucb.mk ucb/source/ucp/webdav/webdavservices.cxx Change-Id: I0cbb89c8d5ac65eda8bb21aaf0d07996a015d281 --- Repository.mk | 2 +- RepositoryExternal.mk | 10 ++--- config_host.mk.in | 2 +- configure.ac | 53 +++++++++++++++---------- postprocess/CustomTarget_registry.mk | 2 +- postprocess/Rdb_services.mk | 2 +- scp2/InstallModule_ooo.mk | 2 - scp2/source/ooo/file_library_ooo.scp | 7 +--- 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/webdavresponseparser.cxx | 4 +- ucb/source/ucp/webdav/webdavservices.cxx | 10 +---- 14 files changed, 107 insertions(+), 57 deletions(-) diff --git a/Repository.mk b/Repository.mk index 072d8b7f2e9d..c74ffb1ccad1 100644 --- a/Repository.mk +++ b/Repository.mk @@ -505,6 +505,7 @@ $(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,OOO, \ sofficeapp \ ucb1 \ ucbhelper \ + $(if $(WITH_WEBDAV),ucpdav1) \ ucpfile1 \ xstor \ )) @@ -541,7 +542,6 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \ srtrs1 \ textconv_dict \ tvhlp1 \ - ucpdav1 \ ucpftp1 \ ucpchelp1 \ ucphier1 \ diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index e911b35d422b..3571b2bad842 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -827,7 +827,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),\ @@ -875,9 +877,7 @@ endif endef -else - -gb_ExternalProject__use_apr := +else ifeq ($(WITH_WEBDAV),neon) ifeq ($(SYSTEM_NEON),YES) @@ -915,7 +915,7 @@ endef endif # SYSTEM_NEON -endif # DISABLE_NEON +endif # WITH_WEBDAV ifeq ($(SYSTEM_REDLAND),YES) diff --git a/config_host.mk.in b/config_host.mk.in index 65e503e15bb5..13fdb7aa7097 100644 --- a/config_host.mk.in +++ b/config_host.mk.in @@ -96,7 +96,6 @@ export DISABLE_DBCONNECTIVITY=@DISABLE_DBCONNECTIVITY@ export DISABLE_DYNLOADING=@DISABLE_DYNLOADING@ export DISABLE_EXPORT=@DISABLE_EXPORT@ export DISABLE_LINKOO=@DISABLE_LINKOO@ -export DISABLE_NEON=@DISABLE_NEON@ export DISABLE_OPENSSL=@DISABLE_OPENSSL@ export DISABLE_PYTHON=@DISABLE_PYTHON@ export DISABLE_SCRIPTING=@DISABLE_SCRIPTING@ @@ -567,6 +566,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 WORDS_BIGENDIAN=@WORDS_BIGENDIAN@ export WORKDIR=@WORKDIR@ export WORKDIR_FOR_BUILD=@WORKDIR_FOR_BUILD@ diff --git a/configure.ac b/configure.ac index af74b4ea3b3e..df9c949f62c7 100644 --- a/configure.ac +++ b/configure.ac @@ -570,7 +570,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_coinmp=no @@ -1646,6 +1645,14 @@ AC_ARG_WITH(system-npapi-headers, [with_system_npapi_headers="$with_system_headers"] ) +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=