38 Commits
Author SHA1 Message Date
Caolán McNamara be780967ed more consts up for libwpd
Change-Id: I20bcd2efb33e72a7bcce4b3e07d47db05758ea6f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188274
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-07-24 14:39:13 +02:00
Caolán McNamara 53bc460b9b const up libwpd
Change-Id: Icd8dd62f43fcd54a3eb485aac82375b15a1153c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188055
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-07-19 11:20:35 +02:00
Christian Lohmaier 875a1bf2e1 makefile simplification: replace $(call gb_UnpackedTarball_get_dir,foo)
…by a simple/static $(gb_UnpackedTarball_workdir)/foo
see also 0c4c84a14b

Change-Id: I8e6aa55c85534c4446556548910c950ddbe7c6fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167163
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2024-05-06 11:40:45 +02:00
Julien Nabet 5424bcd28f tdf#153034: Three wrong Greek characters in WordPerfect 5 import
Retrieve of the commits of upstream, waiting for libwpd 0.10.4 release.

Change-Id: Ie7ef425d1a25e0cb77a00c75c13bc392c30aae12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156768
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-09-10 09:37:35 +02:00
Luboš Luňák ea68de2968 use gb_DEBUGINFO_FLAGS consistently in gbuild ExternalProject's
A number of them didn't use it at all, others had it hand-written
in various ways.

Change-Id: Iaf86325f9cdc032926bac917dc3eef4e34661544
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132818
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-12 13:57:32 +02:00
Jan-Marek Glogowski 4537886ec1 externals: always provide platform configure flags
No idea why we just provided the platform flags when cross-
compiling. In the curious case, where the host platform is
detected as x86_64-pc-mingw32 per default and we actually
want to override it with x86_64-pc-cygwin, we don't do a
cross compile, but must override the host platform.

But there is additional special handling needed for the omitted
cross-platform build in the special case of --host=i686-pc-cygwin
and --build=x86_64-pc-cygwin, where we deliberatly ignore cross
building; Windows is already a slow build, so try to keep this
optimization (AMD64 can execute x86 binaries).

There is the theoretical case, where the externals config.guess
would have detected something else and that "magically" even
worked, while the LO detected triplet would fail, but this
should be fixed in the external in any way.

Change-Id: Ib7a9719e0e406fe90334b7611dc3f01b51692bfa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129153
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2022-01-31 10:31:04 +01:00
Jan-Marek Glogowski 8a4173987e WASM: add initial support for Emscripten cross build
- configure with:
- --host=wasm64-local-emscripten
- had to make a few externals optional, so adding:
  - --disable-nss
  - --disable-cmis
  - --disable-curl

Change-Id: I48d1c73d2675ad2e2beaf2c341578199efbd24ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111130
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-05-05 21:14:54 +02:00
Stephan Bergmann 8d378abf1d external/libwpd: Missing include for size_t
...as now reported when building with recent trunk GCC/libstdc++ on Linux:

> In file included from WPXContentListener.cpp:26:
> In file included from ./WPXContentListener.h:29:
> ./WPXTable.h:56:31: error: unknown type name 'size_t'; did you mean 'std::size_t'?
>         const WPXTableCell  *getCell(size_t i, size_t j)
>                                      ^~~~~~
>                                      std::size_t

Change-Id: Ic20240f01c7b0305cb87ababf53a3aaf66072d61
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105324
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-11-05 10:16:30 +01:00
Tor Lillqvist 37c9f427cb Use equal number of leading and trailing context lines in patch
Change-Id: Ic2625e561515b9ec3bd320ad4e61133e3eb37695
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95846
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-06-09 06:39:36 +02:00
Luboš Luňák 0adc9b615f GBUILD_TRACE, support for finding out where the build time is spent
See instructions in solenv/gbuild/Trace.mk . This generates a file than
can be viewed e.g. in the Chromium tracing view.

Change-Id: I5f90647c58ca729375525b6daed2d4918adc8188
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88754
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-02-16 14:49:45 +01:00
Luboš Luňák f5fa61e7f0 add PCHs for more external libs
I think this is all external libs where it makes sense for them
to have their own PCH and be worth it. Maybe some smaller externals
can also use the common system PCH, but unfortunately many externals
use all kinds of defines that affect system headers, which is
a problem for the common system PCH.

Change-Id: I2c589ac55d93728daf3b158df110722e5f055d45
Reviewed-on: https://gerrit.libreoffice.org/80728
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2019-10-14 11:07:30 +02:00
Luboš Luňák cb7a39ac64 disable warnings in external libs
As in, really disable, so that they do not even show. This moreover
avoids tons of D9025 warnings from MSVC about overriding -W4 with -w.

Change-Id: Ia2e72fd72d883d91bdd89e467ee42f259e2ae033
Reviewed-on: https://gerrit.libreoffice.org/72899
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2019-05-24 13:46:03 +02:00
Tor Lillqvist 7fc2819286 Skip these patches for iOS, too
Change-Id: I2b99cd30b151eaa0302abaa9fdfa92fe8300a4d5
2019-01-07 13:06:31 +02:00
David Tardon 87742f16e2 upload libwpd 0.10.3
Change-Id: I68e3791f50b95956bfe6aae743978994a5f232b4
Reviewed-on: https://gerrit.libreoffice.org/65714
Tested-by: Jenkins
Reviewed-by: David Tardon <dtardon@redhat.com>
2018-12-29 16:42:23 +01:00
David Tardon 193b6c2287 use predefined workdir path
Change-Id: Ia14aaba92e5d36064bc6a77dbc63463a833d8745
Reviewed-on: https://gerrit.libreoffice.org/43969
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2017-10-28 16:49:17 +02:00
David Tardon 7a2e7c32d3 libwpd: always set CXXFLAGS
Change-Id: I211f346c428059e20dd1217b5b65fe8c1ab24710
Reviewed-on: https://gerrit.libreoffice.org/43968
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-10-28 10:43:19 +02:00
David Tardon 648d649399 there is no C code in libwpd
Change-Id: I2997c09aaafb9f64e654f8b3b78e37adfa3de733
2017-10-27 22:08:17 +02:00
David Tardon f2db08b28e use the new gbuild way to update config.*
Change-Id: I43805ac8c3d5c1b65519da02c3cc50fdb9729ea6
Reviewed-on: https://gerrit.libreoffice.org/42941
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-10-04 08:12:43 +02:00
David Tardon 196e1e6d8b upload libwpd 0.10.2
Change-Id: I7ee8557f5e8d4c66f0b839bfe5f4affb16095daa
Reviewed-on: https://gerrit.libreoffice.org/42235
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-09-14 18:48:10 +02:00
Caolán McNamara dd89afa6ee Resolves: tdf#112269 libwpd fix
Change-Id: I0d8d6887fa360c05d5f9e2a070410c77926b9ce1
Reviewed-on: https://gerrit.libreoffice.org/42054
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-07 17:23:42 +02:00
Stephan Bergmann e751e24250 --enable-optimized should be orthogonal to --enable-debug/--enable-dbgutil
Change-Id: I277f30129560ea9fa76d6439a60bb191358df99d
Reviewed-on: https://gerrit.libreoffice.org/39088
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2017-06-22 11:59:14 +02:00
jan Iversen 8040871f44 iOS, patch libwpd
Support for arm64

Change-Id: I7aeaab4c73315e8f66a617c9b258cfb02a54175b
2017-06-13 14:13:41 +02:00
David Tardon 9bfa7afe15 upload libwpd 0.10.1
Change-Id: Iba35a273230c96914d527475a8cefcbfab14c341
2015-12-30 13:23:36 +01:00
Norbert Thiebaud a8db357874 gbuild/config stop using VERBOSE, use only verbose=t
configure.ac was setting VERBOSE=YES/NO when really
we use verbose=t or verbose=

Change-Id: I47aee8d177cb2d788a62ecdbbb9cc3695c2bb299
Reviewed-on: https://gerrit.libreoffice.org/17634
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-11 04:34:45 +00:00
Andras Timar 4284337d92 libwpd bundled soname patch
Change-Id: I25dee74be0391b56587b4cc3eb9599708446825d
Reviewed-on: https://gerrit.libreoffice.org/17548
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2015-08-07 07:36:49 +00:00
Stephan Bergmann 1d028d4783 Fix Linux RPATH of various external modules
...as discussed in 371cc81bd9 "external/liborcus:
Fix Linux RPATH:"

* When an external module produces multiple libraries (that we all install) that
  depend on each other, they need to contain $ORIGIN in RPATH (strictly
  speaking, those that do not depend on any other libraries from the module
  would not need that, but it is harmless and easier to do that way).

* When an external module's libraries depend on other external modules'
  libraries, and (at least some of) those other external modules are not
  configuread as --with-system-*, they need to contain $ORIGIN in RPATH (again,
  for simplicity, some libraries may get that even if they would not strictly
  need it).

