Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
36c3f914
Kaydet (Commit)
36c3f914
authored
May 24, 2014
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
build libodfgen as shared lib
Change-Id: I3a2c9f56e87ee6395bd3505a8fe372632e242312
üst
74042bc6
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
276 additions
and
8 deletions
+276
-8
RepositoryExternal.mk
RepositoryExternal.mk
+28
-2
0001-properly-export-API-symbols.patch
external/libodfgen/0001-properly-export-API-symbols.patch
+149
-0
ExternalPackage_libodfgen.mk
external/libodfgen/ExternalPackage_libodfgen.mk
+22
-0
ExternalProject_libodfgen.mk
external/libodfgen/ExternalProject_libodfgen.mk
+6
-5
Library_odfgen.mk
external/libodfgen/Library_odfgen.mk
+50
-0
Module_libodfgen.mk
external/libodfgen/Module_libodfgen.mk
+15
-1
UnpackedTarball_libodfgen.mk
external/libodfgen/UnpackedTarball_libodfgen.mk
+6
-0
No files found.
RepositoryExternal.mk
Dosyayı görüntüle @
36c3f914
...
...
@@ -1720,18 +1720,44 @@ endef
else # !SYSTEM_ODFGEN
ifeq ($(COM),MSC)
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
odfgen \
))
define gb_LinkTarget__use_odfgen
$(call gb_LinkTarget_set_include,$(1),\
-I$(call gb_UnpackedTarball_get_dir,libodfgen)/inc \
$$(INCLUDE) \
)
$(call gb_LinkTarget_use_libraries,$(1),\
odfgen \
)
endef
else # !MSC
$(eval $(call gb_Helper_register_packages_for_install,ooo, \
libodfgen \
))
define gb_LinkTarget__use_odfgen
$(call gb_LinkTarget_use_package,$(1),libodfgen)
$(call gb_LinkTarget_set_include,$(1),\
-I$(call gb_UnpackedTarball_get_dir,libodfgen)/inc \
$$(INCLUDE) \
)
$(call gb_LinkTarget_add_libs,$(1),\
$(call gb_UnpackedTarball_get_dir,libodfgen)/src/.libs/libodfgen-0.0$(gb_StaticLibrary_PLAINEXT)
\
-L$(call gb_UnpackedTarball_get_dir,libodfgen)/src/.libs -lodfgen-0.0
\
)
$(call gb_LinkTarget_use_external_project,$(1),libodfgen)
endef
endif
endif # SYSTEM_ODFGEN
...
...
external/libodfgen/0001-properly-export-API-symbols.patch
0 → 100644
Dosyayı görüntüle @
36c3f914
From 431087afd938b0d9cea2f5c4b88da0746e3758a8 Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Sat, 24 May 2014 20:19:17 +0200
Subject: [PATCH] properly export API symbols
---
inc/libodfgen/Makefile.am | 1 +
inc/libodfgen/OdfDocumentHandler.hxx | 4 +++-
inc/libodfgen/OdgGenerator.hxx | 3 ++-
inc/libodfgen/OdpGenerator.hxx | 3 ++-
inc/libodfgen/OdsGenerator.hxx | 3 ++-
inc/libodfgen/OdtGenerator.hxx | 3 ++-
inc/libodfgen/libodfgen-api.hxx | 38 ++++++++++++++++++++++++++++++++++++
src/Makefile.am | 5 +++--
8 files changed, 53 insertions(+), 7 deletions(-)
create mode 100644 inc/libodfgen/libodfgen-api.hxx
diff --git a/inc/libodfgen/OdfDocumentHandler.hxx b/inc/libodfgen/OdfDocumentHandler.hxx
index 79c387b..19e04e3 100644
--- a/inc/libodfgen/OdfDocumentHandler.hxx
+++ b/inc/libodfgen/OdfDocumentHandler.hxx
@@ -26,6 +26,8 @@
#define _ODFDOCUMENTHANDLER_HXX_
#include <libwpd/libwpd.h>
+#include "libodfgen-api.hxx"
+
/** Type of ODF content a generator should produce.
*
* @sa OdgGenerator, OdpGenerator, OdtGenerator
@@ -57,7 +59,7 @@ typedef bool (*OdfEmbeddedImage)(const WPXBinaryData &input, librev
* saved to a file, printed to the standard output, saved to a file
* inside a package, or whatever else.
*/
-class OdfDocumentHandler
+class ODFGENAPI OdfDocumentHandler
{
public:
virtual ~OdfDocumentHandler() {}
diff --git a/inc/libodfgen/OdgGenerator.hxx b/inc/libodfgen/OdgGenerator.hxx
index f818e3e..24455d8 100644
--- a/inc/libodfgen/OdgGenerator.hxx
+++ b/inc/libodfgen/OdgGenerator.hxx
@@ -27,6 +27,7 @@
#include <libwpd/libwpd.h>
#include <libwpg/libwpg.h>
+#include "libodfgen-api.hxx"
#include "OdfDocumentHandler.hxx"
class OdgGeneratorPrivate;
@@ -37,7 +38,7 @@ class OdgGeneratorPrivate;
* See @c libwpg library for documentation of the
* libwpg::WPGPaintInterface interface.
*/
-class OdgGenerator : public libwpg::WPGPaintInterface
+class ODFGENAPI OdgGenerator : public libwpg::WPGPaintInterface
{
public:
OdgGenerator(OdfDocumentHandler *pHandler, const OdfStreamType streamType);
diff --git a/inc/libodfgen/OdpGenerator.hxx b/inc/libodfgen/OdpGenerator.hxx
index 71f2562..c61f5ad 100644
--- a/inc/libodfgen/OdpGenerator.hxx
+++ b/inc/libodfgen/OdpGenerator.hxx
@@ -27,6 +27,7 @@
#include <libetonyek/libetonyek.h>
+#include "libodfgen-api.hxx"
#include "OdfDocumentHandler.hxx"
class OdpGeneratorPrivate;
@@ -37,7 +38,7 @@ class OdpGeneratorPrivate;
* See @c libetonyek library for documentation of the
* libetonyek::KEYPresentationInterface interface.
*/
-class OdpGenerator : public libetonyek::KEYPresentationInterface
+class ODFGENAPI OdpGenerator : public libetonyek::KEYPresentationInterface
{
public:
OdpGenerator(OdfDocumentHandler *pHandler, const OdfStreamType streamType);
diff --git a/inc/libodfgen/OdtGenerator.hxx b/inc/libodfgen/OdtGenerator.hxx
index 9c3ff88..e11778c 100644
--- a/inc/libodfgen/OdtGenerator.hxx
+++ b/inc/libodfgen/OdtGenerator.hxx
@@ -29,6 +29,7 @@
#include <libwpd/libwpd.h>
+#include "libodfgen-api.hxx"
#include "OdfDocumentHandler.hxx"
/** Handler for embedded objects.
@@ -39,7 +40,7 @@ class OdfGenerator;
* See @c libwpd library for documentation of the ::WPXDocumentInterface
* interface.
*/
-class OdtGenerator : public WPXDocumentInterface
+class ODFGENAPI OdtGenerator : public WPXDocumentInterface
{
public:
OdtGenerator(OdfDocumentHandler *pHandler, const OdfStreamType streamType);
diff --git a/inc/libodfgen/libodfgen-api.hxx b/inc/libodfgen/libodfgen-api.hxx
new file mode 100644
index 0000000..39ffd05
--- /dev/null
+++ b/inc/libodfgen/libodfgen-api.hxx
@@ -0,0 +1,38 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* libodfgen
+ * Version: MPL 2.0 / LGPLv2.1+
+ *
+ * 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/.
+ *
+ * Major Contributor(s):
+ * Copyright (C) 2013 Fridrich Strba <fridrich.strba@bluewin.ch>
+ * Copyright (C) 2011 Eilidh McAdam <tibbylickle@gmail.com>
+ *
+ * For minor contributions see the git repository.
+ *
+ * Alternatively, the contents of this file may be used under the terms
+ * of the GNU Lesser General Public License Version 2.1 or later
+ * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
+ * applicable instead of those above.
+ *
+ * For further information visit http://libwpd.sourceforge.net
+ */
+
+#ifndef INCLUDED_LIBODFGEN_LIBODFGEN_API_HXX
+#define INCLUDED_LIBODFGEN_LIBODFGEN_API_HXX
+
+#ifdef DLL_EXPORT
+#ifdef LIBODFGEN_BUILD
+#define ODFGENAPI __declspec(dllexport)
+#else
+#define ODFGENAPI __declspec(dllimport)
+#endif
+#else
+#define ODFGENAPI
+#endif
+
+#endif // INCLUDED_LIBODFGEN_LIBODFGEN_API_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
--
1.9.0
external/libodfgen/ExternalPackage_libodfgen.mk
0 → 100644
Dosyayı görüntüle @
36c3f914
# -*- 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,libodfgen))
$(eval $(call gb_ExternalPackage_use_external_project,libodfgen,libodfgen))
ifeq ($(OS),MACOSX)
$(eval $(call gb_ExternalPackage_add_file,libodfgen,$(LIBO_LIB_FOLDER)/libodfgen-0.0.0.dylib,src/.libs/libodfgen-0.0.dylib))
else ifeq ($(OS),WNT)
$(eval $(call gb_ExternalPackage_add_file,libodfgen,$(LIBO_LIB_FOLDER)/libodfgen-0.0.dll,src/.libs/libodfgen-0.0.dll))
else ifeq ($(filter IOS ANDROID,$(OS)),)
$(eval $(call gb_ExternalPackage_add_file,libodfgen,$(LIBO_LIB_FOLDER)/libodfgen-0.0.so.0,src/.libs/libodfgen-0.0.so.0.0.4))
endif
# vim: set noet sw=4 ts=4:
external/libodfgen/ExternalProject_libodfgen.mk
Dosyayı görüntüle @
36c3f914
...
...
@@ -27,16 +27,17 @@ $(call gb_ExternalProject_get_state_target,libodfgen,build) :
export PKG_CONFIG="" \
&& ./configure \
--with-pic \
--enable-s
tatic
\
--disable-s
hared
\
--enable-s
hared
\
--disable-s
tatic
\
--disable-debug \
--disable-werror \
--disable-weffc \
--without-docs \
$(if $(VERBOSE)$(verbose),--enable-silent-rules) \
CXXFLAGS="$(if $(SYSTEM_BOOST),$(BOOST_CPPFLAGS),-I$(call gb_UnpackedTarball_get_dir,boost) -I$(BUILDDIR)/config_$(gb_Side))" \
$(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
&& (cd $(EXTERNAL_WORKDIR)/src && \
$(if $(VERBOSE)$(verbose),V=1) \
$(MAKE)) \
$(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
&& $(MAKE) \
)
# vim: set noet sw=4 ts=4:
external/libodfgen/Library_odfgen.mk
0 → 100644
Dosyayı görüntüle @
36c3f914
# -*- 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_Library_Library,odfgen))
$(eval $(call gb_Library_use_unpacked,odfgen,libodfgen))
$(eval $(call gb_Library_use_externals,odfgen,\
boost_headers \
etonyek \
wpd \
wpg \
))
$(eval $(call gb_Library_set_warnings_not_errors,odfgen))
$(eval $(call gb_Library_set_include,odfgen,\
-I$(call gb_UnpackedTarball_get_dir,libodfgen)/inc \
$$(INCLUDE) \
))
$(eval $(call gb_Library_add_defs,odfgen,\
-DBOOST_ALL_NO_LIB \
-DDLL_EXPORT \
-DLIBODFGEN_BUILD \
-DNDEBUG \
))
$(eval $(call gb_Library_add_generated_exception_objects,odfgen,\
UnpackedTarball/libodfgen/src/DocumentElement \
UnpackedTarball/libodfgen/src/FontStyle \
UnpackedTarball/libodfgen/src/GraphicFunctions \
UnpackedTarball/libodfgen/src/InternalHandler \
UnpackedTarball/libodfgen/src/ListStyle \
UnpackedTarball/libodfgen/src/OdgGenerator \
UnpackedTarball/libodfgen/src/OdpGenerator \
UnpackedTarball/libodfgen/src/OdtGenerator \
UnpackedTarball/libodfgen/src/PageSpan \
UnpackedTarball/libodfgen/src/SectionStyle \
UnpackedTarball/libodfgen/src/TableStyle \
UnpackedTarball/libodfgen/src/TextRunStyle \
))
# vim: set noet sw=4 ts=4:
external/libodfgen/Module_libodfgen.mk
Dosyayı görüntüle @
36c3f914
...
...
@@ -10,8 +10,22 @@
$(eval $(call gb_Module_Module,libodfgen))
$(eval $(call gb_Module_add_targets,libodfgen,\
ExternalProject_libodfgen \
UnpackedTarball_libodfgen \
))
ifeq ($(COM),MSC)
$(eval $(call gb_Module_add_targets,libodfgen,\
Library_odfgen \
))
else
$(eval $(call gb_Module_add_targets,libodfgen,\
ExternalPackage_libodfgen \
ExternalProject_libodfgen \
))
endif
# vim: set noet sw=4 ts=4:
external/libodfgen/UnpackedTarball_libodfgen.mk
Dosyayı görüntüle @
36c3f914
...
...
@@ -11,4 +11,10 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,libodfgen))
$(eval $(call gb_UnpackedTarball_set_tarball,libodfgen,$(ODFGEN_TARBALL)))
$(eval $(call gb_UnpackedTarball_set_patchlevel,libodfgen,1))
$(eval $(call gb_UnpackedTarball_add_patches,libodfgen,\
external/libodfgen/0001-properly-export-API-symbols.patch \
))
# vim: set noet sw=4 ts=4:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment