Kaydet (Commit) 3c38b772 authored tarafından Michael Stahl's avatar Michael Stahl

zlib: remove ExternalPackage_zlib

Change-Id: I5bce88b2044279a6563fd68c35f9c1ac824c8850
üst e567baf9
...@@ -343,12 +343,8 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \ ...@@ -343,12 +343,8 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
define gb_LinkTarget__use_zlib_multiarch define gb_LinkTarget__use_zlib_multiarch
$(if $(2),,$(call gb_Output_error,gb_LinkTarget__use_zlib_multiarch needs two arguments)) $(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),\ $(call gb_LinkTarget_set_include,$(1),\
-I$(OUTDIR)/inc/external/zlib \ $(ZLIB_CFLAGS) \
$$(INCLUDE) \ $$(INCLUDE) \
) )
...@@ -369,7 +365,6 @@ $(call gb_LinkTarget__use_zlib_multiarch,$(1),zlib_x64) ...@@ -369,7 +365,6 @@ $(call gb_LinkTarget__use_zlib_multiarch,$(1),zlib_x64)
endef endef
define gb_ExternalProject__use_zlib define gb_ExternalProject__use_zlib
$(call gb_ExternalProject_use_package,$(1),zlib_inc)
$(call gb_ExternalProject_use_static_libraries,$(1),zlib) $(call gb_ExternalProject_use_static_libraries,$(1),zlib)
endef endef
......
...@@ -32,7 +32,7 @@ $(call gb_ExternalProject_get_state_target,cairo,build) : ...@@ -32,7 +32,7 @@ $(call gb_ExternalProject_get_state_target,cairo,build) :
$(call gb_ExternalProject_run,build,\ $(call gb_ExternalProject_run,build,\
./configure \ ./configure \
$(if $(debug),STRIP=" ") \ $(if $(debug),STRIP=" ") \
CFLAGS="$(if $(debug),-g) $(SOLARINC)" \ CFLAGS="$(if $(debug),-g) $(ZLIB_CFLAGS)" \
LDFLAGS='-L$(OUTDIR)/lib' \ LDFLAGS='-L$(OUTDIR)/lib' \
$(if $(filter ANDROID IOS,$(OS)),PKG_CONFIG=./dummy_pkg_config) \ $(if $(filter ANDROID IOS,$(OS)),PKG_CONFIG=./dummy_pkg_config) \
pixman_CFLAGS="-I$(call gb_UnpackedTarball_get_dir,pixman)/pixman" \ pixman_CFLAGS="-I$(call gb_UnpackedTarball_get_dir,pixman)/pixman" \
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
DEFAULT_CFLAGS += -I. -I$(top_srcdir) DEFAULT_CFLAGS += -I. -I$(top_srcdir)
DEFAULT_CFLAGS += $(PIXMAN_CFLAGS) $(LIBPNG_CFLAGS) $(ZLIB_CFLAGS) DEFAULT_CFLAGS += $(PIXMAN_CFLAGS) $(LIBPNG_CFLAGS) $(ZLIB_CFLAGS)
+DEFAULT_CFLAGS += $(SOLARINC) +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) CAIRO_CFLAGS = $(DEFAULT_CFLAGS) $(CFLAGS)
...@@ -198,20 +198,6 @@ ...@@ -198,20 +198,6 @@
cairo_cc_flag=yes cairo_cc_flag=yes
else else
cairo_cc_stderr=`test -f conftest.err && cat conftest.err` 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/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 +++ misc/build/cairo-1.10.2/src/cairo-output-stream.c 2010-07-12 10:57:03.000000000 +0200
@@ -313,7 +313,11 @@ @@ -313,7 +313,11 @@
...@@ -226,34 +212,6 @@ ...@@ -226,34 +212,6 @@
decimal_point_len = strlen (decimal_point); decimal_point_len = strlen (decimal_point);
assert (decimal_point_len != 0); 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/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 +++ misc/build/cairo-1.10.2/src/cairo-ft-font.c 2010-12-25 15:21:34.000000000 +0100
@@ -534,16 +534,16 @@ @@ -534,16 +534,16 @@
......
...@@ -24,7 +24,6 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,clucene,0)) ...@@ -24,7 +24,6 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,clucene,0))
# http://sourceforge.net/mailarchive/message.php?msg_id=29143260 # http://sourceforge.net/mailarchive/message.php?msg_id=29143260
$(eval $(call gb_UnpackedTarball_add_patches,clucene,\ $(eval $(call gb_UnpackedTarball_add_patches,clucene,\
clucene/patches/clucene-debug.patch \ clucene/patches/clucene-debug.patch \
clucene/patches/clucene-internal-zlib.patch \
clucene/patches/clucene-multimap-put.patch \ clucene/patches/clucene-multimap-put.patch \
clucene/patches/clucene-narrowing-conversions.patch \ clucene/patches/clucene-narrowing-conversions.patch \
clucene/patches/clucene-nullptr.patch \ clucene/patches/clucene-nullptr.patch \
......
--- 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>
...@@ -7128,7 +7128,7 @@ else ...@@ -7128,7 +7128,7 @@ else
AC_MSG_RESULT([internal]) AC_MSG_RESULT([internal])
SYSTEM_ZLIB=NO SYSTEM_ZLIB=NO
BUILD_TYPE="$BUILD_TYPE ZLIB" BUILD_TYPE="$BUILD_TYPE ZLIB"
ZLIB_CFLAGS="-I${OUTDIR}/inc/external/zlib" ZLIB_CFLAGS="-I${WORKDIR}/UnpackedTarball/zlib"
ZLIB_LIBS="-L${OUTDIR}/lib -lzlib" ZLIB_LIBS="-L${OUTDIR}/lib -lzlib"
fi fi
AC_SUBST(ZLIB_CFLAGS) AC_SUBST(ZLIB_CFLAGS)
......
...@@ -31,13 +31,7 @@ ...@@ -31,13 +31,7 @@
#include <vcl/graphicfilter.hxx> #include <vcl/graphicfilter.hxx>
#include <vcl/graphictools.hxx> #include <vcl/graphictools.hxx>
#ifndef _ZLIB_H
#ifdef SYSTEM_ZLIB
#include <zlib.h> #include <zlib.h>
#else
#include <external/zlib/zlib.h>
#endif
#endif
#include <vcl/salbtype.hxx> #include <vcl/salbtype.hxx>
#include <basegfx/polygon/b2dpolygon.hxx> #include <basegfx/polygon/b2dpolygon.hxx>
......
...@@ -20,12 +20,7 @@ ...@@ -20,12 +20,7 @@
#ifndef _HWPGZIP_H_ #ifndef _HWPGZIP_H_
#define _HWPGZIP_H_ #define _HWPGZIP_H_
// DVO: add zlib/ prefix
#ifdef SYSTEM_ZLIB
#include <zlib.h> #include <zlib.h>
#else
#include "zlib/zlib.h"
#endif
class HStream; class HStream;
/** /**
......
...@@ -19,12 +19,7 @@ ...@@ -19,12 +19,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
// DVO: add zlib/ prefix
#ifdef SYSTEM_ZLIB
#include <zlib.h>
#else
#include <zlib/zlib.h>
#endif
#ifdef WIN32 #ifdef WIN32
# include <io.h> # include <io.h>
#else #else
......
...@@ -46,7 +46,7 @@ ifeq ($(COM),MSC) ...@@ -46,7 +46,7 @@ ifeq ($(COM),MSC)
liborcus_CPPFLAGS+=-DBOOST_ALL_NO_LIB liborcus_CPPFLAGS+=-DBOOST_ALL_NO_LIB
endif endif
ifeq ($(SYSTEM_ZLIB),NO) ifeq ($(SYSTEM_ZLIB),NO)
liborcus_CPPFLAGS+=-I$(OUTDIR)/inc/external/zlib liborcus_CPPFLAGS+=$(ZLIB_CFLAGS)
endif endif
# #
# OSes that use the GNU C++ library need to use -D_GLIBCXX_DEBUG in # OSes that use the GNU C++ library need to use -D_GLIBCXX_DEBUG in
......
...@@ -18,11 +18,7 @@ ...@@ -18,11 +18,7 @@
*/ */
#include <package/Deflater.hxx> #include <package/Deflater.hxx>
#ifdef SYSTEM_ZLIB
#include <zlib.h> #include <zlib.h>
#else
#include <external/zlib/zlib.h>
#endif
#include <com/sun/star/packages/zip/ZipConstants.hpp> #include <com/sun/star/packages/zip/ZipConstants.hpp>
#include <string.h> // for memset #include <string.h> // for memset
......
...@@ -18,11 +18,7 @@ ...@@ -18,11 +18,7 @@
*/ */
#include <package/Inflater.hxx> #include <package/Inflater.hxx>
#ifdef SYSTEM_ZLIB
#include <zlib.h> #include <zlib.h>
#else
#include <external/zlib/zlib.h>
#endif
#include <string.h> // for memset #include <string.h> // for memset
using namespace com::sun::star::uno; using namespace com::sun::star::uno;
......
...@@ -11,7 +11,10 @@ $(eval $(call gb_ExternalProject_ExternalProject,postgresql)) ...@@ -11,7 +11,10 @@ $(eval $(call gb_ExternalProject_ExternalProject,postgresql))
$(eval $(call gb_ExternalProject_use_package,postgresql,openldap)) $(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,\ $(eval $(call gb_ExternalProject_register_targets,postgresql,\
build \ build \
...@@ -34,8 +37,9 @@ $(call gb_ExternalProject_get_state_target,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 $(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_KRB5)), $(filter-out YES,$(DISABLE_OPENSSL))),--with-krb5) \
$(if $(and $(filter YES,$(WITH_GSSAPI)), $(filter-out YES,$(DISABLE_OPENSSL))),--with-gssapi) \ $(if $(and $(filter YES,$(WITH_GSSAPI)), $(filter-out YES,$(DISABLE_OPENSSL))),--with-gssapi) \
CPPFLAGS="$(if $(filter NO,$(SYSTEM_OPENLDAP)),\ CPPFLAGS="$(ZLIB_CFLAGS) \
-I$(call gb_UnpackedTarball_get_dir,openldap/include)) \ $(if $(filter NO,$(SYSTEM_OPENLDAP)),\
-I$(call gb_UnpackedTarball_get_dir,openldap/include)) \
$(if $(and $(filter NO,$(SYSTEM_OPENSSL)), $(filter-out YES,$(DISABLE_OPENSSL))),\ $(if $(and $(filter NO,$(SYSTEM_OPENSSL)), $(filter-out YES,$(DISABLE_OPENSSL))),\
-I$(call gb_UnpackedTarball_get_dir,openssl/include))" \ -I$(call gb_UnpackedTarball_get_dir,openssl/include))" \
$(if $(filter NO,$(SYSTEM_OPENLDAP)), \ $(if $(filter NO,$(SYSTEM_OPENLDAP)), \
......
...@@ -26,11 +26,8 @@ ...@@ -26,11 +26,8 @@
#include <rtl/alloc.h> #include <rtl/alloc.h>
#include <rtl/digest.h> #include <rtl/digest.h>
#include <rtl/cipher.h> #include <rtl/cipher.h>
#ifdef SYSTEM_ZLIB
#include "zlib.h" #include <zlib.h>
#else
#include <zlib/zlib.h>
#endif
#include <math.h> #include <math.h>
#include <map> #include <map>
......
...@@ -17,11 +17,7 @@ ...@@ -17,11 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifdef SYSTEM_ZLIB #include <zlib.h>
#include "zlib.h"
#else
#include <zlib/zlib.h>
#endif
#include "outputwrap.hxx" #include "outputwrap.hxx"
#include "contentsink.hxx" #include "contentsink.hxx"
......
...@@ -20,12 +20,7 @@ ...@@ -20,12 +20,7 @@
#include "pnghelper.hxx" #include "pnghelper.hxx"
#include <sal/macros.h> #include <sal/macros.h>
#ifdef SYSTEM_ZLIB #include <zlib.h>
#include "zlib.h"
#else
#define ZLIB_INTERNAL 1
#include <zlib/zlib.h>
#endif
using namespace pdfi; using namespace pdfi;
......
...@@ -24,11 +24,7 @@ ...@@ -24,11 +24,7 @@
#define _WINDOWS #define _WINDOWS
#endif #endif
#ifdef SYSTEM_ZLIB
#include <zlib.h> #include <zlib.h>
#else
#include <external/zlib/zlib.h>
#endif
#include <string> #include <string>
#include <vector> #include <vector>
......
...@@ -19,13 +19,7 @@ ...@@ -19,13 +19,7 @@
#include <tools/stream.hxx> #include <tools/stream.hxx>
#ifndef _ZLIB_H #include <zlib.h>
#ifdef SYSTEM_ZLIB
#include "zlib.h"
#else
#include "zlib/zlib.h"
#endif
#endif
#include <tools/zcodec.hxx> #include <tools/zcodec.hxx>
#include <rtl/crc.h> #include <rtl/crc.h>
......
# -*- 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:
...@@ -12,7 +12,6 @@ $(eval $(call gb_Module_Module,zlib)) ...@@ -12,7 +12,6 @@ $(eval $(call gb_Module_Module,zlib))
ifeq ($(SYSTEM_ZLIB),NO) ifeq ($(SYSTEM_ZLIB),NO)
$(eval $(call gb_Module_add_targets,zlib,\ $(eval $(call gb_Module_add_targets,zlib,\
ExternalPackage_zlib \
StaticLibrary_zlib \ StaticLibrary_zlib \
UnpackedTarball_zlib \ UnpackedTarball_zlib \
)) ))
......
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