From 16e6771acc6607044d089ec10fec9d26f5e03cd3 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Fri, 26 Oct 2012 06:23:36 +0200 Subject: chop out uwinapi from more ext. projects Change-Id: I29dd9d4e0a4dc342d28cb93a4cff65aa394848d4 --- zlib/zlib-dmakebuild.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zlib') diff --git a/zlib/zlib-dmakebuild.patch b/zlib/zlib-dmakebuild.patch index 6c2de996fa90..7a3abb31ccbd 100644 --- a/zlib/zlib-dmakebuild.patch +++ b/zlib/zlib-dmakebuild.patch @@ -1,6 +1,6 @@ --- misc/zlib-1.2.7/makefile.mk Fri Mar 14 10:17:06 2008 +++ misc/build/zlib-1.2.7/makefile.mk Fri Mar 14 10:16:56 2008 -@@ -1 +1,63 @@ +@@ -1 +1,64 @@ -dummy +#************************************************************************* +# @@ -14,6 +14,7 @@ +TARGET=zlib +LIBTARGET=NO +EXTERNAL_WARNINGS_NOT_ERRORS=TRUE ++UWINAPILIB= + +# --- Settings ----------------------------------------------------- + -- cgit From cb2762360fc6edb6afe52759550979ce5068b9b0 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Fri, 26 Oct 2012 15:33:26 +0200 Subject: gbuildify zlib Change-Id: I702c044fdf510c67364f2fc32889ca394583edf6 --- zlib/ExternalPackage_zlib.mk | 17 ++++++++++ zlib/Makefile | 14 ++++++++ zlib/Module_zlib.mk | 28 ++++++++++++++++ zlib/StaticLibrary_zlib.mk | 28 ++++++++++++++++ zlib/StaticLibrary_zlib_x64.mk | 35 ++++++++++++++++++++ zlib/UnpackedTarball_zlib.mk | 19 +++++++++++ zlib/make_patched_header.pl | 66 -------------------------------------- zlib/makefile.mk | 73 ------------------------------------------ zlib/prj/d.lst | 11 ------- zlib/prj/dmake | 0 zlib/zlib-dmakebuild.patch | 68 --------------------------------------- 11 files changed, 141 insertions(+), 218 deletions(-) create mode 100644 zlib/ExternalPackage_zlib.mk create mode 100644 zlib/Makefile create mode 100644 zlib/Module_zlib.mk create mode 100644 zlib/StaticLibrary_zlib.mk create mode 100644 zlib/StaticLibrary_zlib_x64.mk create mode 100644 zlib/UnpackedTarball_zlib.mk delete mode 100755 zlib/make_patched_header.pl delete mode 100644 zlib/makefile.mk delete mode 100644 zlib/prj/dmake delete mode 100644 zlib/zlib-dmakebuild.patch (limited to 'zlib') diff --git a/zlib/ExternalPackage_zlib.mk b/zlib/ExternalPackage_zlib.mk new file mode 100644 index 000000000000..15571a1f4fef --- /dev/null +++ b/zlib/ExternalPackage_zlib.mk @@ -0,0 +1,17 @@ +# -*- 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/Makefile b/zlib/Makefile new file mode 100644 index 000000000000..0997e628485b --- /dev/null +++ b/zlib/Makefile @@ -0,0 +1,14 @@ +# -*- 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/. +# + +module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) + +include $(module_directory)/../solenv/gbuild/partial_build.mk + +# vim: set noet sw=4 ts=4: diff --git a/zlib/Module_zlib.mk b/zlib/Module_zlib.mk new file mode 100644 index 000000000000..446e07edc24c --- /dev/null +++ b/zlib/Module_zlib.mk @@ -0,0 +1,28 @@ +# -*- 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/. +# + +ifneq ($(SYSTEM_ZLIB),YES) + +$(eval $(call gb_Module_Module,zlib)) + +$(eval $(call gb_Module_add_targets,zlib,\ + ExternalPackage_zlib \ + StaticLibrary_zlib \ + UnpackedTarball_zlib \ +)) + +ifeq ($(BUILD_X64),TRUE) +$(eval $(call gb_Module_add_targets,zlib,\ + StaticLibrary_zlib_x64 \ +)) +endif + +endif + +# vim: set noet sw=4 ts=4: diff --git a/zlib/StaticLibrary_zlib.mk b/zlib/StaticLibrary_zlib.mk new file mode 100644 index 000000000000..69e7017db63f --- /dev/null +++ b/zlib/StaticLibrary_zlib.mk @@ -0,0 +1,28 @@ +# -*- 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_StaticLibrary_StaticLibrary,zlib)) + +$(eval $(call gb_StaticLibrary_use_unpacked,zlib,zlib)) + +$(eval $(call gb_StaticLibrary_set_warnings_not_errors,zlib)) + +$(eval $(call gb_StaticLibrary_add_generated_cobjects,zlib,\ + UnpackedTarball/zlib/adler32 \ + UnpackedTarball/zlib/compress \ + UnpackedTarball/zlib/crc32 \ + UnpackedTarball/zlib/deflate \ + UnpackedTarball/zlib/inffast \ + UnpackedTarball/zlib/inflate \ + UnpackedTarball/zlib/inftrees \ + UnpackedTarball/zlib/trees \ + UnpackedTarball/zlib/zutil \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/zlib/StaticLibrary_zlib_x64.mk b/zlib/StaticLibrary_zlib_x64.mk new file mode 100644 index 000000000000..cd250054bd39 --- /dev/null +++ b/zlib/StaticLibrary_zlib_x64.mk @@ -0,0 +1,35 @@ +# -*- 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_StaticLibrary_StaticLibrary,zlib_x64)) + +$(eval $(call gb_StaticLibrary_set_x64,zlib,YES)) + +$(eval $(call gb_StaticLibrary_use_unpacked,zlib_x64,zlib)) + +$(eval $(call gb_StaticLibrary_set_warnings_not_errors,zlib_x64)) + +$(eval $(call gb_StaticLibrary_set_include,zlib_x64,\ + -I$(call gb_UnpackedTarball_get_dir,zlib) \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_StaticLibrary_add_x64_generated_cobjects,zlib_x64,\ + UnpackedTarball/zlib/x64/adler32 \ + UnpackedTarball/zlib/x64/compress \ + UnpackedTarball/zlib/x64/crc32 \ + UnpackedTarball/zlib/x64/deflate \ + UnpackedTarball/zlib/x64/inffast \ + UnpackedTarball/zlib/x64/inflate \ + UnpackedTarball/zlib/x64/inftrees \ + UnpackedTarball/zlib/x64/trees \ + UnpackedTarball/zlib/x64/zutil \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/zlib/UnpackedTarball_zlib.mk b/zlib/UnpackedTarball_zlib.mk new file mode 100644 index 000000000000..fa476b918b7c --- /dev/null +++ b/zlib/UnpackedTarball_zlib.mk @@ -0,0 +1,19 @@ +# -*- 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_UnpackedTarball_UnpackedTarball,zlib)) + +$(eval $(call gb_UnpackedTarball_set_tarball,zlib,$(ZLIB_TARBALL))) + +$(eval $(call gb_UnpackedTarball_set_post_action,zlib,\ + mkdir -p x64 && \ + cp $(addsuffix .c,adler32 compress crc32 deflate inffast inflate inftrees trees zutil) x64 \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/zlib/make_patched_header.pl b/zlib/make_patched_header.pl deleted file mode 100755 index 41dbdc5fbb96..000000000000 --- a/zlib/make_patched_header.pl +++ /dev/null @@ -1,66 +0,0 @@ -: -eval 'exec perl -S $0 ${1+"$@"}' - if 0; -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License version 3 for more details -# (a copy is included in the LICENSE file that accompanied this code). -# -# You should have received a copy of the GNU Lesser General Public License -# version 3 along with OpenOffice.org. If not, see -# -# for a copy of the LGPLv3 License. -# -#************************************************************************* -# -# make_patched_header - make patched header -# - -use strict; -use File::Basename; -use File::Path; -use Carp; - -my $patched_file = shift @ARGV; -$patched_file =~ s/\\/\//g; -my $module = shift @ARGV; -my $patch_dir = dirname($patched_file); -my $orig_file = $patched_file; -$orig_file =~ s/\/patched\//\//; - -if (!-f $orig_file) { carp("Cannot find file $orig_file\n"); }; -if (!-d $patch_dir) { - mkpath($patch_dir, 0, 0775); - if (!-d $patch_dir) {("mkdir: could not create directory $patch_dir\n"); }; -}; - -open(PATCHED_FILE, ">$patched_file") or carp("Cannot open file $patched_file\n"); -open(ORIG_FILE, "<$orig_file") or carp("Cannot open file $orig_file\n"); -foreach () { - if (/#include\s*"(\w+\.h\w*)"/) { - my $include = $1; - s/#include "$include"/#include <$module\/$include>/g; - }; - print PATCHED_FILE $_; -}; -close PATCHED_FILE; -close ORIG_FILE; - -exit(0); - - diff --git a/zlib/makefile.mk b/zlib/makefile.mk deleted file mode 100644 index 7a677e50cdb2..000000000000 --- a/zlib/makefile.mk +++ /dev/null @@ -1,73 +0,0 @@ -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License version 3 for more details -# (a copy is included in the LICENSE file that accompanied this code). -# -# You should have received a copy of the GNU Lesser General Public License -# version 3 along with OpenOffice.org. If not, see -# -# for a copy of the LGPLv3 License. -# -#************************************************************************* - -PRJ=. - -PRJNAME=zlib -TARGET=zlib - -.IF "$(GUI)" == "UNX" -.IF "$(SYSTEM_ZLIB)" == "YES" -all: - @echo "An already available installation of zlib should exist on your system." - @echo "Therefore the version provided here does not need to be built in addition." -.ENDIF -.ENDIF - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Files -------------------------------------------------------- - -TARFILE_NAME=zlib-1.2.7 -TARFILE_MD5=2ab442d169156f34c379c968f3f482dd - -PATCH_FILES=zlib-dmakebuild.patch -ADDITIONAL_FILES=makefile.mk - -#relative to CONFIGURE_DIR - -BUILD_DIR=$(CONFIGURE_DIR) -BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS) - -OUT2INC= \ - zlib.h \ - zconf.h - -PATCHED_HEADERS=$(INCCOM)$/patched$/zlib.h - -# --- Targets ------------------------------------------------------ - -.INCLUDE : set_ext.mk -.INCLUDE : target.mk -.INCLUDE : tg_ext.mk - -ALLTAR: $(PATCHED_HEADERS) - -$(PATCHED_HEADERS) : $(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE) - @$(PERL) make_patched_header.pl $@ $(PRJNAME) diff --git a/zlib/prj/d.lst b/zlib/prj/d.lst index ef40caf49c44..e69de29bb2d1 100644 --- a/zlib/prj/d.lst +++ b/zlib/prj/d.lst @@ -1,11 +0,0 @@ -mkdir: %_DEST%\inc\external\zlib -mkdir: %_DEST%\lib\x64 - -..\%__SRC%\inc\patched\zlib.h %_DEST%\inc\external\zlib\zlib.h -..\%__SRC%\inc\zconf.h %_DEST%\inc\external\zlib\zconf.h - -..\%__SRC%\lib\libzlib.a %_DEST%\lib\libzlib.a -..\%__SRC%\slb\zlib.lib %_DEST%\lib\zlib.lib -..\%__SRC%\slb\zlib.lin %_DEST%\lib\zlib.lin -..\%__SRC%\slb\x64\zlib.lib %_DEST%\lib\x64\zlib.lib -..\%__SRC%\slb\x64\zlib.lin %_DEST%\lib\x64\zlib.lin diff --git a/zlib/prj/dmake b/zlib/prj/dmake deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/zlib/zlib-dmakebuild.patch b/zlib/zlib-dmakebuild.patch deleted file mode 100644 index 7a3abb31ccbd..000000000000 --- a/zlib/zlib-dmakebuild.patch +++ /dev/null @@ -1,68 +0,0 @@ ---- misc/zlib-1.2.7/makefile.mk Fri Mar 14 10:17:06 2008 -+++ misc/build/zlib-1.2.7/makefile.mk Fri Mar 14 10:16:56 2008 -@@ -1 +1,64 @@ --dummy -+#************************************************************************* -+# -+# Copyright according the GNU Public License. -+# -+#************************************************************************* -+ -+PRJ=..$/..$/..$/.. -+ -+PRJNAME=zlib -+TARGET=zlib -+LIBTARGET=NO -+EXTERNAL_WARNINGS_NOT_ERRORS=TRUE -+UWINAPILIB= -+ -+# --- Settings ----------------------------------------------------- -+ -+.INCLUDE : settings.mk -+ -+# --- Files -------------------------------------------------------- -+ -+INCEXT=contrib$/minizip -+ -+SLOFILES= $(SLO)$/adler32.obj \ -+ $(SLO)$/compress.obj \ -+ $(SLO)$/deflate.obj \ -+ $(SLO)$/crc32.obj \ -+ $(SLO)$/inffast.obj \ -+ $(SLO)$/inflate.obj \ -+ $(SLO)$/inftrees.obj \ -+ $(SLO)$/trees.obj \ -+ $(SLO)$/zutil.obj -+ -+ -+LIB1TARGET=$(SLB)$/$(TARGET).lib -+LIB1ARCHIV=$(LB)$/lib$(TARGET).a -+LIB1OBJFILES=$(SLOFILES) -+ -+.IF "$(BUILD_X64)"!="" -+SLOFILES_X64= $(SLO_X64)$/adler32.obj \ -+ $(SLO_X64)$/compress.obj \ -+ $(SLO_X64)$/deflate.obj \ -+ $(SLO_X64)$/crc32.obj \ -+ $(SLO_X64)$/inffast.obj \ -+ $(SLO_X64)$/inflate.obj \ -+ $(SLO_X64)$/inftrees.obj \ -+ $(SLO_X64)$/trees.obj \ -+ $(SLO_X64)$/zutil.obj -+ -+LIB1TARGET_X64=$(SLB_X64)$/$(TARGET).lib -+LIB1OBJFILES_X64=$(SLOFILES_X64) -+.ENDIF # "$(BUILD_X64)"!="" -+ -+ -+# --- Targets ------------------------------------------------------ -+ -+$(MISC)$/%.c : contrib$/minizip$/%.c -+ @echo ------------------------------ -+ @echo Making: $@ -+ @$(COPY) $< $@ -+ -+.INCLUDE : set_wntx64.mk -+.INCLUDE : target.mk -+.INCLUDE : tg_wntx64.mk -+ -- cgit From 9874f2fb3c7ed8f77e9c05530681144a351d8ed3 Mon Sep 17 00:00:00 2001 From: Peter Foley Date: Fri, 26 Oct 2012 17:02:18 -0400 Subject: fix x64 zlib on win Change-Id: Ib9b06e843f3e44c3a1ec3c1a64335d2a6ebed810 --- zlib/StaticLibrary_zlib_x64.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zlib') diff --git a/zlib/StaticLibrary_zlib_x64.mk b/zlib/StaticLibrary_zlib_x64.mk index cd250054bd39..99a08d55ded5 100644 --- a/zlib/StaticLibrary_zlib_x64.mk +++ b/zlib/StaticLibrary_zlib_x64.mk @@ -9,7 +9,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,zlib_x64)) -$(eval $(call gb_StaticLibrary_set_x64,zlib,YES)) +$(eval $(call gb_StaticLibrary_set_x64,zlib_x64,YES)) $(eval $(call gb_StaticLibrary_use_unpacked,zlib_x64,zlib)) -- cgit From ab594aaaa4403a0540f1f1be15797f01cfbc8f54 Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Sun, 28 Oct 2012 00:08:18 +0200 Subject: RepositoryModule_ooo: add missing modules Change-Id: I1c2702ccf7433eaec0403975d37f1dd35f63b260 --- zlib/Module_zlib.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zlib') diff --git a/zlib/Module_zlib.mk b/zlib/Module_zlib.mk index 446e07edc24c..bea7375ebf7f 100644 --- a/zlib/Module_zlib.mk +++ b/zlib/Module_zlib.mk @@ -7,10 +7,10 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -ifneq ($(SYSTEM_ZLIB),YES) - $(eval $(call gb_Module_Module,zlib)) +ifeq ($(SYSTEM_ZLIB),NO) + $(eval $(call gb_Module_add_targets,zlib,\ ExternalPackage_zlib \ StaticLibrary_zlib \ -- cgit