xref: /aoo41x/main/scp2/source/ooo/makefile.mk (revision 9ef65f0e)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27PRJ=..$/..
28
29PRJPCH=
30
31PRJNAME=scp2
32TARGET=ooo
33TARGETTYPE=CUI
34
35# --- Settings -----------------------------------------------------
36
37.INCLUDE :  settings.mk
38.INCLUDE :  i18npool/version.mk
39
40.IF "$(COM)" == "MSC"
41SCPDEFS+=-D_MSC
42.ENDIF
43
44.IF "$(BUILD_SPECIAL)"!=""
45SCPDEFS+=-DBUILD_SPECIAL
46.ENDIF
47
48.IF "$(BUILD_X64)"!=""
49SCPDEFS+=-DBUILD_X64
50.ENDIF
51
52.IF "$(PROF_EDITION)"!=""
53SCPDEFS+=-DPROF_EDITION
54.ENDIF
55
56.IF "$(GUI)"=="UNX"
57.IF "$(ENABLE_GTK)" != ""
58SCPDEFS+=-DENABLE_GTK
59PKGCONFIG_MODULES=gtk+-2.0
60.INCLUDE: pkg_config.mk
61GTK_TWO_FOUR=$(shell @+-$(PKG_CONFIG) --exists 'gtk+-2.0 >= 2.4.0' && echo YES)
62.IF "$(GTK_TWO_FOUR)" != ""
63SCPDEFS+=-DGTK_TWO_FOUR
64.ENDIF
65.ENDIF
66.ENDIF			# "$(GUI)"=="UNX"
67
68.IF "$(ENABLE_SYSTRAY_GTK)" != ""
69SCPDEFS+=-DENABLE_SYSTRAY_GTK
70.ENDIF
71
72.IF "$(ENABLE_GSTREAMER)" != ""
73SCPDEFS+=-DENABLE_GSTREAMER
74.ENDIF
75
76.IF "$(ENABLE_KDE)" != ""
77SCPDEFS+=-DENABLE_KDE
78.ENDIF
79
80.IF "$(ENABLE_KDE4)" != ""
81SCPDEFS+=-DENABLE_KDE4
82.ENDIF
83
84.IF "$(ENABLE_KAB)" != ""
85SCPDEFS+=-DENABLE_KAB
86.ENDIF
87
88.IF "$(ENABLE_EVOAB2)" != ""
89SCPDEFS+=-DENABLE_EVOAB2
90.ENDIF
91
92.IF "$(ENABLE_DIRECTX)" != ""
93SCPDEFS+=-DENABLE_DIRECTX
94.ENDIF
95
96.IF "$(SYSTEM_FREETYPE)" == "YES"
97SCPDEFS+=-DSYSTEM_FREETYPE
98.ENDIF
99
100.IF "$(SYSTEM_CAIRO)" == "YES"
101SCPDEFS+=-DSYSTEM_CAIRO
102.ENDIF
103
104.IF "$(ENABLE_CAIRO)" == "YES"
105SCPDEFS+=-DENABLE_CAIRO
106.ENDIF
107
108.IF "$(SYSTEM_LIBXML)" == "YES"
109SCPDEFS+=-DSYSTEM_LIBXML
110.ENDIF
111
112.IF "$(SYSTEM_LIBWPD)" == "YES"
113SCPDEFS+=-DSYSTEM_LIBWPD
114.ENDIF
115
116.IF "$(SYSTEM_LIBXSLT)" == "YES"
117SCPDEFS+=-DSYSTEM_LIBXSLT
118.ELSE
119.INCLUDE :  libxsltversion.mk
120SCPDEFS+=-DLIBXSLT_MAJOR=$(LIBXSLT_MAJOR)
121.ENDIF
122
123.IF "$(USE_SYSTEM_STL)" == "YES" || "$(STLPORT4)" != "NO_STLPORT4"
124SCPDEFS+=-DUSE_SYSTEM_STL
125.ENDIF
126
127.IF "$(WITH_MOZILLA)" == "NO"
128SCPDEFS+=-DWITHOUT_MOZILLA
129.ENDIF
130
131.IF "$(WITH_MYSPELL_DICTS)" == "NO"
132SCPDEFS+=-DWITHOUT_MYSPELL_DICTS
133.ENDIF
134
135.IF "$(SYSTEM_MOZILLA)" == "YES"
136SCPDEFS+=-DSYSTEM_MOZILLA
137.ENDIF
138
139.IF "$(WITH_LDAP)" == "YES"
140SCPDEFS+=-DWITH_LDAP
141.ENDIF
142
143.IF "$(SYSTEM_CURL)" == "YES"
144SCPDEFS+=-DSYSTEM_CURL
145.ENDIF
146
147.IF "$(SYSTEM_STDLIBS)" == "YES"
148SCPDEFS+=-DSYSTEM_STDLIBS
149.ENDIF
150
151.IF "$(SYSTEM_SNDFILE)" == "YES"
152SCPDEFS+=-DSYSTEM_SNDFILE
153.ENDIF
154
155.IF "$(SYSTEM_PORTAUDIO)" == "YES"
156SCPDEFS+=-DSYSTEM_PORTAUDIO
157.ENDIF
158
159.IF "$(SYSTEM_HUNSPELL)" == "YES"
160SCPDEFS+=-DSYSTEM_HUNSPELL
161.ENDIF
162
163.IF "$(SYSTEM_REDLAND)" == "YES"
164SCPDEFS+=-DSYSTEM_REDLAND
165.ELSE
166.INCLUDE :  redlandversion.mk
167SCPDEFS+=\
168    -DRAPTOR_MAJOR=$(RAPTOR_MAJOR) \
169    -DRASQAL_MAJOR=$(RASQAL_MAJOR) \
170    -DREDLAND_MAJOR=$(REDLAND_MAJOR)
171.ENDIF
172
173.IF "$(SYSTEM_BSH)" == "YES"
174SCPDEFS+=-DSYSTEM_BSH -DBSH_JAR=\""file://$(BSH_JAR)"\"
175.ENDIF
176
177.IF "$(ENABLE_BEANSHELL)" == "YES"
178SCPDEFS+=-DENABLE_BEANSHELL
179.ENDIF
180
181.IF "$(ENABLE_JAVASCRIPT)" == "YES"
182SCPDEFS+=-DENABLE_JAVASCRIPT
183.ENDIF
184
185.IF "$(SYSTEM_HSQLDB)" == "YES"
186SCPDEFS+=-DSYSTEM_HSQLDB -DHSQLDB_JAR=\""file://$(HSQLDB_JAR)"\"
187.ENDIF
188
189.IF "$(SYSTEM_SAXON)" == "YES"
190SCPDEFS+=-DSYSTEM_SAXON -DSAXON_JAR=\""file://$(SAXON_JAR)"\"
191.ENDIF
192
193.IF "$(DISABLE_SAXON)" == "YES"
194SCPDEFS+=-DDISABLE_SAXON
195.ENDIF
196
197.IF "$(DISABLE_LIBWPD)" == "TRUE"
198SCPDEFS+=-DDISABLE_LIBWPD
199.ENDIF
200
201.IF "$(ENABLE_HUNSPELL)" != "YES"
202SCPDEFS+=-DDISABLE_HUNSPELL
203.ENDIF
204
205.IF "$(ENABLE_HYPHEN)" != "YES"
206SCPDEFS+=-DDISABLE_HYPHEN
207.ENDIF
208
209.IF "$(JDK)" == "gcj"
210SCPDEFS+=-DGCJ
211.ENDIF
212
213
214.IF "$(ENABLE_CAIRO)" == "TRUE"
215SCPDEFS+=-DENABLE_CAIRO
216.ENDIF
217
218.IF "$(SYSTEM_LUCENE)" == "YES"
219SCPDEFS+=-DSYSTEM_LUCENE
220.ENDIF
221
222.IF "$(SYSTEM_ICU)" == "YES"
223SCPDEFS+=-DSYSTEM_ICU
224.ELSE
225.INCLUDE :  icuversion.mk
226SCPDEFS+=\
227    -DICU_MAJOR=$(ICU_MAJOR) \
228    -DICU_MINOR=$(ICU_MINOR) \
229    -DICU_MICRO=$(ICU_MICRO)
230.ENDIF
231
232SCPDEFS+=-DISOLANG_MAJOR=$(ISOLANG_MAJOR)
233
234.IF "$(SYSTEM_NEON)" == "YES"
235SCPDEFS+=-DSYSTEM_NEON
236.ENDIF
237
238# if yes or unset (neon not used) -> do not install openssl library!
239.IF $(SYSTEM_OPENSSL) != "YES"
240SCPDEFS+=-DOPENSSL
241.ENDIF
242
243.IF "$(DISABLE_ATL)"!=""
244SCPDEFS+=-DDISABLE_ATL
245.ENDIF
246
247.IF "$(SYSTEM_PYTHON)" == "YES"
248SCPDEFS+=-DSYSTEM_PYTHON
249.ENDIF
250
251.IF "$(SYSTEM_LIBTEXTCAT)" == "YES"
252SCPDEFS+=-DSYSTEM_LIBTEXTCAT
253.ENDIF
254
255.IF "$(SYSTEM_LIBTEXTCAT_DATA)" != ""
256SCPDEFS+=-DSYSTEM_LIBTEXTCAT_DATA
257.ENDIF
258
259.IF "$(ENABLE_SVCTAGS)" == "YES"
260SCPDEFS+=-DENABLE_SVCTAGS
261.ENDIF
262
263.IF "$(WITH_VC_REDIST)" == "TRUE"
264SCPDEFS+=-DWITH_VC_REDIST
265.ENDIF
266
267.IF "$(MINGW_GCCDLL)"!=""
268SCPDEFS+=-DMINGW_GCCDLL=\""$(MINGW_GCCDLL)"\"
269.ENDIF
270
271.IF "$(MINGW_GXXDLL)"!=""
272SCPDEFS+=-DMINGW_GXXDLL=\""$(MINGW_GXXDLL)"\"
273.ENDIF
274
275.IF "$(SYSTEM_GDKPIXBUF)" == "YES"
276SCPDEFS+=-DSYSTEM_GDKPIXBUF
277.ENDIF
278
279.IF "$(SYSTEM_GETTEXT)" == "YES"
280SCPDEFS+=-DSYSTEM_GETTEXT
281.ENDIF
282
283.IF "$(SYSTEM_GLIB)" == "YES"
284SCPDEFS+=-DSYSTEM_GLIB
285.ENDIF
286
287.IF "$(SYSTEM_LIBJPEG)" == "YES"
288SCPDEFS+=-DSYSTEM_LIBJPEG
289.ENDIF
290
291.IF "$(SYSTEM_PANGO)" == "YES"
292SCPDEFS+=-DSYSTEM_PANGO
293.ENDIF
294
295SCP_PRODUCT_TYPE=osl
296
297ICUVERSION_DEPENDENT_FILES= \
298		$(PAR)$/$(SCP_PRODUCT_TYPE)$/file_library_ooo.par \
299		$(PAR)$/$(SCP_PRODUCT_TYPE)$/shortcut_ooo.par
300
301ISOLANGVERSION_DEPENDENT_FILES= \
302		$(PAR)$/$(SCP_PRODUCT_TYPE)$/file_library_ooo.par
303
304PARFILES=                          \
305        installation_ooo.par       \
306        scpaction_ooo.par          \
307        directory_ooo.par          \
308        directory_ooo_macosx.par   \
309        datacarrier_ooo.par        \
310        file_ooo.par               \
311        file_extra_ooo.par         \
312        file_font_ooo.par          \
313        file_library_ooo.par       \
314        file_resource_ooo.par      \
315        file_improvement.par       \
316        shortcut_ooo.par           \
317        module_ooo.par             \
318        module_hidden_ooo.par      \
319        module_langpack.par        \
320        module_lang_template.par   \
321        module_java.par            \
322        module_systemint.par       \
323        module_improvement.par     \
324        profile_ooo.par            \
325        profileitem_ooo.par        \
326        ure.par                    \
327        ure_into_ooo.par           \
328        ure_standalone.par         \
329        common_brand.par           \
330        common_brand_readme.par    \
331        ooo_brand.par
332
333.IF "$(GUI)"=="WNT"
334PARFILES +=                        \
335        file_jre_ooo.par           \
336        folder_ooo.par             \
337        folderitem_ooo.par         \
338        registryitem_ooo.par       \
339        vc_redist.par              \
340        windowscustomaction_ooo.par
341.ENDIF
342
343ULFFILES=                          \
344        directory_ooo.ulf          \
345        folderitem_ooo.ulf         \
346        module_ooo.ulf             \
347        module_langpack.ulf        \
348        module_java.ulf            \
349        registryitem_ooo.ulf       \
350        module_systemint.ulf
351
352# --- File ---------------------------------------------------------
353.INCLUDE :  target.mk
354
355.IF "$(SYSTEM_ICU)" != "YES"
356$(ICUVERSION_DEPENDENT_FILES) : $(SOLARINCDIR)$/icuversion.mk
357.ENDIF
358
359$(ISOLANGVERSION_DEPENDENT_FILES) : $(SOLARINCDIR)$/i18npool/version.mk
360
361