xref: /aoo42x/main/scp2/source/ooo/makefile.mk (revision 7871dc3e)
1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew Rist
23cdf0e10cSrcweirPRJ=..$/..
24cdf0e10cSrcweir
25cdf0e10cSrcweirPRJPCH=
26cdf0e10cSrcweir
27cdf0e10cSrcweirPRJNAME=scp2
28cdf0e10cSrcweirTARGET=ooo
29cdf0e10cSrcweirTARGETTYPE=CUI
30cdf0e10cSrcweir
31cdf0e10cSrcweir# --- Settings -----------------------------------------------------
32cdf0e10cSrcweir
33cdf0e10cSrcweir.INCLUDE :  settings.mk
34cdf0e10cSrcweir.INCLUDE :  i18npool/version.mk
35cdf0e10cSrcweir
36cdf0e10cSrcweir.IF "$(COM)" == "MSC"
37cdf0e10cSrcweirSCPDEFS+=-D_MSC
38cdf0e10cSrcweir.ENDIF
39cdf0e10cSrcweir
40cdf0e10cSrcweir.IF "$(BUILD_SPECIAL)"!=""
41cdf0e10cSrcweirSCPDEFS+=-DBUILD_SPECIAL
42cdf0e10cSrcweir.ENDIF
43cdf0e10cSrcweir
44cdf0e10cSrcweir.IF "$(BUILD_X64)"!=""
45cdf0e10cSrcweirSCPDEFS+=-DBUILD_X64
46cdf0e10cSrcweir.ENDIF
47cdf0e10cSrcweir
48cdf0e10cSrcweir.IF "$(PROF_EDITION)"!=""
49cdf0e10cSrcweirSCPDEFS+=-DPROF_EDITION
50cdf0e10cSrcweir.ENDIF
51cdf0e10cSrcweir
52cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
53cdf0e10cSrcweir.IF "$(ENABLE_GTK)" != ""
54cdf0e10cSrcweirSCPDEFS+=-DENABLE_GTK
55cdf0e10cSrcweirPKGCONFIG_MODULES=gtk+-2.0
56cdf0e10cSrcweir.INCLUDE: pkg_config.mk
57cdf0e10cSrcweirGTK_TWO_FOUR=$(shell @+-$(PKG_CONFIG) --exists 'gtk+-2.0 >= 2.4.0' && echo YES)
58cdf0e10cSrcweir.IF "$(GTK_TWO_FOUR)" != ""
59cdf0e10cSrcweirSCPDEFS+=-DGTK_TWO_FOUR
60cdf0e10cSrcweir.ENDIF
61cdf0e10cSrcweir.ENDIF
62cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="UNX"
63cdf0e10cSrcweir
64cdf0e10cSrcweir.IF "$(ENABLE_SYSTRAY_GTK)" != ""
65cdf0e10cSrcweirSCPDEFS+=-DENABLE_SYSTRAY_GTK
66cdf0e10cSrcweir.ENDIF
67cdf0e10cSrcweir
68cdf0e10cSrcweir.IF "$(ENABLE_GSTREAMER)" != ""
69cdf0e10cSrcweirSCPDEFS+=-DENABLE_GSTREAMER
70cdf0e10cSrcweir.ENDIF
71cdf0e10cSrcweir
72cdf0e10cSrcweir.IF "$(ENABLE_KDE)" != ""
73cdf0e10cSrcweirSCPDEFS+=-DENABLE_KDE
74cdf0e10cSrcweir.ENDIF
75cdf0e10cSrcweir
76cdf0e10cSrcweir.IF "$(ENABLE_KDE4)" != ""
77cdf0e10cSrcweirSCPDEFS+=-DENABLE_KDE4
78cdf0e10cSrcweir.ENDIF
79cdf0e10cSrcweir
80cdf0e10cSrcweir.IF "$(ENABLE_KAB)" != ""
81cdf0e10cSrcweirSCPDEFS+=-DENABLE_KAB
82cdf0e10cSrcweir.ENDIF
83cdf0e10cSrcweir
84cdf0e10cSrcweir.IF "$(ENABLE_EVOAB2)" != ""
85cdf0e10cSrcweirSCPDEFS+=-DENABLE_EVOAB2
86cdf0e10cSrcweir.ENDIF
87cdf0e10cSrcweir
88cdf0e10cSrcweir.IF "$(ENABLE_DIRECTX)" != ""
89cdf0e10cSrcweirSCPDEFS+=-DENABLE_DIRECTX
90cdf0e10cSrcweir.ENDIF
91cdf0e10cSrcweir
92cdf0e10cSrcweir.IF "$(SYSTEM_FREETYPE)" == "YES"
93cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_FREETYPE
94cdf0e10cSrcweir.ENDIF
95cdf0e10cSrcweir
96cdf0e10cSrcweir.IF "$(SYSTEM_CAIRO)" == "YES"
97cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_CAIRO
98cdf0e10cSrcweir.ENDIF
99cdf0e10cSrcweir
100cdf0e10cSrcweir.IF "$(ENABLE_CAIRO)" == "YES"
101cdf0e10cSrcweirSCPDEFS+=-DENABLE_CAIRO
102cdf0e10cSrcweir.ENDIF
103cdf0e10cSrcweir
104cdf0e10cSrcweir.IF "$(SYSTEM_LIBXML)" == "YES"
105cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LIBXML
106cdf0e10cSrcweir.ENDIF
107cdf0e10cSrcweir
1080bd633abSJürgen Schmidt.IF "$(SYSTEM_LIBWPD)" == "YES"
1090bd633abSJürgen SchmidtSCPDEFS+=-DSYSTEM_LIBWPD
1100bd633abSJürgen Schmidt.ENDIF
1110bd633abSJürgen Schmidt
112cdf0e10cSrcweir.IF "$(SYSTEM_LIBXSLT)" == "YES"
113cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LIBXSLT
114cdf0e10cSrcweir.ELSE
115cdf0e10cSrcweir.INCLUDE :  libxsltversion.mk
116cdf0e10cSrcweirSCPDEFS+=-DLIBXSLT_MAJOR=$(LIBXSLT_MAJOR)
117cdf0e10cSrcweir.ENDIF
118cdf0e10cSrcweir
119cdf0e10cSrcweir.IF "$(USE_SYSTEM_STL)" == "YES" || "$(STLPORT4)" != "NO_STLPORT4"
120cdf0e10cSrcweirSCPDEFS+=-DUSE_SYSTEM_STL
121cdf0e10cSrcweir.ENDIF
122cdf0e10cSrcweir
123cdf0e10cSrcweir.IF "$(WITH_MOZILLA)" == "NO"
124cdf0e10cSrcweirSCPDEFS+=-DWITHOUT_MOZILLA
125cdf0e10cSrcweir.ENDIF
126cdf0e10cSrcweir
127cdf0e10cSrcweir.IF "$(WITH_MYSPELL_DICTS)" == "NO"
128cdf0e10cSrcweirSCPDEFS+=-DWITHOUT_MYSPELL_DICTS
129cdf0e10cSrcweir.ENDIF
130cdf0e10cSrcweir
131cdf0e10cSrcweir.IF "$(SYSTEM_MOZILLA)" == "YES"
132cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_MOZILLA
133cdf0e10cSrcweir.ENDIF
134cdf0e10cSrcweir
135cdf0e10cSrcweir.IF "$(WITH_LDAP)" == "YES"
136cdf0e10cSrcweirSCPDEFS+=-DWITH_LDAP
137cdf0e10cSrcweir.ENDIF
138cdf0e10cSrcweir
139cdf0e10cSrcweir.IF "$(SYSTEM_CURL)" == "YES"
140cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_CURL
141cdf0e10cSrcweir.ENDIF
142cdf0e10cSrcweir
143cdf0e10cSrcweir.IF "$(SYSTEM_STDLIBS)" == "YES"
144cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_STDLIBS
145cdf0e10cSrcweir.ENDIF
146cdf0e10cSrcweir
147cdf0e10cSrcweir.IF "$(SYSTEM_SNDFILE)" == "YES"
148cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_SNDFILE
149cdf0e10cSrcweir.ENDIF
150cdf0e10cSrcweir
151cdf0e10cSrcweir.IF "$(SYSTEM_PORTAUDIO)" == "YES"
152cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_PORTAUDIO
153cdf0e10cSrcweir.ENDIF
154cdf0e10cSrcweir
155cdf0e10cSrcweir.IF "$(SYSTEM_HUNSPELL)" == "YES"
156cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_HUNSPELL
157cdf0e10cSrcweir.ENDIF
158cdf0e10cSrcweir
159cdf0e10cSrcweir.IF "$(SYSTEM_REDLAND)" == "YES"
160cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_REDLAND
161cdf0e10cSrcweir.ELSE
162cdf0e10cSrcweir.INCLUDE :  redlandversion.mk
163cdf0e10cSrcweirSCPDEFS+=\
164cdf0e10cSrcweir    -DRAPTOR_MAJOR=$(RAPTOR_MAJOR) \
165cdf0e10cSrcweir    -DRASQAL_MAJOR=$(RASQAL_MAJOR) \
166cdf0e10cSrcweir    -DREDLAND_MAJOR=$(REDLAND_MAJOR)
167cdf0e10cSrcweir.ENDIF
168cdf0e10cSrcweir
169cdf0e10cSrcweir.IF "$(SYSTEM_BSH)" == "YES"
170cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_BSH -DBSH_JAR=\""file://$(BSH_JAR)"\"
171cdf0e10cSrcweir.ENDIF
172cdf0e10cSrcweir
1739ef65f0eSAndre Fischer.IF "$(ENABLE_BEANSHELL)" == "YES"
1749ef65f0eSAndre FischerSCPDEFS+=-DENABLE_BEANSHELL
1759ef65f0eSAndre Fischer.ENDIF
1769ef65f0eSAndre Fischer
1779ef65f0eSAndre Fischer.IF "$(ENABLE_JAVASCRIPT)" == "YES"
1789ef65f0eSAndre FischerSCPDEFS+=-DENABLE_JAVASCRIPT
1799ef65f0eSAndre Fischer.ENDIF
1809ef65f0eSAndre Fischer
181cdf0e10cSrcweir.IF "$(SYSTEM_HSQLDB)" == "YES"
182cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_HSQLDB -DHSQLDB_JAR=\""file://$(HSQLDB_JAR)"\"
183cdf0e10cSrcweir.ENDIF
184cdf0e10cSrcweir
185cdf0e10cSrcweir.IF "$(SYSTEM_SAXON)" == "YES"
186cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_SAXON -DSAXON_JAR=\""file://$(SAXON_JAR)"\"
187cdf0e10cSrcweir.ENDIF
188cdf0e10cSrcweir
1899ef65f0eSAndre Fischer.IF "$(DISABLE_SAXON)" == "YES"
1900ea1a209SEike RathkeSCPDEFS+=-DDISABLE_SAXON
1910ea1a209SEike Rathke.ENDIF
1920ea1a209SEike Rathke
1930ea1a209SEike Rathke.IF "$(DISABLE_LIBWPD)" == "TRUE"
1940ea1a209SEike RathkeSCPDEFS+=-DDISABLE_LIBWPD
1950ea1a209SEike Rathke.ENDIF
1960ea1a209SEike Rathke
197a44fea77SAriel Constenla-Haile.IF "$(ENABLE_HUNSPELL)" != "YES"
1980ea1a209SEike RathkeSCPDEFS+=-DDISABLE_HUNSPELL
1990ea1a209SEike Rathke.ENDIF
2000ea1a209SEike Rathke
201a44fea77SAriel Constenla-Haile.IF "$(ENABLE_HYPHEN)" != "YES"
2020ea1a209SEike RathkeSCPDEFS+=-DDISABLE_HYPHEN
2030ea1a209SEike Rathke.ENDIF
2040ea1a209SEike Rathke
205cdf0e10cSrcweir.IF "$(JDK)" == "gcj"
206cdf0e10cSrcweirSCPDEFS+=-DGCJ
207cdf0e10cSrcweir.ENDIF
208cdf0e10cSrcweir
209cdf0e10cSrcweir
210cdf0e10cSrcweir.IF "$(ENABLE_CAIRO)" == "TRUE"
211cdf0e10cSrcweirSCPDEFS+=-DENABLE_CAIRO
212cdf0e10cSrcweir.ENDIF
213cdf0e10cSrcweir
214cdf0e10cSrcweir.IF "$(SYSTEM_LUCENE)" == "YES"
215cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LUCENE
216cdf0e10cSrcweir.ENDIF
217cdf0e10cSrcweir
218cdf0e10cSrcweir.IF "$(SYSTEM_ICU)" == "YES"
219cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_ICU
220cdf0e10cSrcweir.ELSE
221cdf0e10cSrcweir.INCLUDE :  icuversion.mk
222cdf0e10cSrcweirSCPDEFS+=\
223cdf0e10cSrcweir    -DICU_MAJOR=$(ICU_MAJOR) \
224cdf0e10cSrcweir    -DICU_MINOR=$(ICU_MINOR) \
225cdf0e10cSrcweir    -DICU_MICRO=$(ICU_MICRO)
226cdf0e10cSrcweir.ENDIF
227cdf0e10cSrcweir
228cdf0e10cSrcweirSCPDEFS+=-DISOLANG_MAJOR=$(ISOLANG_MAJOR)
229cdf0e10cSrcweir
230cdf0e10cSrcweir.IF "$(SYSTEM_NEON)" == "YES"
231cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_NEON
232cdf0e10cSrcweir.ENDIF
233cdf0e10cSrcweir
234cdf0e10cSrcweir# if yes or unset (neon not used) -> do not install openssl library!
235cdf0e10cSrcweir.IF $(SYSTEM_OPENSSL) != "YES"
236cdf0e10cSrcweirSCPDEFS+=-DOPENSSL
237cdf0e10cSrcweir.ENDIF
238cdf0e10cSrcweir
239cdf0e10cSrcweir.IF "$(DISABLE_ATL)"!=""
240cdf0e10cSrcweirSCPDEFS+=-DDISABLE_ATL
241cdf0e10cSrcweir.ENDIF
242cdf0e10cSrcweir
243cdf0e10cSrcweir.IF "$(SYSTEM_PYTHON)" == "YES"
244cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_PYTHON
245cdf0e10cSrcweir.ENDIF
246cdf0e10cSrcweir
247cdf0e10cSrcweir.IF "$(SYSTEM_LIBTEXTCAT)" == "YES"
248cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LIBTEXTCAT
249cdf0e10cSrcweir.ENDIF
250cdf0e10cSrcweir
251cdf0e10cSrcweir.IF "$(SYSTEM_LIBTEXTCAT_DATA)" != ""
252cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LIBTEXTCAT_DATA
253cdf0e10cSrcweir.ENDIF
254cdf0e10cSrcweir
255cdf0e10cSrcweir.IF "$(ENABLE_SVCTAGS)" == "YES"
256cdf0e10cSrcweirSCPDEFS+=-DENABLE_SVCTAGS
257cdf0e10cSrcweir.ENDIF
258cdf0e10cSrcweir
259cdf0e10cSrcweir.IF "$(WITH_VC_REDIST)" == "TRUE"
260cdf0e10cSrcweirSCPDEFS+=-DWITH_VC_REDIST
261cdf0e10cSrcweir.ENDIF
262cdf0e10cSrcweir
263cdf0e10cSrcweir.IF "$(MINGW_GCCDLL)"!=""
264cdf0e10cSrcweirSCPDEFS+=-DMINGW_GCCDLL=\""$(MINGW_GCCDLL)"\"
265cdf0e10cSrcweir.ENDIF
266cdf0e10cSrcweir
267cdf0e10cSrcweir.IF "$(MINGW_GXXDLL)"!=""
268cdf0e10cSrcweirSCPDEFS+=-DMINGW_GXXDLL=\""$(MINGW_GXXDLL)"\"
269cdf0e10cSrcweir.ENDIF
270cdf0e10cSrcweir
271cdf0e10cSrcweir.IF "$(SYSTEM_GDKPIXBUF)" == "YES"
272cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_GDKPIXBUF
273cdf0e10cSrcweir.ENDIF
274cdf0e10cSrcweir
275cdf0e10cSrcweir.IF "$(SYSTEM_GETTEXT)" == "YES"
276cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_GETTEXT
277cdf0e10cSrcweir.ENDIF
278cdf0e10cSrcweir
279cdf0e10cSrcweir.IF "$(SYSTEM_GLIB)" == "YES"
280cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_GLIB
281cdf0e10cSrcweir.ENDIF
282cdf0e10cSrcweir
283cdf0e10cSrcweir.IF "$(SYSTEM_LIBJPEG)" == "YES"
284cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LIBJPEG
285cdf0e10cSrcweir.ENDIF
286cdf0e10cSrcweir
287cdf0e10cSrcweir.IF "$(SYSTEM_PANGO)" == "YES"
288cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_PANGO
289cdf0e10cSrcweir.ENDIF
290cdf0e10cSrcweir
291cdf0e10cSrcweirSCP_PRODUCT_TYPE=osl
292cdf0e10cSrcweir
293cdf0e10cSrcweirICUVERSION_DEPENDENT_FILES= \
294cdf0e10cSrcweir		$(PAR)$/$(SCP_PRODUCT_TYPE)$/file_library_ooo.par \
295cdf0e10cSrcweir		$(PAR)$/$(SCP_PRODUCT_TYPE)$/shortcut_ooo.par
296cdf0e10cSrcweir
297cdf0e10cSrcweirISOLANGVERSION_DEPENDENT_FILES= \
298cdf0e10cSrcweir		$(PAR)$/$(SCP_PRODUCT_TYPE)$/file_library_ooo.par
299cdf0e10cSrcweir
300cdf0e10cSrcweirPARFILES=                          \
301cdf0e10cSrcweir        installation_ooo.par       \
302cdf0e10cSrcweir        scpaction_ooo.par          \
303cdf0e10cSrcweir        directory_ooo.par          \
304cdf0e10cSrcweir        directory_ooo_macosx.par   \
305cdf0e10cSrcweir        datacarrier_ooo.par        \
306cdf0e10cSrcweir        file_ooo.par               \
307cdf0e10cSrcweir        file_extra_ooo.par         \
308cdf0e10cSrcweir        file_font_ooo.par          \
309cdf0e10cSrcweir        file_library_ooo.par       \
310cdf0e10cSrcweir        file_resource_ooo.par      \
311cdf0e10cSrcweir        file_improvement.par       \
312cdf0e10cSrcweir        shortcut_ooo.par           \
313cdf0e10cSrcweir        module_ooo.par             \
314cdf0e10cSrcweir        module_hidden_ooo.par      \
315cdf0e10cSrcweir        module_langpack.par        \
316cdf0e10cSrcweir        module_lang_template.par   \
317cdf0e10cSrcweir        module_java.par            \
318cdf0e10cSrcweir        module_systemint.par       \
319cdf0e10cSrcweir        module_improvement.par     \
320cdf0e10cSrcweir        profile_ooo.par            \
321cdf0e10cSrcweir        profileitem_ooo.par        \
322cdf0e10cSrcweir        ure.par                    \
323cdf0e10cSrcweir        ure_into_ooo.par           \
324cdf0e10cSrcweir        ure_standalone.par         \
325cdf0e10cSrcweir        common_brand.par           \
326cdf0e10cSrcweir        common_brand_readme.par    \
327cdf0e10cSrcweir        ooo_brand.par
328cdf0e10cSrcweir
329cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
330cdf0e10cSrcweirPARFILES +=                        \
331cdf0e10cSrcweir        file_jre_ooo.par           \
332cdf0e10cSrcweir        folder_ooo.par             \
333cdf0e10cSrcweir        folderitem_ooo.par         \
334cdf0e10cSrcweir        registryitem_ooo.par       \
335cdf0e10cSrcweir        vc_redist.par              \
336cdf0e10cSrcweir        windowscustomaction_ooo.par
337cdf0e10cSrcweir.ENDIF
338cdf0e10cSrcweir
339cdf0e10cSrcweirULFFILES=                          \
340cdf0e10cSrcweir        directory_ooo.ulf          \
341cdf0e10cSrcweir        folderitem_ooo.ulf         \
342cdf0e10cSrcweir        module_ooo.ulf             \
343cdf0e10cSrcweir        module_langpack.ulf        \
344cdf0e10cSrcweir        module_java.ulf            \
345cdf0e10cSrcweir        registryitem_ooo.ulf       \
346cdf0e10cSrcweir        module_systemint.ulf
347cdf0e10cSrcweir
348cdf0e10cSrcweir# --- File ---------------------------------------------------------
349cdf0e10cSrcweir.INCLUDE :  target.mk
350cdf0e10cSrcweir
351cdf0e10cSrcweir.IF "$(SYSTEM_ICU)" != "YES"
352cdf0e10cSrcweir$(ICUVERSION_DEPENDENT_FILES) : $(SOLARINCDIR)$/icuversion.mk
353cdf0e10cSrcweir.ENDIF
354cdf0e10cSrcweir
355cdf0e10cSrcweir$(ISOLANGVERSION_DEPENDENT_FILES) : $(SOLARINCDIR)$/i18npool/version.mk
356cdf0e10cSrcweir
357