diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-05-08 15:47:24 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-05-08 23:34:26 +0200 |
commit | 3c38b7727a3deab37c5e9b822cec53c081e2b6e3 (patch) | |
tree | 61b40e23ba463a235d7bc41028630a068f3c4fe2 | |
parent | e567baf92c0fc71e862a2cf07e029576ee36cd77 (diff) |
zlib: remove ExternalPackage_zlib
Change-Id: I5bce88b2044279a6563fd68c35f9c1ac824c8850
-rw-r--r-- | RepositoryExternal.mk | 7 | ||||
-rw-r--r-- | cairo/ExternalProject_cairo.mk | 2 | ||||
-rw-r--r-- | cairo/cairo/cairo-1.10.2.patch | 44 | ||||
-rw-r--r-- | clucene/UnpackedTarball_clucene.mk | 1 | ||||
-rw-r--r-- | clucene/patches/clucene-internal-zlib.patch | 15 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | filter/source/flash/swfwriter1.cxx | 6 | ||||
-rw-r--r-- | hwpfilter/source/hgzip.h | 5 | ||||
-rw-r--r-- | hwpfilter/source/hiodev.cxx | 7 | ||||
-rw-r--r-- | liborcus/ExternalProject_liborcus.mk | 2 | ||||
-rw-r--r-- | package/source/zipapi/Deflater.cxx | 4 | ||||
-rw-r--r-- | package/source/zipapi/Inflater.cxx | 4 | ||||
-rw-r--r-- | postgresql/ExternalProject_postgresql.mk | 10 | ||||
-rw-r--r-- | sdext/source/pdfimport/pdfparse/pdfentries.cxx | 7 | ||||
-rw-r--r-- | sdext/source/pdfimport/test/tests.cxx | 6 | ||||
-rw-r--r-- | sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx | 7 | ||||
-rw-r--r-- | shell/inc/internal/zipfile.hxx | 4 | ||||
-rw-r--r-- | tools/source/zcodec/zcodec.cxx | 8 | ||||
-rw-r--r-- | zlib/ExternalPackage_zlib.mk | 17 | ||||
-rw-r--r-- | zlib/Module_zlib.mk | 1 |
20 files changed, 18 insertions, 141 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index f636d7bedcc9..2a58722b450d 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -343,12 +343,8 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \ define gb_LinkTarget__use_zlib_multiarch $(if $(2),,$(call gb_Output_error,gb_LinkTarget__use_zlib_multiarch needs two arguments)) -$(call gb_LinkTarget_use_packages,$(1),\ - zlib_inc \ -) - $(call gb_LinkTarget_set_include,$(1),\ - -I$(OUTDIR)/inc/external/zlib \ + $(ZLIB_CFLAGS) \ $$(INCLUDE) \ ) @@ -369,7 +365,6 @@ $(call gb_LinkTarget__use_zlib_multiarch,$(1),zlib_x64) endef define gb_ExternalProject__use_zlib -$(call gb_ExternalProject_use_package,$(1),zlib_inc) $(call gb_ExternalProject_use_static_libraries,$(1),zlib) endef diff --git a/cairo/ExternalProject_cairo.mk b/cairo/ExternalProject_cairo.mk index 0326b5c05c2c..4ba9023677f4 100644 --- a/cairo/ExternalProject_cairo.mk +++ b/cairo/ExternalProject_cairo.mk @@ -32,7 +32,7 @@ $(call gb_ExternalProject_get_state_target,cairo,build) : $(call gb_ExternalProject_run,build,\ ./configure \ $(if $(debug),STRIP=" ") \ - CFLAGS="$(if $(debug),-g) $(SOLARINC)" \ + CFLAGS="$(if $(debug),-g) $(ZLIB_CFLAGS)" \ LDFLAGS='-L$(OUTDIR)/lib' \ $(if $(filter ANDROID IOS,$(OS)),PKG_CONFIG=./dummy_pkg_config) \ pixman_CFLAGS="-I$(call gb_UnpackedTarball_get_dir,pixman)/pixman" \ diff --git a/cairo/cairo/cairo-1.10.2.patch b/cairo/cairo/cairo-1.10.2.patch index 0b63705007ae..c3f7aa745149 100644 --- a/cairo/cairo/cairo-1.10.2.patch +++ b/cairo/cairo/cairo-1.10.2.patch @@ -38,7 +38,7 @@ DEFAULT_CFLAGS += -I. -I$(top_srcdir) DEFAULT_CFLAGS += $(PIXMAN_CFLAGS) $(LIBPNG_CFLAGS) $(ZLIB_CFLAGS) +DEFAULT_CFLAGS += $(SOLARINC) -+DEFAULT_CFLAGS += -I$(SOLARVER)/$(INPATH)/inc/zlib -DZLIB_FIX -DDISABLE_SOME_FLOATING_POINT=1 ++DEFAULT_CFLAGS += -DDISABLE_SOME_FLOATING_POINT=1 CAIRO_CFLAGS = $(DEFAULT_CFLAGS) $(CFLAGS) @@ -198,20 +198,6 @@ cairo_cc_flag=yes else cairo_cc_stderr=`test -f conftest.err && cat conftest.err` ---- misc/cairo-1.10.2/src/cairo-deflate-stream.c 2010-06-18 13:47:12.000000000 +0200 -+++ misc/build/cairo-1.10.2/src/cairo-deflate-stream.c 2010-06-18 13:47:12.000000000 +0200 -@@ -37,7 +37,11 @@ - #include "cairoint.h" - #include "cairo-error-private.h" - #include "cairo-output-stream-private.h" -+#ifdef ZLIB_FIX -+#include <zlib/zlib.h> -+#else - #include <zlib.h> -+#endif - - #define BUFFER_SIZE 16384 - --- misc/cairo-1.10.2/src/cairo-output-stream.c 2010-07-12 10:57:03.000000000 +0200 +++ misc/build/cairo-1.10.2/src/cairo-output-stream.c 2010-07-12 10:57:03.000000000 +0200 @@ -313,7 +313,11 @@ @@ -226,34 +212,6 @@ decimal_point_len = strlen (decimal_point); assert (decimal_point_len != 0); ---- misc/cairo-1.10.2/src/cairo-pdf-surface.c 2010-12-25 15:21:34.000000000 +0100 -+++ misc/build/cairo-1.10.2/src/cairo-pdf-surface.c 2010-12-25 15:21:34.000000000 +0100 -@@ -57,7 +57,11 @@ - #include "cairo-type3-glyph-surface-private.h" - - #include <time.h> -+#ifdef ZLIB_FIX -+#include <zlib/zlib.h> -+#else - #include <zlib.h> -+#endif - - /* Issues: - * ---- misc/cairo-1.10.2/src/cairo-ps-surface.c 2010-12-25 15:21:34.000000000 +0100 -+++ misc/build/cairo-1.10.2/src/cairo-ps-surface.c 2010-12-25 15:21:34.000000000 +0100 -@@ -72,7 +72,11 @@ - #include <stdio.h> - #include <ctype.h> - #include <time.h> -+#ifdef ZLIB_FIX -+#include <zlib/zlib.h> -+#else - #include <zlib.h> -+#endif - #include <errno.h> - - #define DEBUG_PS 0 --- misc/cairo-1.10.2/src/cairo-ft-font.c 2010-12-25 15:21:34.000000000 +0100 +++ misc/build/cairo-1.10.2/src/cairo-ft-font.c 2010-12-25 15:21:34.000000000 +0100 @@ -534,16 +534,16 @@ diff --git a/clucene/UnpackedTarball_clucene.mk b/clucene/UnpackedTarball_clucene.mk index 6a326984b5ad..ed3c900cdd84 100644 --- a/clucene/UnpackedTarball_clucene.mk +++ b/clucene/UnpackedTarball_clucene.mk @@ -24,7 +24,6 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,clucene,0)) # http://sourceforge.net/mailarchive/message.php?msg_id=29143260 $(eval $(call gb_UnpackedTarball_add_patches,clucene,\ clucene/patches/clucene-debug.patch \ - clucene/patches/clucene-internal-zlib.patch \ clucene/patches/clucene-multimap-put.patch \ clucene/patches/clucene-narrowing-conversions.patch \ clucene/patches/clucene-nullptr.patch \ diff --git a/clucene/patches/clucene-internal-zlib.patch b/clucene/patches/clucene-internal-zlib.patch deleted file mode 100644 index 666792634456..000000000000 --- a/clucene/patches/clucene-internal-zlib.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- src/shared/CLucene/util/Misc.cpp 2012-02-17 15:33:09.217891100 +0000 -+++ src/shared/CLucene/util/Misc.cpp 2012-02-17 15:38:10.836597500 +0000 -@@ -34,7 +34,11 @@ - #include "CLucene/util/dirent.h" //if we have dirent, then the native one will be used - - //for zlib... --#include "zlib.h" -+#ifdef SYSTEM_ZLIB -+#include <zlib.h> -+#else -+#include <external/zlib/zlib.h> -+#endif - #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) - # include <fcntl.h> - # include <io.h> diff --git a/configure.ac b/configure.ac index ec0a4a6ed782..b16ba33240b0 100644 --- a/configure.ac +++ b/configure.ac @@ -7128,7 +7128,7 @@ else AC_MSG_RESULT([internal]) SYSTEM_ZLIB=NO BUILD_TYPE="$BUILD_TYPE ZLIB" - ZLIB_CFLAGS="-I${OUTDIR}/inc/external/zlib" + ZLIB_CFLAGS="-I${WORKDIR}/UnpackedTarball/zlib" ZLIB_LIBS="-L${OUTDIR}/lib -lzlib" fi AC_SUBST(ZLIB_CFLAGS) diff --git a/filter/source/flash/swfwriter1.cxx b/filter/source/flash/swfwriter1.cxx index abfb3d398644..52c29b9e0329 100644 --- a/filter/source/flash/swfwriter1.cxx +++ b/filter/source/flash/swfwriter1.cxx @@ -31,13 +31,7 @@ #include <vcl/graphicfilter.hxx> #include <vcl/graphictools.hxx> -#ifndef _ZLIB_H -#ifdef SYSTEM_ZLIB #include <zlib.h> -#else -#include <external/zlib/zlib.h> -#endif -#endif #include <vcl/salbtype.hxx> #include <basegfx/polygon/b2dpolygon.hxx> diff --git a/hwpfilter/source/hgzip.h b/hwpfilter/source/hgzip.h index 4c166afd4682..a586cc422c74 100644 --- a/hwpfilter/source/hgzip.h +++ b/hwpfilter/source/hgzip.h @@ -20,12 +20,7 @@ #ifndef _HWPGZIP_H_ #define _HWPGZIP_H_ -// DVO: add zlib/ prefix -#ifdef SYSTEM_ZLIB #include <zlib.h> -#else -#include "zlib/zlib.h" -#endif class HStream; /** diff --git a/hwpfilter/source/hiodev.cxx b/hwpfilter/source/hiodev.cxx index bb367b8cdfcf..5de1b5c7e890 100644 --- a/hwpfilter/source/hiodev.cxx +++ b/hwpfilter/source/hiodev.cxx @@ -19,12 +19,7 @@ #include <stdio.h> #include <errno.h> -// DVO: add zlib/ prefix -#ifdef SYSTEM_ZLIB -#include <zlib.h> -#else -#include <zlib/zlib.h> -#endif + #ifdef WIN32 # include <io.h> #else diff --git a/liborcus/ExternalProject_liborcus.mk b/liborcus/ExternalProject_liborcus.mk index 5d1123707213..6808ec3e39b2 100644 --- a/liborcus/ExternalProject_liborcus.mk +++ b/liborcus/ExternalProject_liborcus.mk @@ -46,7 +46,7 @@ ifeq ($(COM),MSC) liborcus_CPPFLAGS+=-DBOOST_ALL_NO_LIB endif ifeq ($(SYSTEM_ZLIB),NO) -liborcus_CPPFLAGS+=-I$(OUTDIR)/inc/external/zlib +liborcus_CPPFLAGS+=$(ZLIB_CFLAGS) endif # # OSes that use the GNU C++ library need to use -D_GLIBCXX_DEBUG in diff --git a/package/source/zipapi/Deflater.cxx b/package/source/zipapi/Deflater.cxx index dc3d3442b446..cc79ba02d39a 100644 --- a/package/source/zipapi/Deflater.cxx +++ b/package/source/zipapi/Deflater.cxx @@ -18,11 +18,7 @@ */ #include <package/Deflater.hxx> -#ifdef SYSTEM_ZLIB #include <zlib.h> -#else -#include <external/zlib/zlib.h> -#endif #include <com/sun/star/packages/zip/ZipConstants.hpp> #include <string.h> // for memset diff --git a/package/source/zipapi/Inflater.cxx b/package/source/zipapi/Inflater.cxx index b5ef4a2dafb7..5745cef4bb1a 100644 --- a/package/source/zipapi/Inflater.cxx +++ b/package/source/zipapi/Inflater.cxx @@ -18,11 +18,7 @@ */ #include <package/Inflater.hxx> -#ifdef SYSTEM_ZLIB #include <zlib.h> -#else -#include <external/zlib/zlib.h> -#endif #include <string.h> // for memset using namespace com::sun::star::uno; diff --git a/postgresql/ExternalProject_postgresql.mk b/postgresql/ExternalProject_postgresql.mk index 76d5a01c112e..428ededc2457 100644 --- a/postgresql/ExternalProject_postgresql.mk +++ b/postgresql/ExternalProject_postgresql.mk @@ -11,7 +11,10 @@ $(eval $(call gb_ExternalProject_ExternalProject,postgresql)) $(eval $(call gb_ExternalProject_use_package,postgresql,openldap)) -$(eval $(call gb_ExternalProject_use_external,postgresql,openssl)) +$(eval $(call gb_ExternalProject_use_externals,postgresql,\ + openssl \ + zlib \ +)) $(eval $(call gb_ExternalProject_register_targets,postgresql,\ build \ @@ -34,8 +37,9 @@ $(call gb_ExternalProject_get_state_target,postgresql,build) : $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \ $(if $(and $(filter YES,$(WITH_KRB5)), $(filter-out YES,$(DISABLE_OPENSSL))),--with-krb5) \ $(if $(and $(filter YES,$(WITH_GSSAPI)), $(filter-out YES,$(DISABLE_OPENSSL))),--with-gssapi) \ - CPPFLAGS="$(if $(filter NO,$(SYSTEM_OPENLDAP)),\ - -I$(call gb_UnpackedTarball_get_dir,openldap/include)) \ + CPPFLAGS="$(ZLIB_CFLAGS) \ + $(if $(filter NO,$(SYSTEM_OPENLDAP)),\ + -I$(call gb_UnpackedTarball_get_dir,openldap/include)) \ $(if $(and $(filter NO,$(SYSTEM_OPENSSL)), $(filter-out YES,$(DISABLE_OPENSSL))),\ -I$(call gb_UnpackedTarball_get_dir,openssl/include))" \ $(if $(filter NO,$(SYSTEM_OPENLDAP)), \ diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx index b9120ed4a077..99243b4dc3d5 100644 --- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx @@ -26,11 +26,8 @@ #include <rtl/alloc.h> #include <rtl/digest.h> #include <rtl/cipher.h> -#ifdef SYSTEM_ZLIB -#include "zlib.h" -#else -#include <zlib/zlib.h> -#endif + +#include <zlib.h> #include <math.h> #include <map> diff --git a/sdext/source/pdfimport/test/tests.cxx b/sdext/source/pdfimport/test/tests.cxx index a90010fdbaee..5ea11848dc3e 100644 --- a/sdext/source/pdfimport/test/tests.cxx +++ b/sdext/source/pdfimport/test/tests.cxx @@ -17,11 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifdef SYSTEM_ZLIB -#include "zlib.h" -#else -#include <zlib/zlib.h> -#endif +#include <zlib.h> #include "outputwrap.hxx" #include "contentsink.hxx" diff --git a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx index 2bb11237bc6f..5fb6967befef 100644 --- a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx +++ b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx @@ -20,12 +20,7 @@ #include "pnghelper.hxx" #include <sal/macros.h> -#ifdef SYSTEM_ZLIB -#include "zlib.h" -#else -#define ZLIB_INTERNAL 1 -#include <zlib/zlib.h> -#endif +#include <zlib.h> using namespace pdfi; diff --git a/shell/inc/internal/zipfile.hxx b/shell/inc/internal/zipfile.hxx index c2a5a248c21d..0a78d9c339cb 100644 --- a/shell/inc/internal/zipfile.hxx +++ b/shell/inc/internal/zipfile.hxx @@ -24,11 +24,7 @@ #define _WINDOWS #endif -#ifdef SYSTEM_ZLIB #include <zlib.h> -#else -#include <external/zlib/zlib.h> -#endif #include <string> #include <vector> diff --git a/tools/source/zcodec/zcodec.cxx b/tools/source/zcodec/zcodec.cxx index d2496322004c..498c74d6b4bf 100644 --- a/tools/source/zcodec/zcodec.cxx +++ b/tools/source/zcodec/zcodec.cxx @@ -19,13 +19,7 @@ #include <tools/stream.hxx> -#ifndef _ZLIB_H -#ifdef SYSTEM_ZLIB -#include "zlib.h" -#else -#include "zlib/zlib.h" -#endif -#endif +#include <zlib.h> #include <tools/zcodec.hxx> #include <rtl/crc.h> diff --git a/zlib/ExternalPackage_zlib.mk b/zlib/ExternalPackage_zlib.mk deleted file mode 100644 index 15571a1f4fef..000000000000 --- a/zlib/ExternalPackage_zlib.mk +++ /dev/null @@ -1,17 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# - -$(eval $(call gb_ExternalPackage_ExternalPackage,zlib_inc,zlib)) - -$(eval $(call gb_ExternalPackage_add_unpacked_files,zlib_inc,inc/external/zlib,\ - zconf.h \ - zlib.h \ -)) - -# vim: set noet sw=4 ts=4: diff --git a/zlib/Module_zlib.mk b/zlib/Module_zlib.mk index bea7375ebf7f..7241df0d63e9 100644 --- a/zlib/Module_zlib.mk +++ b/zlib/Module_zlib.mk @@ -12,7 +12,6 @@ $(eval $(call gb_Module_Module,zlib)) ifeq ($(SYSTEM_ZLIB),NO) $(eval $(call gb_Module_add_targets,zlib,\ - ExternalPackage_zlib \ StaticLibrary_zlib \ UnpackedTarball_zlib \ )) |