summaryrefslogtreecommitdiff
path: root/libodfgen
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-05-02 20:25:51 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-05-02 20:26:23 +0200
commit93848e11ec7d28ddef35ee165e12d847f2fafcea (patch)
treec2728e1a902b21852469c97d5c8c1111f6b01154 /libodfgen
parent7de37ac7d633ba12cd90a38b2255130ef8e88b1a (diff)
Splitting writerperfect into serializer and libodfgen
Change-Id: I69f12fb097dbc977e63463b6b764a3553bcf9271
Diffstat (limited to 'libodfgen')
-rw-r--r--libodfgen/ExternalPackage_libodfgen.mk28
-rw-r--r--libodfgen/ExternalProject_libodfgen.mk40
-rw-r--r--libodfgen/Makefile7
-rw-r--r--libodfgen/Module_libodfgen.mk22
-rw-r--r--libodfgen/README1
-rw-r--r--libodfgen/UnpackedTarball_odfgen.mk14
6 files changed, 112 insertions, 0 deletions
diff --git a/libodfgen/ExternalPackage_libodfgen.mk b/libodfgen/ExternalPackage_libodfgen.mk
new file mode 100644
index 000000000000..0f9e7a01edb3
--- /dev/null
+++ b/libodfgen/ExternalPackage_libodfgen.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_ExternalPackage_ExternalPackage,libodfgen,odfgen))
+
+$(eval $(call gb_ExternalPackage_add_unpacked_files,libodfgen,inc/external/libodfgen,\
+ src/libodfgen.hxx \
+ src/OdfDocumentHandler.hxx \
+ src/OdtGenerator.hxx \
+ src/OdgGenerator.hxx \
+))
+
+$(eval $(call gb_ExternalPackage_use_external_project,libodfgen,libodfgen))
+
+ifeq ($(COM),MSC)
+$(eval $(call gb_ExternalPackage_add_file,libodfgen,lib/odfgen-0.0.lib,src/lib/.libs/libodfgen-0.0.lib))
+else
+$(eval $(call gb_ExternalPackage_add_file,libodfgen,lib/libodfgen-0.0.a,src/lib/.libs/libodfgen-0.0.a))
+endif
+
+
+# vim: set noet sw=4 ts=4:
diff --git a/libodfgen/ExternalProject_libodfgen.mk b/libodfgen/ExternalProject_libodfgen.mk
new file mode 100644
index 000000000000..eb6e9c58493e
--- /dev/null
+++ b/libodfgen/ExternalProject_libodfgen.mk
@@ -0,0 +1,40 @@
+# -*- 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,libodfgen))
+
+$(eval $(call gb_ExternalProject_use_unpacked,libodfgen,odfgen))
+
+$(eval $(call gb_ExternalProject_use_autoconf,libodfgen,build))
+
+$(eval $(call gb_ExternalProject_register_targets,libodfgen,\
+ build \
+))
+
+$(eval $(call gb_ExternalProject_use_externals,libodfgen,\
+ boost_headers \
+ wpd \
+ wpg \
+))
+
+$(call gb_ExternalProject_get_state_target,libodfgen,build) :
+ $(call gb_ExternalProject_run,build,\
+ export PKG_CONFIG="" \
+ && ./configure \
+ --with-pic \
+ --enable-static \
+ --disable-shared \
+ --disable-debug \
+ --disable-werror \
+ CXXFLAGS="$(if $(filter NO,$(SYSTEM_BOOST)),-I$(call gb_UnpackedTarball_get_dir,boost),$(BOOST_CPPFLAGS))" \
+ $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
+ && (cd $(EXTERNAL_WORKDIR)/src && $(MAKE)) \
+ )
+
+# vim: set noet sw=4 ts=4:
diff --git a/libodfgen/Makefile b/libodfgen/Makefile
new file mode 100644
index 000000000000..ccb1c85a04da
--- /dev/null
+++ b/libodfgen/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/libodfgen/Module_libodfgen.mk b/libodfgen/Module_libodfgen.mk
new file mode 100644
index 000000000000..c88c4bf7661d
--- /dev/null
+++ b/libodfgen/Module_libodfgen.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,libodfgen))
+
+ifeq ($(SYSTEM_ODFGEN),NO)
+
+$(eval $(call gb_Module_add_targets,libodfgen,\
+ ExternalPackage_libodfgen \
+ ExternalProject_libodfgen \
+ UnpackedTarball_odfgen \
+))
+
+endif
+
+# vim: set noet sw=4 ts=4:
diff --git a/libodfgen/README b/libodfgen/README
new file mode 100644
index 000000000000..efeffac5dc21
--- /dev/null
+++ b/libodfgen/README
@@ -0,0 +1 @@
+From [http://libwpg.sourceforge.net/]. Library to generate ODT and ODG documents from libwpd and libwpg API calls.
diff --git a/libodfgen/UnpackedTarball_odfgen.mk b/libodfgen/UnpackedTarball_odfgen.mk
new file mode 100644
index 000000000000..45b8aaaa2670
--- /dev/null
+++ b/libodfgen/UnpackedTarball_odfgen.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,odfgen))
+
+$(eval $(call gb_UnpackedTarball_set_tarball,odfgen,$(ODFGEN_TARBALL)))
+
+# vim: set noet sw=4 ts=4: