Stop leaking all ScPostIt instances.
[LibreOffice.git] / scp2 / InstallModule_ooo.mk
blob4d4e33d0557b008018aa09bdc3afbd6f0399f45c
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 ifeq ($(ENABLE_REPORTBUILDER),TRUE)
11 ifneq ($(SYSTEM_JFREEREPORT),YES)
12 include $(SRCDIR)/external/jfreereport/version.mk
13 endif
14 endif
16 $(eval $(call gb_InstallModule_InstallModule,scp2/ooo))
18 $(eval $(call gb_InstallModule_use_auto_install_libs,scp2/ooo,\
19 ooo \
20 ooobinarytable \
23 $(eval $(call gb_InstallModule_define_if_set,scp2/ooo,\
24 DISABLE_ATL \
25 DISABLE_NEON \
26 ENABLE_CAIRO_CANVAS \
27 ENABLE_DIRECTX \
28 ENABLE_EVOAB2 \
29 ENABLE_GTK \
30 ENABLE_GTK3 \
31 ENABLE_KAB \
32 ENABLE_KDE \
33 ENABLE_KDE4 \
34 ENABLE_LIBLANGTAG \
35 ENABLE_LPSOLVE \
36 ENABLE_MACOSX_MACLIKE_APP_STRUCTURE \
37 ENABLE_MACOSX_SANDBOX \
38 ENABLE_NPAPI_FROM_BROWSER \
39 ENABLE_NPAPI_INTO_BROWSER \
40 ENABLE_ONLINE_UPDATE \
41 ENABLE_OPENGL \
42 ENABLE_TDE \
43 ENABLE_TDEAB \
44 SYSTEM_APACHE_COMMONS \
45 SYSTEM_BOOST \
46 SYSTEM_CAIRO \
47 SYSTEM_CLUCENE \
48 SYSTEM_CURL \
49 SYSTEM_EXPAT \
50 SYSTEM_GRAPHITE \
51 SYSTEM_HSQLDB \
52 SYSTEM_HUNSPELL \
53 SYSTEM_HYPH \
54 SYSTEM_ICU \
55 SYSTEM_JFREEREPORT \
56 SYSTEM_JPEG \
57 SYSTEM_LCMS2 \
58 SYSTEM_LIBEXTTEXTCAT \
59 SYSTEM_LIBJPEG \
60 SYSTEM_LIBLANGTAG \
61 SYSTEM_LIBXML \
62 SYSTEM_LIBXSLT \
63 SYSTEM_LPSOLVE \
64 SYSTEM_LUCENE \
65 SYSTEM_MYTHES \
66 SYSTEM_NEON \
67 SYSTEM_NSS \
68 SYSTEM_OPENSSL \
69 SYSTEM_PANGO \
70 SYSTEM_POPPLER \
71 SYSTEM_PORTAUDIO \
72 SYSTEM_REDLAND \
73 SYSTEM_SNDFILE \
74 SYSTEM_STDLIBS \
75 WITH_GALLERY_BUILD \
76 WITH_MOZAB4WIN \
77 WITH_MYSPELL_DICTS \
80 $(eval $(call gb_InstallModule_define_value_if_set,scp2/ooo,\
81 MINGW_GCCDLL \
82 MINGW_GXXDLL \
85 $(eval $(call gb_InstallModule_add_defs,scp2/ooo,\
86 $(if $(CUSTOM_BRAND_DIR),-DCUSTOM_BRANDING) \
87 $(if $(WINDOWS_SDK_HOME),\
88 -DHAVE_WINDOWS_SDK \
89 ) \
90 $(if $(filter YES,$(SYSTEM_HSQLDB)),\
91 -DHSQLDB_JAR=\""$(call gb_Helper_make_path,$(HSQLDB_JAR))"\" \
92 ) \
93 $(if $(filter MSC,$(COM)),$(if $(MSVC_USE_DEBUG_RUNTIME),-DMSVC_PKG_DEBUG_RUNTIME)) \
96 ifeq ($(GUIBASE),unx)
97 $(eval $(call gb_InstallModule_add_defs,scp2/ooo,\
98 -DGUIBASE_UNX \
100 endif
102 ifneq (,$(filter DBCONNECTIVITY,$(BUILD_TYPE)))
103 $(eval $(call gb_InstallModule_add_defs,scp2/ooo,\
104 -DDBCONNECTIVITY \
106 endif
108 ifeq ($(DISABLE_PYTHON),TRUE)
109 $(eval $(call gb_InstallModule_add_defs,scp2/ooo,\
110 -DDISABLE_PYUNO \
112 else ifeq ($(SYSTEM_PYTHON),YES)
113 $(eval $(call gb_InstallModule_add_defs,scp2/ooo,\
114 -DSYSTEM_PYTHON \
116 endif
118 $(eval $(call gb_InstallModule_add_defs,scp2/ooo,\
119 -DICU_MAJOR=$(ICU_MAJOR) \
122 ifneq ($(SYSTEM_LIBXSLT),YES)
123 $(eval $(call gb_InstallModule_add_defs,scp2/ooo,\
124 -DLIBXSLT_MAJOR=$(LIBXSLT_MAJOR) \
126 endif
128 ifneq ($(SYSTEM_REDLAND),YES)
130 $(eval $(call gb_InstallModule_add_defs,scp2/ooo,\
131 -DRAPTOR_MAJOR=$(RAPTOR_MAJOR) \
132 -DRASQAL_MAJOR=$(RASQAL_MAJOR) \
133 -DREDLAND_MAJOR=$(REDLAND_MAJOR) \
135 endif
137 ifneq ($(SYSTEM_JFREEREPORT),YES)
139 $(eval $(call gb_InstallModule_add_defs,scp2/ooo,\
140 -DFLUTE_VERSION=$(FLUTE_VERSION) \
141 -DLIBBASE_VERSION=$(LIBBASE_VERSION) \
142 -DLIBFONTS_VERSION=$(LIBFONTS_VERSION) \
143 -DLIBFORMULA_VERSION=$(LIBFORMULA_VERSION) \
144 -DLIBLOADER_VERSION=$(LIBLOADER_VERSION) \
145 -DLIBREPOSITORY_VERSION=$(LIBREPOSITORY_VERSION) \
146 -DLIBSERIALIZER_VERSION=$(LIBSERIALIZER_VERSION) \
147 -DLIBXML_VERSION=$(LIBXML_VERSION) \
150 endif
152 $(eval $(call gb_InstallModule_add_templates,scp2/ooo,\
153 scp2/source/templates/module_helppack \
154 scp2/source/templates/module_helppack_root \
155 scp2/source/templates/module_langpack \
156 scp2/source/templates/module_langpack_root \
159 $(eval $(call gb_InstallModule_add_scpfiles,scp2/ooo,\
160 scp2/source/ooo/common_brand \
161 scp2/source/ooo/common_brand_readme \
162 scp2/source/ooo/directory_ooo \
163 scp2/source/ooo/directory_ooo_macosx \
164 scp2/source/ooo/file_extra_ooo \
165 scp2/source/ooo/file_font_ooo \
166 scp2/source/ooo/file_library_ooo \
167 scp2/source/ooo/file_ooo \
168 scp2/source/ooo/file_resource_ooo \
169 scp2/source/ooo/installation_ooo \
170 scp2/source/ooo/module_help_template \
171 scp2/source/ooo/module_hidden_ooo \
172 scp2/source/ooo/module_lang_template \
173 scp2/source/ooo/profileitem_ooo \
174 scp2/source/ooo/scpaction_ooo \
175 $(if $(filter WNTGCC,$(OS)$(COM)),\
176 scp2/source/ooo/mingw_dlls \
180 $(eval $(call gb_InstallModule_add_localized_scpfiles,scp2/ooo,\
181 scp2/source/ooo/module_helppack \
182 scp2/source/ooo/module_langpack \
183 scp2/source/ooo/module_ooo \
184 scp2/source/ooo/module_systemint \
187 ifeq ($(ENABLE_PDFIMPORT),TRUE)
188 $(eval $(call gb_InstallModule_add_scpfiles,scp2/ooo,\
189 scp2/source/ooo/module_pdfimport \
191 endif
193 ifeq ($(ENABLE_REPORTBUILDER),TRUE)
194 $(eval $(call gb_InstallModule_add_localized_scpfiles,scp2/ooo,\
195 scp2/source/ooo/module_reportbuilder \
197 endif
199 # vim: set shiftwidth=4 tabstop=4 noexpandtab: