diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-09-03 13:57:46 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-09-08 12:48:44 +0200 |
commit | 97ed2616bdc104a86655f4f629870193a6b222ce (patch) | |
tree | 124c98eac2aa946778d8231b5cf6d048e3d9b694 /libvisio | |
parent | 3d8ceca16461c12801f73a8bd67544bd4e4370e4 (diff) |
libvisio: convert to gbuild
Change-Id: Ie52c2ed87bf7631877bdf9a4cffc2f0a8fb3736c
Diffstat (limited to 'libvisio')
-rw-r--r-- | libvisio/Makefile | 7 | ||||
-rw-r--r-- | libvisio/Module_libvisio.mk | 22 | ||||
-rw-r--r-- | libvisio/Package_libvisio.mk | 20 | ||||
-rw-r--r-- | libvisio/StaticLibrary_visio.mk | 45 | ||||
-rw-r--r-- | libvisio/UnpackedTarball_visio.mk | 14 | ||||
-rw-r--r-- | libvisio/makefile.mk | 67 | ||||
-rw-r--r-- | libvisio/prj/d.lst | 6 | ||||
-rw-r--r-- | libvisio/prj/dmake | 0 |
8 files changed, 108 insertions, 73 deletions
diff --git a/libvisio/Makefile b/libvisio/Makefile new file mode 100644 index 000000000000..ccb1c85a04da --- /dev/null +++ b/libvisio/Makefile @@ -0,0 +1,7 @@ +# -*- 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: diff --git a/libvisio/Module_libvisio.mk b/libvisio/Module_libvisio.mk new file mode 100644 index 000000000000..6c4190d7251f --- /dev/null +++ b/libvisio/Module_libvisio.mk @@ -0,0 +1,22 @@ +# -*- 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,libvisio)) + +ifeq ($(SYSTEM_LIBVISIO),NO) + +$(eval $(call gb_Module_add_targets,libvisio,\ + Package_libvisio \ + StaticLibrary_visio \ + UnpackedTarball_visio \ +)) + +endif + +# vim: set noet sw=4 ts=4: diff --git a/libvisio/Package_libvisio.mk b/libvisio/Package_libvisio.mk new file mode 100644 index 000000000000..54bb8f416c0c --- /dev/null +++ b/libvisio/Package_libvisio.mk @@ -0,0 +1,20 @@ +# -*- 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,libvisio_inc,$(call gb_UnpackedTarball_get_dir,visio/src/lib))) + +$(eval $(call gb_Package_use_unpacked,libvisio_inc,visio)) + +$(eval $(call gb_Package_add_files,libvisio_inc,inc/external/libvisio,\ + libvisio.h \ + VisioDocument.h \ + VSDStringVector.h \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/libvisio/StaticLibrary_visio.mk b/libvisio/StaticLibrary_visio.mk new file mode 100644 index 000000000000..c917b6f5fa36 --- /dev/null +++ b/libvisio/StaticLibrary_visio.mk @@ -0,0 +1,45 @@ +# -*- 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,visiolib)) + +$(eval $(call gb_StaticLibrary_use_unpacked,visiolib,visio)) + +$(eval $(call gb_StaticLibrary_use_package,visiolib,libvisio_inc)) + +$(eval $(call gb_StaticLibrary_use_externals,visiolib,\ + wpd \ + wpg \ +)) + +$(eval $(call gb_StaticLibrary_set_cxx_suffix,visiolib,cpp)) + +$(eval $(call gb_StaticLibrary_add_generated_exception_objects,visiolib,\ + UnpackedTarball/visio/src/lib/libvisio_utils \ + UnpackedTarball/visio/src/lib/VisioDocument \ + UnpackedTarball/visio/src/lib/VSD11Parser \ + UnpackedTarball/visio/src/lib/VSD6Parser \ + UnpackedTarball/visio/src/lib/VSDInternalStream \ + UnpackedTarball/visio/src/lib/VSDStringVector \ + UnpackedTarball/visio/src/lib/VSDSVGGenerator \ + UnpackedTarball/visio/src/lib/VSDXCharacterList \ + UnpackedTarball/visio/src/lib/VSDXContentCollector \ + UnpackedTarball/visio/src/lib/VSDXFieldList \ + UnpackedTarball/visio/src/lib/VSDXGeometryList \ + UnpackedTarball/visio/src/lib/VSDXOutputElementList \ + UnpackedTarball/visio/src/lib/VSDXPages \ + UnpackedTarball/visio/src/lib/VSDXParagraphList \ + UnpackedTarball/visio/src/lib/VSDXParser \ + UnpackedTarball/visio/src/lib/VSDXShapeList \ + UnpackedTarball/visio/src/lib/VSDXStencils \ + UnpackedTarball/visio/src/lib/VSDXStyles \ + UnpackedTarball/visio/src/lib/VSDXStylesCollector \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/libvisio/UnpackedTarball_visio.mk b/libvisio/UnpackedTarball_visio.mk new file mode 100644 index 000000000000..aa9113bafd6d --- /dev/null +++ b/libvisio/UnpackedTarball_visio.mk @@ -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/. +# + +$(eval $(call gb_UnpackedTarball_UnpackedTarball,visio)) + +$(eval $(call gb_UnpackedTarball_set_tarball,visio,$(VISIO_TARBALL))) + +# vim: set noet sw=4 ts=4: diff --git a/libvisio/makefile.mk b/libvisio/makefile.mk deleted file mode 100644 index ab696923748b..000000000000 --- a/libvisio/makefile.mk +++ /dev/null @@ -1,67 +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 -# <http://www.openoffice.org/license.html> -# for a copy of the LGPLv3 License. -# -#************************************************************************* - -PRJ=. - -PRJNAME=visio -TARGET=visio - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Files -------------------------------------------------------- - -.IF "$(SYSTEM_LIBVISIO)" == "YES" -@all: - @echo "Using system libvisio..." -.ENDIF - -# libvisio depends on the libwpd and libwpg -.IF "$(SYSTEM_LIBWPD)" == "YES" -INCPRE+=$(WPD_CFLAGS) -.ELSE -INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpd -INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpd-stream -.ENDIF -.IF "$(SYSTEM_LIBWPG)" == "YES" -INCPRE+=$(WPG_CFLAGS) -.ELSE -INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpg -.ENDIF - -TARFILE_NAME=libvisio-0.0.19 -TARFILE_MD5=94e7f271e38c976462558b4278590178 - -BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS) -BUILD_DIR=src$/lib - -# --- Targets ------------------------------------------------------ - -.INCLUDE : set_ext.mk -.INCLUDE : target.mk -.INCLUDE : tg_ext.mk diff --git a/libvisio/prj/d.lst b/libvisio/prj/d.lst index 5680abe12d5b..e69de29bb2d1 100644 --- a/libvisio/prj/d.lst +++ b/libvisio/prj/d.lst @@ -1,6 +0,0 @@ -mkdir: %_DEST%\inc\libvisio -..\%__SRC%\misc\build\libvisio*\src\lib\libvisio.h %_DEST%\inc\libvisio -..\%__SRC%\misc\build\libvisio*\src\lib\VisioDocument.h %_DEST%\inc\libvisio\ -..\%__SRC%\misc\build\libvisio*\src\lib\VSDStringVector.h %_DEST%\inc\libvisio\ -..\%__SRC%\lib\*.a %_DEST%\lib\*.a -..\%__SRC%\slb\*.lib %_DEST%\lib\*.lib diff --git a/libvisio/prj/dmake b/libvisio/prj/dmake deleted file mode 100644 index e69de29bb2d1..000000000000 --- a/libvisio/prj/dmake +++ /dev/null |