1/* config_host/config_features.h. Generated from config_features.h.in by configure. */
2/* Configuration of high-level features that either 1) depend on the
3 * platform (but are common to several platforms so just checking for
4 * the feature is simpler than checking for several platforms), or 2)
5 * are build-time configurable.
6 */
7
8#ifndef CONFIG_FEATURES_H
9#define CONFIG_FEATURES_H
10
11/* JAVA
12 *
13 * Whether we have support for Java extensions, and use own Java
14 * functionality).
15 */
16
17#define HAVE_FEATURE_JAVA 1
18
19/* DESKTOP - Whether we have a "normal" desktop UI or not.
20 *
21 * Non-DESKTOP in practice means touch-based mobile devices, Android
22 * or iOS for now. Support for those is work in pogress.
23 *
24 * Non-DESKTOP implies that the OS makes sure that only one instance
25 * of each LibreOffice-based "app" at a time can be running, and thus
26 * the LibreOffice code does not need to handle such things itself.
27 *
28 * Non-DESKTOP implies no traditional inter-app drag and drop concept.
29 *
30 * Non-DESKTOP implies no traditional help mechanism, and to some
31 * extent (as noticed, and as possible without making the code too
32 * ugly) the related code is ifdeffed out.
33 *
34 * Non-DESKTOP implies no traditional desktop-style GUI elements like
35 * toolbars and scrollbars presented by the LO code.
36 */
37
38#define HAVE_FEATURE_DESKTOP 1
39
40/* X11
41 *
42 * Whether we are building code to run in an X11 environment.
43 */
44
45#define HAVE_FEATURE_X11 1
46
47/* EXTENSIONS - Whether we have any extension mechanism at all
48 *
49 * Primarily intended for non-desktop platforms where supporting
50 * extensions can be complicated, or even prohibited by the OS (as on
51 * iOS).
52 */
53
54#define HAVE_FEATURE_EXTENSIONS 1
55
56/* MULTIUSER_ENVIRONMENT - Wheter running on a "normal" multi-user
57 * desktop (or server) OS
58 *
59 * Non-MULTIUSER implies that the OS makes sure that only one
60 * LibreOffice-based process at a time can be running that could
61 * access the same local documents, and that thus no locking of local
62 * documents is needed, and that no "shared documents" in Calc
63 * is meaningful.
64 *
65 * Non-MULTIUSER in practice means Android or iOS for now, so thus is
66 * work in progress.
67 */
68
69#define HAVE_FEATURE_MULTIUSER_ENVIRONMENT 1
70
71/*
72 * Whether OpenCL is usable on the platform and we should compile in use of OpenCL.
73 */
74
75#define HAVE_FEATURE_OPENCL 1
76
77/*
78 * Whether the OS has Avahi support,
79 * This library is used for zeroconf service publication on the local network
80 * for the Impress remote control, so that the remote can automatically
81 * discover the running libO instance and its IP address.
82 *
83 * This library should be present on most mordern linux distributions
84 * but not on "all" of them. For now, you should add --enable-avahi for
85 * this to be taken into account. Otherwise the test of its presence
86 * will not take place.
87 */
88
89#define HAVE_FEATURE_AVAHI 0
90
91/* MACOSX_SANDBOX - whether LibreOffice runs in an OS X sandbox
92 *
93 * When building LibreOffice for distribution through the Mac App Store,
94 * it must be sandboxed.
95 */
96
97#define HAVE_FEATURE_MACOSX_SANDBOX 0
98
99/* MACOSX_MACLIKE_APP_STRUCTURE - LibreOffice.app substructure style
100 *
101 * Whether the structure of the LibreOffice.app bundle is more
102 * "Mac-like" and what it has been previously, for instance with all
103 * dylibs in the "Frameworks" folder and all non-code data in a the
104 * "Resources" folder. For now coupled to HAVE_FEATURE_MACOSX_SANDBOX
105 * in configure.ac.
106 */
107
108#define HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE 0
109
110/* READONLY_INSTALLSET - whether to treat the installation as read-only
111 *
112 * Prevents attempts by LibreOffice to write into its installation. That means
113 * at least that no "system-wide" extensions can be added, if the location for
114 * them is the traditional one. Experimental work in progress, not actually implemented.
115 */
116
117#define HAVE_FEATURE_READONLY_INSTALLSET 0
118
119/*
120 * Whether FreeType has FT_Face_GetCharVariantIndex or not.
121 */
122#define HAVE_FT_FACE_GETCHARVARIANTINDEX 1
123
124#endif
125