summaryrefslogtreecommitdiff
path: root/libmspub
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-09-04 13:11:45 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-09-08 12:50:39 +0200
commit105edf31b9e9be7cbc033d8ed09b382457fd1264 (patch)
tree2d6708ddafcd390bf5d8c94721a3ab1948a9b2bb /libmspub
parent71a3db78930b7b804231e2a6c576cad672d39c8d (diff)
libmspub: convert to gbuild
Change-Id: I502c849e40d84e6038b0b83fe344699944ec4a8f
Diffstat (limited to 'libmspub')
-rw-r--r--libmspub/Makefile7
-rw-r--r--libmspub/Module_libmspub.mk22
-rw-r--r--libmspub/Package_libmspub.mk20
-rw-r--r--libmspub/StaticLibrary_mspub.mk42
-rw-r--r--libmspub/UnpackedTarball_mspub.mk18
-rw-r--r--libmspub/makefile.mk75
-rw-r--r--libmspub/prj/d.lst6
-rw-r--r--libmspub/prj/dmake0
8 files changed, 109 insertions, 81 deletions
diff --git a/libmspub/Makefile b/libmspub/Makefile
new file mode 100644
index 000000000000..ccb1c85a04da
--- /dev/null
+++ b/libmspub/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/libmspub/Module_libmspub.mk b/libmspub/Module_libmspub.mk
new file mode 100644
index 000000000000..d81abdd60f29
--- /dev/null
+++ b/libmspub/Module_libmspub.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,libmspub))
+
+ifeq ($(SYSTEM_LIBMSPUB),NO)
+
+$(eval $(call gb_Module_add_targets,libmspub,\
+ Package_libmspub \
+ StaticLibrary_mspub \
+ UnpackedTarball_mspub \
+))
+
+endif
+
+# vim: set noet sw=4 ts=4:
diff --git a/libmspub/Package_libmspub.mk b/libmspub/Package_libmspub.mk
new file mode 100644
index 000000000000..af25dc129c74
--- /dev/null
+++ b/libmspub/Package_libmspub.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,libmspub_inc,$(call gb_UnpackedTarball_get_dir,mspub/src/lib)))
+
+$(eval $(call gb_Package_use_unpacked,libmspub_inc,mspub))
+
+$(eval $(call gb_Package_add_files,libmspub_inc,inc/external/libmspub,\
+ libmspub.h \
+ MSPUBDocument.h \
+ MSPUBStringVector.h \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/libmspub/StaticLibrary_mspub.mk b/libmspub/StaticLibrary_mspub.mk
new file mode 100644
index 000000000000..2d6ab4519f65
--- /dev/null
+++ b/libmspub/StaticLibrary_mspub.mk
@@ -0,0 +1,42 @@
+# -*- 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 \
+))
+
+$(eval $(call gb_StaticLibrary_set_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
new file mode 100644
index 000000000000..cb1503f513e9
--- /dev/null
+++ b/libmspub/UnpackedTarball_mspub.mk
@@ -0,0 +1,18 @@
+# -*- 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,mspub))
+
+$(eval $(call gb_UnpackedTarball_set_tarball,mspub,$(MSPUB_TARBALL)))
+
+$(eval $(call gb_UnpackedTarball_set_patches,mspub,\
+ libmspub/libmspub-0.0.3.patch \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/libmspub/makefile.mk b/libmspub/makefile.mk
deleted file mode 100644
index 635d8ed6c838..000000000000
--- a/libmspub/makefile.mk
+++ /dev/null
@@ -1,75 +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=mspub
-TARGET=mspub
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : settings.mk
-
-# --- Files --------------------------------------------------------
-
-.IF "$(SYSTEM_LIBMSPUB)" == "YES"
-@all:
- @echo "Using system libmspub..."
-.ENDIF
-
-# libcdr depends on the libwpd, libwpg and zlib
-.IF "$(SYSTEM_LIBWPD)" == "YES"
-INCPRE+=$(WPD_CFLAGS)
-.ELSE
-INCPRE+=$(SOLARVER)$/$(INPATH)$/inc$/libwpd
-INCPRE+=$(SOLARVER)$/$(INPATH)$/inc$/libwpd-stream
-.ENDIF
-.IF "$(SYSTEM_LIBWPG)" == "YES"
-INCPRE+=$(WPG_CFLAGS)
-.ELSE
-INCPRE+=$(SOLARVER)$/$(INPATH)$/inc$/libwpg
-.ENDIF
-.IF "$(SYSTEM_ZLIB)" == "YES"
-INCPRE+=$(ZLIB_CFLAGS)
-.ELSE
-INCPRE+=$(SOLARVER)$/$(INPATH)$/inc$/zlib
-.ENDIF
-
-TARFILE_NAME=libmspub-0.0.3
-TARFILE_MD5=b2db54b6e96287ac995d7ed654ace4fc
-
-BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS)
-BUILD_DIR=src$/lib
-
-PATCH_FILES=\
- $(TARFILE_NAME).patch
-
-# --- Targets ------------------------------------------------------
-
-.INCLUDE : set_ext.mk
-.INCLUDE : target.mk
-.INCLUDE : tg_ext.mk
diff --git a/libmspub/prj/d.lst b/libmspub/prj/d.lst
index 3a8654ef36ef..e69de29bb2d1 100644
--- a/libmspub/prj/d.lst
+++ b/libmspub/prj/d.lst
@@ -1,6 +0,0 @@
-mkdir: %_DEST%\inc\libmspub
-..\%__SRC%\misc\build\libmspub*\src\lib\libmspub.h %_DEST%\inc\libmspub
-..\%__SRC%\misc\build\libmspub*\src\lib\MSPUBDocument.h %_DEST%\inc\libmspub\
-..\%__SRC%\misc\build\libmspub*\src\lib\MSPUBStringVector.h %_DEST%\inc\libmspub\
-..\%__SRC%\lib\*.a %_DEST%\lib\*.a
-..\%__SRC%\slb\*.lib %_DEST%\lib\*.lib
diff --git a/libmspub/prj/dmake b/libmspub/prj/dmake
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/libmspub/prj/dmake
+++ /dev/null