67 Commits

Author SHA1 Message Date
Zolnai Tamás
fe70101856 Introduce HAVE_FEATURE_GLTF to enable/disable gltf related code
When it is a release build then enable it only on Windows and
Linux.

Change-Id: I7c462aeb75e6ab60eeaa0fa42ca7853a6369b742
2014-06-12 21:43:35 +02:00
Stephan Bergmann
eae3f52f94 New --disable-runtime-optimizations
...to better serve the needs of tools like -fsanitize=address

Change-Id: Ic2f2b981b2f5c1bc95ff91bc7a8d21fbb695dc8d
2014-05-08 14:22:00 +02:00
Tor Lillqvist
25d88d2b8e More hacking on --with-locales
Propagate the restriction of locales into <config_locales.h>. Note that in the
normal case, with no locale restrictions, all the WITH_LOCALE_xx macros are
zero anyway, but WITH_LOCALE_ALL is one.

Restrict which character encodings are handled in
sal/textencsal/textenc/tables.cxx based on the WITH_LOCALE_ macros. (Don't
simply always do it for iOS.)

Massage the affected unit tests to not crash when only partial character
encoding information is present.

Change-Id: Ie2c882c262ebd0d2b37dde66b8fe3c3e2570da14
2014-04-24 19:44:10 +03:00
Tor Lillqvist
629cc605a4 Intermediate commit of hacking on --disable-database-connectivity
Add HAVE_FEATURE_DBCONNECTIVITY to <config_features.h> instead of
using (or not, more likely) -DDISABLE_DBCONNECTIVITY.

The plan is still that database connectivity would be disabled always
for the non-desktop platforms, and otherwise disabling it would be a
configure option.

But, still lots to do; the TiledLibreOffice iOS test app gets tons of
undefineds when linking if I actually try to disable the database
connectivity.

Change-Id: If1e4b55faa1514cd55dec5fc5487a30d689739ac
2014-04-18 00:04:15 +03:00
Tor Lillqvist
262aa2c2e5 More generic way to disable avmedia
Introduce a configure option --disable-avmedia. For non-desktop,
avmedia is always disabled (for now), and for desktop enabled by
default. Add AVMEDIA to BUILD_TYPE when enabled. Don't build avmedia
when disabled. Add HAVE_FEATURE_AVMEDIA to <config_features.h>. Bypass
avmedia-related code when disabled.

Change-Id: I919c6e199bff87d9f142d55dff6373f0ed217f39
2014-04-17 22:18:02 +03:00
Markus Mohrhard
69e14b0fee add experimental export file validation
In calc unit tests we validate the exported OOXML files now with
officeotron.

For this there must be a script called officeotron that takes the file
path.

Currently the generated files are still invalid but I'm going to fix it.

Change-Id: I1809b9457a535dbbe6a72f3778dfb53db168bbda
2014-03-03 10:56:28 +01:00
Matúš Kukan
dbfc495a9a Add config option used when we try to link one huge object file.
In theory, it should not be used, we use it now to mark duplicated
symbols from sdi slots as weak. See idl/source/objects/types.cxx.

Change-Id: I3c6fccfb96884df6b9e6eb35b8615ba4d66ca208
2014-02-21 07:52:24 +01:00
Jan-Marek Glogowski
c4ffca21ff Depend unit test on existing font.
Commit 734cf8395 introduced a unit test, which depends on a Calibri
metric-compatible font. So this adds a fonctconfig based check to
configure and just runs this test, if configure finds a correctly
mapped font.

Reviewed on:
	https://gerrit.libreoffice.org/7596

Change-Id: I5255a4366684b115d88adca78ab2002864b63766
2014-01-23 18:13:04 +01:00
Cédric Bosdonnat
7586bea9fb Add data for Alfresco Cloud CMIS connection
Change-Id: Ie5374f2e81e1429294805f05ae432fba86cc50df
2013-11-19 14:52:39 +01:00
David Tardon
a621bdb0aa add config header for EOT
Change-Id: I1a3e01243c6f98fb5f055a1783bb13a1cbfc1efe
2013-11-12 21:15:20 +01:00
Cédric Bosdonnat
39768755e8 OAuth2 application keys shouldn't be in the code.
The GDrive OAuth2 key is now defined at configure time. If either the
client secret or client id is missing, the Google Drive connectivity
will be disabled at runtime.

