Kaydet (Commit) be742b27 authored tarafından Matúš Kukan's avatar Matúš Kukan

libwpg: convert to gbuild

Change-Id: If440c551aedf805eb364c0fe575e8c5f4f66c18f
üst 0c6fbcad
......@@ -89,6 +89,7 @@ l10ntools\
libcdr\
libmspub\
libvisio\
libwpg\
libwps\
lingucomponent\
linguistic\
......@@ -216,7 +217,6 @@ liborcus\
libpng\
librsvg\
libwpd\
libwpg\
libxml2\
libxmlsec\
libxslt\
......
......@@ -76,6 +76,7 @@ $(eval $(call gb_Module_add_moduledirs,tail_end,\
libcdr \
libmspub \
libvisio \
libwpg \
libwps \
lingucomponent \
linguistic \
......
......@@ -85,6 +85,7 @@ $(eval $(call gb_Module_add_moduledirs,ooo,\
libcdr \
libmspub \
libvisio \
libwpg \
libwps \
lingucomponent \
linguistic \
......
......@@ -622,6 +622,7 @@ export WPD_CFLAGS=@WPD_CFLAGS@
export WPD_LIBS=@WPD_LIBS@
export WPG_CFLAGS=@WPG_CFLAGS@
export WPG_LIBS=@WPG_LIBS@
export WPG_TARBALL=@WPG_TARBALL@
export WPS_CFLAGS=@WPS_CFLAGS@
export WPS_LIBS=@WPS_LIBS@
export WPS_TARBALL=@WPS_TARBALL@
......
......@@ -6792,11 +6792,12 @@ elif test $_os = iOS; then
else
AC_MSG_RESULT([internal])
SYSTEM_LIBWPG=NO
BUILD_TYPE="$BUILD_TYPE LIBWPG"
WPG_TARBALL=9d283e02441d8cebdcd1e5d9df227d67-libwpg-0.2.1.tar.bz2
fi
AC_SUBST(SYSTEM_LIBWPG)
AC_SUBST(WPG_CFLAGS)
AC_SUBST(WPG_LIBS)
AC_SUBST(WPG_TARBALL)
dnl ===================================================================
dnl Check whether freetype2 supports emboldening
......
cdr libcdr : LIBWPD:libwpd LIBWPG:libwpg LCMS2:lcms2 ZLIB:zlib soltools NULL
cdr libcdr : LIBWPD:libwpd libwpg LCMS2:lcms2 ZLIB:zlib soltools NULL
cdr libcdr usr1 - all cdr_mkout NULL
cdr libcdr nmake - all cdr_libcdr NULL
mspub libmspub : LIBWPD:libwpd LIBWPG:libwpg ZLIB:zlib BOOST:boost soltools NULL
mspub libmspub : LIBWPD:libwpd libwpg ZLIB:zlib BOOST:boost soltools NULL
mspub libmspub usr1 - all mspub_mkout NULL
mspub libmspub nmake - all mspub_libmspub NULL
vsd libvisio : LIBWPD:libwpd LIBWPG:libwpg BOOST:boost soltools NULL
vsd libvisio : LIBWPD:libwpd libwpg BOOST:boost soltools NULL
vsd libvisio usr1 - all vsd_mkout NULL
vsd libvisio nmake - all vsd_libvisio NULL
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
include $(module_directory)/../solenv/gbuild/partial_build.mk
# vim: set noet sw=4 ts=4:
# -*- 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_Module_Module,libwpg))
ifeq ($(SYSTEM_LIBWPG),NO)
$(eval $(call gb_Module_add_targets,libwpg,\
Package_libwpg \
StaticLibrary_wpg \
UnpackedTarball_wpg \
))
endif
# vim: set noet sw=4 ts=4:
# -*- 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_Package_Package,libwpg_inc,$(call gb_UnpackedTarball_get_dir,wpg/src/lib)))
$(eval $(call gb_Package_use_unpacked,libwpg_inc,wpg))
$(eval $(call gb_Package_add_files,libwpg_inc,inc/external/libwpg,\
libwpg.h \
WPGPaintInterface.h \
WPGraphics.h \
))
# vim: set noet sw=4 ts=4:
# -*- 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,wpglib))
$(eval $(call gb_StaticLibrary_use_unpacked,wpglib,wpg))
$(eval $(call gb_StaticLibrary_use_package,wpglib,libwpg_inc))
$(eval $(call gb_StaticLibrary_use_externals,wpglib,\
wpd \
))
$(eval $(call gb_StaticLibrary_set_cxx_suffix,wpglib,cpp))
$(eval $(call gb_StaticLibrary_add_generated_exception_objects,wpglib,\
UnpackedTarball/wpg/src/lib/WPG1Parser \
UnpackedTarball/wpg/src/lib/WPG2Parser \
UnpackedTarball/wpg/src/lib/WPGBitmap \
UnpackedTarball/wpg/src/lib/WPGColor \
UnpackedTarball/wpg/src/lib/WPGDashArray \
UnpackedTarball/wpg/src/lib/WPGHeader \
UnpackedTarball/wpg/src/lib/WPGInternalStream \
UnpackedTarball/wpg/src/lib/WPGraphics \
UnpackedTarball/wpg/src/lib/WPGSVGGenerator \
UnpackedTarball/wpg/src/lib/WPGXParser \
))
# vim: set noet sw=4 ts=4:
# -*- 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,wpg))
$(eval $(call gb_UnpackedTarball_set_tarball,wpg,$(WPG_TARBALL)))
# vim: set noet sw=4 ts=4:
--- misc/libwpg-0.2.1/src/lib/makefile.mk 2011-09-12 09:04:43.000000000 +0200
+++ misc/build/libwpg-0.2.1/src/lib/makefile.mk 2011-10-05 14:47:18.028693834 +0200
@@ -17,7 +17,7 @@
.ENDIF
.IF "$(SYSTEM_LIBWPD)" == "YES"
-INCPRE+=$(LIBWPD_CFLAGS) -I..
+INCPRE+=$(WPD_CFLAGS) -I..
.ELSE
INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpd
.ENDIF
#*************************************************************************
#
# 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
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
PRJ=.
PRJNAME=wpg
TARGET=wpg
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
# --- Files --------------------------------------------------------
.IF "$(SYSTEM_LIBWPG)" == "YES"
@all:
@echo "Using system libwpg..."
.ENDIF
# libwpg depends on the libwpd framework
.IF "$(SYSTEM_LIBWPD)" == "YES"
INCPRE+=$(WPD_CFLAGS)
.ELSE
INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpd
INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpd-stream
.ENDIF
TARFILE_NAME=libwpg-0.2.1
TARFILE_MD5=9d283e02441d8cebdcd1e5d9df227d67
BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS)
BUILD_DIR=src/lib
PATCH_FILES=\
libwpg-0.2.1-build.patch
# --- Targets ------------------------------------------------------
.INCLUDE : set_ext.mk
.INCLUDE : target.mk
.INCLUDE : tg_ext.mk
mkdir: %_DEST%\inc\libwpg
..\%__SRC%\misc\build\libwpg*\src\lib\libwpg.h %_DEST%\inc\libwpg\
..\%__SRC%\misc\build\libwpg*\src\lib\WPGPaintInterface.h %_DEST%\inc\libwpg\
..\%__SRC%\misc\build\libwpg*\src\lib\WPGraphics.h %_DEST%\inc\libwpg\
..\%__SRC%\lib\*.a %_DEST%\lib\*.a
..\%__SRC%\slb\*.lib %_DEST%\lib\*.lib
......@@ -81,7 +81,7 @@ a2c10c04f396a9ce72894beb18b4e1f9-jpeg-8c.tar.gz
b63e6340a02ff1cacfeadb2c42286161-JLanguageTool-1.7.0.tar.bz2
0f63ee487fda8f21fafa767b3c447ac9-ixion-0.2.0.tar.gz
a0a861f539f0e7a91d05e6b9457e4db1-nss-3.13.5-with-nspr-4.9.1.tar.gz
9d283e02441d8cebdcd1e5d9df227d67-libwpg-0.2.1.tar.bz2
@WPG_TARBALL@
c01351d7db2b205de755d58769288224-libwpd-0.9.4.tar.bz2
@WPS_TARBALL@
@MDDS_TARBALL@
......
tb tail_build : AFMS:afms APACHE_COMMONS:apache-commons BSH:beanshell BERKELEYDB:berkeleydb BOOST:boost CAIRO:cairo CPPUNIT:cppunit DESKTOP:codemaker CURL:curl EXPAT:expat FONTCONFIG:fontconfig FREETYPE:freetype GLIB:glib GRAPHITE:graphite HUNSPELL:hunspell HYPHEN:hyphen ICU:icu DESKTOP:l10ntools JFREEREPORT:jfreereport JPEG:jpeg LCMS2:lcms2 LIBCMIS:libcmis LIBEXTTEXTCAT:libexttextcat LIBLANGTAG:liblangtag LIBXML2:libxml2 libxmlsec LIBXSLT:libxslt LIBWPG:libwpg LIBWPD:libwpd LIBORCUS:liborcus LPSOLVE:lpsolve MDDS:mdds MOZ:moz MYTHES:mythes NEON:neon NSS:nss OPENLDAP:openldap OPENSSL:openssl POSTGRESQL:postgresql PYTHON:python REDLAND:redland SAXON:saxon TRANSLATIONS:translations XPDF:xpdf ZLIB:zlib bridges cli_ure comphelper cppu cppuhelper external jurt jvmaccess jvmfwk offapi officecfg DESKTOP:rdbmaker readlicense_oo RHINO:rhino ridljar sal salhelper solenv soltools stoc ucbhelper ucpp udkapi xmlreader xsltml NULL
tb tail_build : AFMS:afms APACHE_COMMONS:apache-commons BSH:beanshell BERKELEYDB:berkeleydb BOOST:boost CAIRO:cairo CPPUNIT:cppunit DESKTOP:codemaker CURL:curl EXPAT:expat FONTCONFIG:fontconfig FREETYPE:freetype GLIB:glib GRAPHITE:graphite HUNSPELL:hunspell HYPHEN:hyphen ICU:icu DESKTOP:l10ntools JFREEREPORT:jfreereport JPEG:jpeg LCMS2:lcms2 LIBCMIS:libcmis LIBEXTTEXTCAT:libexttextcat LIBLANGTAG:liblangtag LIBXML2:libxml2 libxmlsec LIBXSLT:libxslt LIBWPD:libwpd LIBORCUS:liborcus LPSOLVE:lpsolve MDDS:mdds MOZ:moz MYTHES:mythes NEON:neon NSS:nss OPENLDAP:openldap OPENSSL:openssl POSTGRESQL:postgresql PYTHON:python REDLAND:redland SAXON:saxon TRANSLATIONS:translations XPDF:xpdf ZLIB:zlib bridges cli_ure comphelper cppu cppuhelper external jurt jvmaccess jvmfwk offapi officecfg DESKTOP:rdbmaker readlicense_oo RHINO:rhino ridljar sal salhelper solenv soltools stoc ucbhelper ucpp udkapi xmlreader xsltml NULL
tb tail_build\prj nmake - all tb_prj NULL
wp writerperfect : LIBWPG:libwpg libwps LIBWPD:libwpd libvisio libcdr libmspub LCMS2:lcms2 ZLIB:zlib sot comphelper xmloff svtools sfx2 LIBXSLT:libxslt NULL
wp writerperfect : libwpg libwps LIBWPD:libwpd libvisio libcdr libmspub LCMS2:lcms2 ZLIB:zlib sot comphelper xmloff svtools sfx2 LIBXSLT:libxslt NULL
wp writerperfect usr1 - all wp_mkout NULL
wp writerperfect\prj nmake - all wp_prj NULL
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