diff options
Diffstat (limited to 'libodfgen')
-rw-r--r-- | libodfgen/ExternalPackage_libodfgen.mk | 28 | ||||
-rw-r--r-- | libodfgen/ExternalProject_libodfgen.mk | 40 | ||||
-rw-r--r-- | libodfgen/Makefile | 7 | ||||
-rw-r--r-- | libodfgen/Module_libodfgen.mk | 22 | ||||
-rw-r--r-- | libodfgen/README | 1 | ||||
-rw-r--r-- | libodfgen/UnpackedTarball_odfgen.mk | 14 |
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: |