Tinderboxes can set up a GDrive key, but they need to make sure it's
not persisting in the build log.

Change-Id: I09bc748641ec14eae890f273f05bffe4ed421dbb
2013-11-07 18:48:55 +01:00
Michael Stahl
5d8f48c81e solver doesn't solve anything...
... it is an abbreviation of "Solar Version".

Since nobody can remember that:

remove OUTDIR OUTDIR_FOR_BUILD SOLARVER SOLARVERSION solarpath
and any mention thereof.

Change-Id: Idb3031c4f25a76ac05b22ec67e3ca3e1e8e512ad
Reviewed-on: https://gerrit.libreoffice.org/6515
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-10-31 15:42:24 +00:00
Tor Lillqvist
ad55d4e904 Bin --enable-desktop-gui-elements
Nobody wants LO's own widgets in a touch / mobile app after all.

Change-Id: I84f1e85cebce80b6ff4ec5e4e3254654b5f5e6ec
2013-10-17 20:45:21 +03:00
Tor Lillqvist
6a3bb7c129 Add HAVE_FEATURE_X11
Change-Id: I4ca7310c936ce123347be2e3243fddc738f85d6d
2013-10-12 18:29:50 +03:00
Tor Lillqvist
8fe9a68f1a Update comment to match reality
Change-Id: I859ebb6e97a935d6e47a5269253165114fd90a1b
2013-10-09 13:46:43 +03:00
Kohei Yoshida
03f548e6fb Allow enable / disable opencl at build time.
Change-Id: I65e2a71aae8317930d1575e7d82c11c3fd2b74de
2013-09-19 17:03:16 +02:00
Kohei Yoshida
f1717208ec Remove opencl-sdk configure option, and build time opencl conditionals.
We now load OpenCL library dynmically at run-time as needed. So there
is no build time dependency on any OpenCL implementations.

Change-Id: I214399060398a7c5e37b9a254147ccc2834e7866
2013-09-19 17:03:16 +02:00
Kohei Yoshida
02346aa466 Add the configure bits to support --disable-orcus.
Change-Id: Ieeb1581187248875ca2e37278c62a382f6caa8e0
2013-09-18 22:37:58 -04:00
Khaled Hosny
e4a1acd396 Check for FT_Face_GetCharVariantIndex at build time
No more dlsym() hacks. The downside is that LibreOffice built on systems
with old FreeType will not be able to use FT_Face_GetCharVariantIndex()
on newer systems, but most Linux users use their distribution builds
anyway.

This only affects the use of Unicode Variation Selectors which is an
exotic feature that wasn't even supported on Linux before 4.1.