* Try to outsmart the external modules' libtool instances to not add (ultimately
  bogus) paths to RPATH for dependencies on libraries from external modules
  (either from the same module, or from anohter module not configured as
  --with-system-*).  The only time we do not outsmart libtool, and instead rely
  on it (hopefully?) doing the right thing is when a given external modules'
  libraries depend on libraries from excatly one other external module, and the
  latter is configured as --with-system-*.

* That outsmarting means that if an external library depends both on external
  libraries provided by modules not configured as --with-system-* (so RPATH
  contains $ORIGIN, and the outsmarting is not suppressed) and on external
  libraries provided by modules configured as --with-system-*:  Then if the
  latter are in unusual locations on the system that would require an RPATH
  entry (which might be provided via the corresponding "pkg-config --libs", say,
  and presumably would be honoured by libtool if we did not outsmart it), then
  those paths are now erroneously missing from RPATH.

* That outsmarting also causes linking of some utility applications in module
  redland to fail, but those are ultimately unused, so cut them off by patching
  their respective sub-directory Makefile.in.

Change-Id: Iec05b3568fbcf04987018322c328b769ae4f5dab
2015-06-12 14:59:40 +02:00
Stephan Bergmann 0329dbd310 Fix Mac OS X install names of external libwpd/libwpg
Change-Id: I25eae3874c7ca4cf4e23673604a1f77e1fa15451
2015-06-08 12:23:20 +02:00
David Tardon 05c1a94a54 use $(DISABLE_DYNLOADING) consistently
Change-Id: Iec611290770ae0393eb787a3883bb22a12340b0a
2015-06-05 14:50:03 +02:00
Stephan Bergmann fc6f894d22 Pass -fvisibility-inlines-hidden into external modules
Change-Id: Icf872e269c7e427ba1287ccd0082974c9426449e
2015-02-27 09:55:02 +01:00
Tor Lillqvist b5a375236b Build external libs statically in the DISABLE_DYNLOADING case
Fixes build for iOS.

In theory, it is a bit unclear whether DISABLE_DYNLOADING means to 1)
not build any dynamic libraries at all, not even of bundled 3rd-party
libraries, or 2) not build any own dynamic libraries, including
dynamically loaded UNO components, while still building 3rd-party
libraries as dynamic. But in practice, a use case for the latter is
nonexistent, nobody uses --disable-dynamic-loading in their
autogen.input, and DISABLE_DYNLOADING is turned on automatically for
iOS and Android.

What we want for iOS, for an LO-based app, is to not build any dynamic
libraries at all, but produce a single executable. Correspondingly for
Android, at least currently, we want to produce a single dynamic
library.

Change-Id: I7af4c3e53b13439612bb57bbb0fc8b118bda96bd
2014-12-30 16:30:31 +02:00
David Tardon c868a0c772 build bundled libwpd and libwpg as shared libs
Change-Id: I7a00dfaa3252e2a0ab145ef8a4355f9bd14570da
2014-12-24 14:48:24 +01:00
Stephan Bergmann 904f9284a2 More passing of MAKE into external configure
...like 2fdf78109e "Pass MAKE into
external/poppler's configure"

Change-Id: I4e2f1a13d120a7398fa81884710c589bb905714d
2014-11-13 16:56:20 +01:00
Tor Lillqvist 87e9c4d98d Add one missing line of context
Change-Id: I13e938d0b2845b691bdd0f2b7208561e7ed177d4
2014-07-08 00:06:08 +03:00
Tor Lillqvist ed4697e665 Accidentally committed this file with DOS line endings
Change-Id: If1f6f9755c4b3b44ae34a126d7f3534969bfc630
2014-07-07 21:53:53 +03:00
Tor Lillqvist 9b896716f9 VS 2013 has rint()
Change-Id: I6ab759a54ef369e20d93c0767d6a103aabd14faa
2014-07-07 21:34:39 +03:00
David Tardon 48c9d7ac7c rebase all import libs
Change-Id: I9e1fc613816c943f4fb1033185e34e3acf317f1d
2014-05-26 18:49:04 +02:00
Michael Stahl d729d169de normalize values of CROSS_COMPILING
Change-Id: I0cc43cef91e3fcd82a3558a16ab0afbd4d56b141
2014-02-27 18:09:01 +01:00
Khaled Hosny c979511247 fdo#70393: move libwpd to a subdir of external
Change-Id: I599cf45b455b59e082078d6b2d5ed2efb99b5862
Reviewed-on: https://gerrit.libreoffice.org/6336
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-10-19 07:38:23 +00:00