[Libreoffice-commits] .: download.lst libmspub/ExternalPackage_libmspub.mk libmspub/ExternalProject_libmspub.mk libmspub/libmspub-0.0.3.patch libmspub/Module_libmspub.mk libmspub/prj libmspub/StaticLibrary_mspub.mk libmspub/UnpackedTarball_mspub.mk RepositoryExternal.mk

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Jan 28 01:40:32 PST 2013


 RepositoryExternal.mk                |    7 ++-
 download.lst                         |    4 -
 libmspub/ExternalPackage_libmspub.mk |   13 +++++
 libmspub/ExternalProject_libmspub.mk |   76 +++++++++++++++++++++++++++++++++++
 libmspub/Module_libmspub.mk          |    2 
 libmspub/StaticLibrary_mspub.mk      |   45 --------------------
 libmspub/UnpackedTarball_mspub.mk    |    4 -
 libmspub/libmspub-0.0.3.patch        |   44 --------------------
 libmspub/prj/build.lst               |    2 
 9 files changed, 96 insertions(+), 101 deletions(-)

New commits:
commit 093a5c95a3724eb4795713c5cb4472611ca22324
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date:   Mon Jan 28 10:13:50 2013 +0100

    Upload libmspub 0.0.4
    
    Change-Id: Icb47740815fabff2338196ec194a51a23f7adadd

diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index aa73937..5bd9442 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -1142,12 +1142,15 @@ endef
 else # !SYSTEM_LIBMSPUB
 
 $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
-	mspublib \
+	mspub-0.0 \
 ))
 
 define gb_LinkTarget__use_mspub
+$(call gb_LinkTarget_use_package,$(1),\
+	libmspub \
+)
 $(call gb_LinkTarget_use_static_libraries,$(1),\
-	mspublib \
+	mspub-0.0 \
 )
 
 endef
diff --git a/download.lst b/download.lst
index 407365a..663d727 100644
--- a/download.lst
+++ b/download.lst
@@ -1,7 +1,7 @@
 CDR_MD5SUM := bfc46d536c39b03563ab2a0e3beaf51b
 export CDR_TARBALL := libcdr-0.0.10.tar.bz2
-MSPUB_MD5SUM := b2db54b6e96287ac995d7ed654ace4fc
-export MSPUB_TARBALL := libmspub-0.0.3.tar.bz2
+MSPUB_MD5SUM := aafd3687297bfc3967847d2213d08071
+export MSPUB_TARBALL := libmspub-0.0.4.tar.bz2
 VISIO_MD5SUM := 1962a4183bac8a247989af17ef8882ea
 export VISIO_TARBALL := libvisio-0.0.24.tar.bz2
 
diff --git a/libmspub/ExternalPackage_libmspub.mk b/libmspub/ExternalPackage_libmspub.mk
index 89aecd8..83a0c87 100644
--- a/libmspub/ExternalPackage_libmspub.mk
+++ b/libmspub/ExternalPackage_libmspub.mk
@@ -7,12 +7,21 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 #
 
-$(eval $(call gb_ExternalPackage_ExternalPackage,libmspub_inc,mspub))
+$(eval $(call gb_ExternalPackage_ExternalPackage,libmspub,mspub))
 
-$(eval $(call gb_ExternalPackage_add_unpacked_files,libmspub_inc,inc/external/libmspub,\
+$(eval $(call gb_ExternalPackage_add_unpacked_files,libmspub,inc/external/libmspub,\
 	src/lib/libmspub.h \
 	src/lib/MSPUBDocument.h \
 	src/lib/MSPUBStringVector.h \
 ))
 
+$(eval $(call gb_ExternalPackage_use_external_project,libmspub,libmspub))
+
+ifeq ($(OS)$(COM),WNTMSC)
+$(eval $(call gb_ExternalPackage_add_file,libmspub,lib/mspub-0.0.lib,build/win32/Release/lib/libmspub-0.0.lib))
+else
+$(eval $(call gb_ExternalPackage_add_file,libmspub,lib/libmspub-0.0.a,src/lib/.libs/libmspub-0.0.a))
+endif
+
+
 # vim: set noet sw=4 ts=4:
diff --git a/libmspub/ExternalProject_libmspub.mk b/libmspub/ExternalProject_libmspub.mk
new file mode 100644
index 0000000..a971b75
--- /dev/null
+++ b/libmspub/ExternalProject_libmspub.mk
@@ -0,0 +1,76 @@
+# -*- 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_ExternalProject_ExternalProject,libmspub))
+
+$(eval $(call gb_ExternalProject_use_unpacked,libmspub,mspub))
+
+$(eval $(call gb_ExternalProject_register_targets,libmspub,\
+	build \
+))
+
+$(eval $(call gb_ExternalProject_use_externals,libmspub,\
+	icu \
+	wpd \
+	wpg \
+))
+
+ifeq ($(OS)$(COM),WNTMSC)
+
+ifeq ($(VCVER),90)
+$(call gb_ExternalProject_get_state_target,libmspub,build) :
+	cd $(EXTERNAL_WORKDIR)/build/win32 \
+	&& export LIBWPD_INCLUDE_DIR=$(OUTDIR)/inc/external \
+	&& export LIBWPG_INCLUDE_DIR=$(OUTDIR)/inc/external \
+	&& export ZLIB_INCLUDE_DIR=$(OUTDIR)/inc/external/zlib \
+	&& export ICU_INCLUDE_DIR=$(OUTDIR)/inc/external \
+	&& $(COMPATH)/vcpackages/vcbuild.exe libmspub.vcproj "Release|Win32" \
+	&& touch $@
+else ifeq ($(VCVER),100)
+$(call gb_ExternalProject_get_state_target,libmspub,build) :
+	cd $(EXTERNAL_WORKDIR)/build/win32 \
+	&& export LIBWPD_INCLUDE_DIR=$(OUTDIR)/inc/external \
+	&& export LIBWPG_INCLUDE_DIR=$(OUTDIR)/inc/external \
+	&& export ZLIB_INCLUDE_DIR=$(OUTDIR)/inc/external/zlib \
+	&& export ICU_INCLUDE_DIR=$(OUTDIR)/inc/external \
+	&& msbuild.exe libmspub.vcxproj /p:Configuration=Release \
+	&& touch $@
+else
+$(call gb_ExternalProject_get_state_target,libmspub,build) :
+	cd $(EXTERNAL_WORKDIR)/build/win32 \
+	&& export LIBWPD_INCLUDE_DIR=$(OUTDIR)/inc/external \
+	&& export LIBWPG_INCLUDE_DIR=$(OUTDIR)/inc/external \
+	&& export ZLIB_INCLUDE_DIR=$(OUTDIR)/inc/external/zlib \
+	&& export ICU_INCLUDE_DIR=$(OUTDIR)/inc/external \
+	&& msbuild.exe libmspub.vcxproj /p:PlatformToolset=v110 /p:VisualStudioVersion=11.0 /p:Configuration=Release \
+	&& touch $@
+endif
+
+else
+
+$(call gb_ExternalProject_get_state_target,libmspub,build) :
+	cd $(EXTERNAL_WORKDIR) \
+	&& export PKG_CONFIG="" \
+	&& export ICU_LIBS=" " && export ICU_CFLAGS="-I$(OUTDIR)/inc/external" \
+	&& export LIBMSPUB_CFLAGS="$(WPG_CFLAGS) $(WPD_CFLAGS)" \
+	&& export LIBMSPUB_LIBS="$(WPG_LIBS) $(WPD_LIBS)" \
+	&& ./configure \
+		--with-pic \
+		--enable-static \
+		--disable-shared \
+		--without-docs \
+		--disable-debug \
+		--disable-werror \
+		$(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
+	&& (cd $(EXTERNAL_WORKDIR)/src/lib && $(MAKE)) \
+	&& touch $@
+
+endif
+
+# vim: set noet sw=4 ts=4:
diff --git a/libmspub/Module_libmspub.mk b/libmspub/Module_libmspub.mk
index 0106a9f..fd67e90 100644
--- a/libmspub/Module_libmspub.mk
+++ b/libmspub/Module_libmspub.mk
@@ -13,7 +13,7 @@ ifeq ($(SYSTEM_LIBMSPUB),NO)
 
 $(eval $(call gb_Module_add_targets,libmspub,\
 	ExternalPackage_libmspub \
-	StaticLibrary_mspub \
+	ExternalProject_libmspub \
 	UnpackedTarball_mspub \
 ))
 
diff --git a/libmspub/StaticLibrary_mspub.mk b/libmspub/StaticLibrary_mspub.mk
deleted file mode 100644
index 81d081e..0000000
--- a/libmspub/StaticLibrary_mspub.mk
+++ /dev/null
@@ -1,45 +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_StaticLibrary_StaticLibrary,mspublib))
-
-$(eval $(call gb_StaticLibrary_use_unpacked,mspublib,mspub))
-
-$(eval $(call gb_StaticLibrary_use_package,mspublib,libmspub_inc))
-
-$(eval $(call gb_StaticLibrary_use_externals,mspublib,\
-	wpd \
-	wpg \
-	zlib \
-	boost_headers \
-))
-
-$(eval $(call gb_StaticLibrary_set_warnings_not_errors,mspublib))
-
-$(eval $(call gb_StaticLibrary_set_generated_cxx_suffix,mspublib,cpp))
-
-$(eval $(call gb_StaticLibrary_add_generated_exception_objects,mspublib,\
-	UnpackedTarball/mspub/src/lib/ColorReference \
-	UnpackedTarball/mspub/src/lib/Dash \
-	UnpackedTarball/mspub/src/lib/Fill \
-	UnpackedTarball/mspub/src/lib/MSPUBCollector \
-	UnpackedTarball/mspub/src/lib/MSPUBDocument \
-	UnpackedTarball/mspub/src/lib/MSPUBParser2k \
-	UnpackedTarball/mspub/src/lib/MSPUBParser97 \
-	UnpackedTarball/mspub/src/lib/MSPUBParser \
-	UnpackedTarball/mspub/src/lib/MSPUBStringVector \
-	UnpackedTarball/mspub/src/lib/MSPUBSVGGenerator \
-	UnpackedTarball/mspub/src/lib/PolygonUtils \
-	UnpackedTarball/mspub/src/lib/Shadow \
-	UnpackedTarball/mspub/src/lib/ShapeGroupElement \
-	UnpackedTarball/mspub/src/lib/VectorTransformation2D \
-	UnpackedTarball/mspub/src/lib/libmspub_utils \
-))
-
-# vim: set noet sw=4 ts=4:
diff --git a/libmspub/UnpackedTarball_mspub.mk b/libmspub/UnpackedTarball_mspub.mk
index 34232f5..5193169 100644
--- a/libmspub/UnpackedTarball_mspub.mk
+++ b/libmspub/UnpackedTarball_mspub.mk
@@ -11,8 +11,4 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,mspub))
 
 $(eval $(call gb_UnpackedTarball_set_tarball,mspub,$(MSPUB_TARBALL)))
 
-$(eval $(call gb_UnpackedTarball_add_patches,mspub,\
-	libmspub/libmspub-0.0.3.patch \
-))
-
 # vim: set noet sw=4 ts=4:
diff --git a/libmspub/libmspub-0.0.3.patch b/libmspub/libmspub-0.0.3.patch
deleted file mode 100644
index 26a9627..0000000
--- a/libmspub/libmspub-0.0.3.patch
+++ /dev/null
@@ -1,44 +0,0 @@
---- misc/libmspub-0.0.3/src/lib/MSPUBParser.cpp	2012-08-21 11:40:41.000000000 +0200
-+++ misc/build/libmspub-0.0.3/src/lib/MSPUBParser.cpp	2012-08-21 12:58:58.435884355 +0200
-@@ -52,7 +52,9 @@
- #include "TableInfo.h"
- #include "VerticalAlign.h"
- 
-+#if !defined(_MSC_VER) && !defined(BOOST_CSTDINT_HPP)
- using boost::int32_t;
-+#endif
- using boost::uint32_t;
- 
- libmspub::MSPUBParser::MSPUBParser(WPXInputStream *input, MSPUBCollector *collector)
-@@ -1151,7 +1151,7 @@
-   ParagraphStyle ret;
- 
-   bool isList = false;
--  uint32_t bulletChar = '\u0000';
-+  uint32_t bulletChar = 0;
-   NumberingType numberingType = STANDARD_WESTERN;
-   NumberingDelimiter numberingDelimiter = NO_DELIMITER;
-   boost::optional<unsigned> numberIfRestarted;
-@@ -1256,7 +1256,7 @@
-   }
-   if (isList)
-   {
--    if (bulletChar != '\u0000')
-+    if (bulletChar)
-     {
-       ret.m_listInfo = ListInfo(bulletChar);
-     }
---- misc/libmspub-0.0.3/src/lib/libmspub_utils.h
-+++ misc/build/libmspub-0.0.3/src/lib/libmspub_utils.h
-@@ -43,7 +43,11 @@
- 
- typedef unsigned char uint8_t;
- typedef unsigned short uint16_t;
-+#ifndef BOOST_CSTDINT_HPP
- typedef unsigned uint32_t;
-+#endif
-+typedef signed char int8_t;
-+typedef short int16_t;
- typedef int int32_t;
- typedef unsigned __int64 uint64_t;
- 
diff --git a/libmspub/prj/build.lst b/libmspub/prj/build.lst
index 6a0f643..2385475 100644
--- a/libmspub/prj/build.lst
+++ b/libmspub/prj/build.lst
@@ -1,2 +1,2 @@
-mspub	libmspub	: libwpd libwpg ZLIB:zlib BOOST:boost soltools NULL
+mspub	libmspub	: libwpd libwpg ZLIB:zlib BOOST:boost ICU:icu soltools NULL
 mspub	libmspub\prj	nmake	-	all	mspub_libmspub NULL


More information about the Libreoffice-commits mailing list