Change-Id: I674822ef5bc8d7940a821a01cc85ae7a6d39a80e
Reviewed-on: https://gerrit.libreoffice.org/5844
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-09-06 19:16:21 +00:00
Petr Mladek
28cc89aad1 make the tinderbox information more reliable in the about dialog (fdo#58034)
Pass the information via config_host/config_buildid.h. Then
cui/source/dialogs/about.cxx will get rebuilt also in the incremental build.

Change-Id: I058cbe162e7015cbea6c71253c20db097477708f
2013-08-29 13:23:43 +02:00
Tor Lillqvist
08452f1208 Rename SOLAR_JAVA to ENABLE_JAVA and HAVE_FEATURE_JAVA
Change-Id: Ib451bdb3c1c2ca42347abfde44651d5cf5eef4f3
2013-08-19 10:29:04 +03:00
Tor Lillqvist
058a3d1c46 Further work on the "Mac-like app structure" option
Lots of stuff still either ended up in the wrong place, or was looked up from
the wrong place, or both. Fix most cases.

Change-Id: I06ebbce207c219f3cd82b4387dd9b3fdb83420d4
2013-08-18 21:11:16 +03:00
Tor Lillqvist
3aefa4ef80 Add HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE
Change-Id: Idb114bfa3fbb05252a5cac9eb5f303ec85080626
2013-08-10 14:38:09 +03:00
Tor Lillqvist
6a84a6ed0b Start of enabling use of a more proper "Mac-like" install tree structure
First cut was at https://gerrit.libreoffice.org/#/c/2310/ but was
abandoned by myself. Now getting back to the idea, but this time I
will make it optional on OS X, and introduce it in smaller steps.

Change-Id: Id88517fee8d49056b8bbecb0921206dc6b29580b
2013-08-10 14:16:48 +03:00
Luboš Luňák
1e0feb5cf9 do not base feature checks on gcc version
Clang reports itself to be gcc4.2, so there fail there, instead use configure
checks.

Change-Id: Idb44a5c875b24a15546a6495de02a1b4af898443
2013-08-05 15:10:39 +02:00
Mark Wielaard
eeb3b8dc5c Add SDT probes for RTL_LOG_STRING_NEW/DELETE.
Change-Id: I938259f90aee9d277c9ff5b72c9120b93311cbd3
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-08-03 09:32:03 +02:00
Tor Lillqvist
8f315d9ece Move the (unimplemented) READONLY_INSTALLSET flag into config_features.h
Change-Id: Icce89cc2a3c8089aa248a176ab92b545c36b1091
2013-07-26 14:14:06 +03:00
Tor Lillqvist
cca02d9e98 Move OS X sandbox flag to config_features.h
Change-Id: I189fa06d13a78bcaa8e17b32756076473ced3641
2013-07-26 14:14:06 +03:00
Siqi
9f8a350c21 discriptive comments on HAvE_FEATURE_AVAHI and remove unused ac_def
Change-Id: I37183561a264625505036bcc6b945a6b24f05b5a
2013-07-26 09:17:31 +02:00
Siqi
0dc8821659 use config_features.h.in instead
Change-Id: I1332fc22caae759c65b64e6c43e73740245e4abd
2013-07-26 02:05:05 +02:00
Luboš Luňák
92dfa82d2d adjust for upstreaming of warn_unused attribute
The warn_unused attribute has been upstream to GCC and Clang, so use it if present.
Still warn about STL types if those do not use it yet (which is the status as of now).

Change-Id: I3c003e44c08d1d141e23bba38cf92e663a5ac353
2013-07-23 09:52:11 +02:00
Michael Meeks
f4ea3fd5c1 use #if to avoid gotchas, move header to include, make UI conditional. 2013-06-27 19:34:38 +01:00
Stephan Bergmann
c17f01753c ...and similarly for __cxa_allocate_exception and __cxa_throw
Change-Id: I87ae299aac97180f0587c553d85b051decca155c
2013-06-20 15:59:09 +02:00
Stephan Bergmann
5ba3d1740b Clean up declaration of __cxa_get_globals
At least Clang trunk towards 3.4 now rejects incompatible declarations of the
same extern "C" function in different namespaces, so that trick of getting at
the function that is exported by libstdc++ but only rudimentarily if at all
exposed in cxxabi.h no longer worked.

TODO: This change should be reflected in any other bridges where it is relevant,
too.

Change-Id: Ie3ccbdb7d75cc98636d02c0435958532620724f2
2013-06-20 14:02:48 +02:00
Luboš Luňák
d7ae9f7743 rename HAVE_CXX0X->HAVE_CXX11 and clean up to #define in a config header
Change-Id: Id13e77fe890301a8510952994a91853568a7aea6
2013-06-13 20:08:16 +02:00
Michael Meeks
c32c11fbd4 MPLv2 subset improvements. 2013-06-04 17:45:42 +01:00
Michael Meeks
8659ca5c35 fdo#64311 - don't encourage the fpicker to give us URLs we can't handle.
Change-Id: Ide7d833801e96a3375909238d036687082f34605
2013-05-11 17:36:58 +01:00
Stephan Bergmann
1ad700f5a4 Minor improvements to UNOIDL binary format
Change-Id: Ia215b34842ce85bfbd1ad90a286abcbae0884bd5
2013-05-08 17:30:53 +02:00
Khaled Hosny
bff8fa97e1 Enable HarfBuzz by default
HarfBuzz integration should be functional now, so to give it more wider
testing it is made now a required dependency on non-Windows non-Mac OSs.
By default text layout is now done by HarfBuzz but ICU LayoutEngine is
kept as a fallback and can be enabled with SAL_USE_ICULE env variable.

After 4.1.x is branched, ICU LayoutEngine should be removed completely.

Change-Id: I4fe3beeaf6092f33dd436906c11b83aeafdfbd5d
2013-05-06 17:22:31 +02:00
Tor Lillqvist
7de37ac7d6 Add --enable-desktop-gui-elements to show such even on non-DESKTOP platforms
Not my idea.

Change-Id: If4874d97a2035588cd65ded9f281de0c3598b7d7
2013-05-02 20:19:15 +03:00
Michael Meeks
cb33ae88e0 extend license filtering, and add fallback-checks.
Change-Id: Ia1ec3564326cf898d756c231a64a54db8698bf20
2013-04-24 16:21:40 +01:00
Khaled Hosny
7e389f4def Add HarfBuzz support to the build system
To be used in the next commit.

Change-Id: I6ee286d0c050a5ca650e7fb3692b0facccb5f0c0
Reviewed-on: https://gerrit.libreoffice.org/3517
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-23 08:00:14 +00:00
Miguel Gomez
4be242ce6b Allow selecting the tls backend to use in oox from configure
Change-Id: Ie82afb1f22caa0b02ddac256e2a0c2a49f19bb15
Reviewed-on: https://gerrit.libreoffice.org/3173
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-10 08:36:51 +00:00
Tor Lillqvist
cdd1de0854 Check for the C++11 "final" specifier and introduce SAL_FINAL
I think it is useful to use SAL_FINAL mainly as a documentation aid,
to make it clear to a code reader when a class is not expected to be
derived from, and when a virtual function is not expected to be
overridden in a derived class.

Possibly there is also some class of bugs that using SAL_FINAL will
help find?

Change-Id: I45002f020dcb52e8a9f2962ff98780f2b80627af
2013-04-08 11:46:10 +03:00
Luboš Luňák
598d3228cd remove HAVE_SFINAE_ANONYMOUS_BROKEN
Since we no longer support the old Apple SDK using gcc-4.0.1, we can
remove the cruft to work around its problems. Woohoo.

Change-Id: Idf275e76449443f1f0314e75dab993f213a77eb7
2013-04-04 13:44:30 +02:00
Tor Lillqvist
2c38ea6d16 Building without --with-help is not supposed to disable help functionality
Drop HAVE_FEATURE_HELP. Just check HAVE_FEATURE_DESKTOP instead in the few
places in the code where HAVE_FEATURE_HELP had been introduced so far. It's
only for the non-desktop platforms that leaving out the traditional help
functionality is intended anyway.

Change-Id: I2d05869267f509a8e64cf402eed8ebef0020cada
2013-03-28 11:48:14 +02:00
Tor Lillqvist
ab7ac5884c Use <config_features.h> instead of -DDISABLE_EXTENSIONS
Change-Id: I4fe5cd27b77d44b9b33af0ae3c3754e3b85c2ca3
2013-03-27 13:02:22 +02:00
Tor Lillqvist
556fe2c612 Add config_features.h platform or configurable high-level features
Defines HAVE_FEATURE_{DESKTOP,HELP,MULTIUSER_ENVIRONMENT} for
now. Using <config_features.h> will supersede checking the
LIBO_FEATURE_DESKTOP and LIBO_FEATURE_HELP passed on the compilation
command-line.

Change-Id: I9866e2fd142f5c1a64c8f5c74452a20de23c66e3
2013-03-27 11:36:03 +02:00
Tor Lillqvist
f174c972ac .gitignore already ignores config_*.h
Change-Id: I97e9fa6e8ad45a0cd07926d1f6d33652d9dd332c
2013-03-27 11:36:02 +02:00
Luboš Luňák
8bfc664c61 autoconf can actually handle #define HAVE_FOO 0 as the default
Change-Id: I6cd70d885a3fe3ab53f7523d1a5da6ae30ee01e3
2013-03-26 19:32:20 +01:00