1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License or as specified alternatively below. You may obtain a copy of
7 # the License at http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
14 # Major Contributor(s):
15 # Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
18 # All Rights Reserved.
20 # For minor contributions see the git repository.
22 # Alternatively, the contents of this file may be used under the terms of
23 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
24 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
25 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
26 # instead of those above.
28 $(eval
$(call gb_InstallModule_InstallModule
,scp2
/ooo
))
30 $(eval
$(call gb_InstallModule_define_if_set
,scp2
/ooo
,\
43 ENABLE_NPAPI_FROM_BROWSER \
44 ENABLE_NPAPI_INTO_BROWSER \
45 ENABLE_ONLINE_UPDATE \
63 SYSTEM_LIBEXTTEXTCAT \
82 $(eval
$(call gb_InstallModule_define_value_if_set
,scp2
/ooo
,\
87 $(eval
$(call gb_InstallModule_define_mingw_dll_if_set
,scp2
/ooo
,\
88 MINGW_BOOST_DATE_TIME_DLL \
93 MINGW_FONTCONFIG_DLL \
110 MINGW_LIBLANGTAG_DLL \
136 $(eval
$(call gb_InstallModule_add_defs
,scp2
/ooo
,\
137 $(if
$(filter gcj
,$(JDK
)),\
140 $(if
$(filter TRUE
,$(ENABLE_GSTREAMER
)),\
143 $(if
$(filter TRUE
,$(ENABLE_GSTREAMER_0_10
)),\
146 $(if
$(WINDOWS_SDK_HOME
),\
149 $(if
$(filter YES
,$(SYSTEM_HSQLDB
)),\
150 -DHSQLDB_JAR
=\""$(call gb_Helper_make_path,$(HSQLDB_JAR))"\" \
152 $(if
$(filter YES
,$(WITH_MOZAB4WIN
)),\
155 $(if
$(filter-out YES
,$(WITH_MYSPELL_DICTS
)),\
156 -DWITHOUT_MYSPELL_DICTS \
160 ifeq ($(DISABLE_PYTHON
),TRUE
)
161 $(eval
$(call gb_InstallModule_add_defs
,scp2
/ooo
,\
164 else ifeq ($(SYSTEM_PYTHON
),YES
)
165 $(eval
$(call gb_InstallModule_add_defs
,scp2
/ooo
,\
170 $(eval
$(call gb_InstallModule_add_defs
,scp2
/ooo
,\
171 -DICU_MAJOR
=$(ICU_MAJOR
) \
172 -DICU_MINOR
=$(ICU_MINOR
) \
173 -DICU_MICRO
=$(ICU_MICRO
) \
176 ifneq ($(SYSTEM_LIBXSLT
),YES
)
177 include $(OUTDIR
)/inc
/libxsltversion.mk
179 $(eval
$(call gb_InstallModule_add_defs
,scp2
/ooo
,\
180 -DLIBXSLT_MAJOR
=$(LIBXSLT_MAJOR
) \
184 ifneq ($(SYSTEM_REDLAND
),YES
)
185 include $(OUTDIR
)/inc
/redlandversion.mk
187 $(eval
$(call gb_InstallModule_add_defs
,scp2
/ooo
,\
188 -DRAPTOR_MAJOR
=$(RAPTOR_MAJOR
) \
189 -DRASQAL_MAJOR
=$(RASQAL_MAJOR
) \
190 -DREDLAND_MAJOR
=$(REDLAND_MAJOR
) \
194 $(eval
$(call gb_InstallModule_add_templates
,scp2
/ooo
,\
195 scp2
/source
/templates
/module_helppack \
196 scp2
/source
/templates
/module_helppack_root \
197 scp2
/source
/templates
/module_langpack \
198 scp2
/source
/templates
/module_langpack_root \
201 $(eval
$(call gb_InstallModule_add_scpfiles
,scp2
/ooo
,\
202 scp2
/source
/ooo
/common_brand \
203 scp2
/source
/ooo
/common_brand_readme \
204 scp2
/source
/ooo
/directory_ooo \
205 scp2
/source
/ooo
/directory_ooo_macosx \
206 scp2
/source
/ooo
/file_extra_ooo \
207 scp2
/source
/ooo
/file_font_ooo \
208 scp2
/source
/ooo
/file_library_ooo \
209 scp2
/source
/ooo
/file_ooo \
210 scp2
/source
/ooo
/file_resource_ooo \
211 scp2
/source
/ooo
/installation_ooo \
212 scp2
/source
/ooo
/module_help_template \
213 scp2
/source
/ooo
/module_hidden_ooo \
214 scp2
/source
/ooo
/module_lang_template \
215 scp2
/source
/ooo
/ooo_brand \
216 scp2
/source
/ooo
/profile_ooo \
217 scp2
/source
/ooo
/profileitem_ooo \
218 scp2
/source
/ooo
/scpaction_ooo \
219 scp2
/source
/ooo
/shortcut_ooo \
220 scp2
/source
/ooo
/ure_into_ooo \
221 $(if
$(filter WNTGCC
,$(GUI
)$(COM
)),\
222 scp2
/source
/ooo
/mingw_dlls \
226 $(eval
$(call gb_InstallModule_add_localized_scpfiles
,scp2
/ooo
,\
227 scp2
/source
/ooo
/module_helppack \
228 scp2
/source
/ooo
/module_langpack \
229 scp2
/source
/ooo
/module_ooo \
230 scp2
/source
/ooo
/module_systemint \
233 ifeq ($(ENABLE_PDFIMPORT
),TRUE
)
234 $(eval
$(call gb_InstallModule_add_scpfiles
,scp2
/ooo
,\
235 scp2
/source
/ooo
/module_pdfimport \
239 # vim: set shiftwidth=4 tabstop=4 noexpandtab: