xref: /trunk/main/tools/Library_tl.mk (revision cc8deb09502b0533680c9dd4ece4278d7699cf65)
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#*************************************************************************
27
28$(eval $(call gb_Library_Library,tl))
29
30$(eval $(call gb_Library_add_package_headers,tl,tools_inc))
31
32$(eval $(call gb_Library_add_precompiled_header,tl,$(SRCDIR)/tools/inc/pch/precompiled_tools))
33
34$(eval $(call gb_Library_set_include,tl,\
35    $$(INCLUDE) \
36    -I$(SRCDIR)/tools/inc \
37    -I$(SRCDIR)/tools/inc/pch \
38    -I$(SRCDIR)/solenv/inc \
39    -I$(SRCDIR)/solenv/inc/Xp31 \
40    -I$(OUTDIR)/inc/offuh \
41    -I$(OUTDIR)/inc/stl \
42))
43
44$(eval $(call gb_Library_set_defs,tl,\
45    $$(DEFS) \
46    -DTOOLS_DLLIMPLEMENTATION \
47    -DVCL \
48))
49
50$(eval $(call gb_Library_add_linked_libs,tl,\
51    basegfx \
52    comphelper \
53    i18nisolang1 \
54    stl \
55    cppu \
56    sal \
57    vos3 \
58    $(gb_STDLIBS) \
59))
60
61
62$(eval $(call gb_Library_add_exception_objects,tl,\
63    tools/source/communi/geninfo \
64    tools/source/communi/parser \
65    tools/source/datetime/datetime \
66    tools/source/datetime/tdate \
67    tools/source/datetime/ttime \
68    tools/source/debug/debug \
69    tools/source/debug/stcktree \
70    tools/source/fsys/comdep \
71    tools/source/fsys/dirent \
72    tools/source/fsys/filecopy \
73    tools/source/fsys/fstat \
74    tools/source/fsys/tdir \
75    tools/source/fsys/tempfile \
76    tools/source/fsys/urlobj \
77    tools/source/fsys/wldcrd \
78    tools/source/generic/b3dtrans \
79    tools/source/generic/bigint \
80    tools/source/generic/color \
81    tools/source/generic/config \
82    tools/source/generic/fract \
83    tools/source/generic/gen \
84    tools/source/generic/line \
85    tools/source/generic/link \
86    tools/source/generic/poly \
87    tools/source/generic/poly2 \
88    tools/source/generic/svborder \
89    tools/source/generic/toolsin \
90    tools/source/generic/svlibrary \
91    tools/source/inet/inetmime \
92    tools/source/inet/inetmsg \
93    tools/source/inet/inetstrm \
94    tools/source/memtools/contnr \
95    tools/source/memtools/mempool \
96    tools/source/memtools/multisel \
97    tools/source/memtools/table \
98    tools/source/memtools/unqidx \
99    tools/source/misc/appendunixshellword \
100    tools/source/misc/extendapplicationenvironment \
101    tools/source/misc/getprocessworkingdir \
102    tools/source/misc/solarmutex \
103    tools/source/rc/isofallback \
104    tools/source/rc/rc \
105    tools/source/rc/resary \
106    tools/source/rc/resmgr \
107    tools/source/ref/errinf \
108    tools/source/ref/globname \
109    tools/source/ref/pstm \
110    tools/source/ref/ref \
111    tools/source/stream/cachestr \
112    tools/source/stream/stream \
113    tools/source/stream/strmsys \
114    tools/source/stream/vcompat \
115    tools/source/string/debugprint \
116    tools/source/string/tenccvt \
117    tools/source/string/tstring \
118    tools/source/string/tustring \
119    tools/source/testtoolloader/testtoolloader \
120    tools/source/zcodec/zcodec \
121))
122
123ifeq ($(GUI),UNX)
124$(eval $(call gb_Library_add_exception_objects,tl,\
125    tools/unx/source/dll/toolsdll \
126))
127endif
128
129ifeq ($(GUI),OS2)
130$(eval $(call gb_Library_add_exception_objects,tl,\
131    tools/os2/source/dll/toolsdll \
132))
133endif
134
135ifeq ($(SYSTEM_ZLIB),YES)
136$(eval $(call gb_Library_set_cxxflags,tl,\
137    $$(CXXFLAGS) \
138    -DSYSTEM_ZLIB \
139))
140$(eval $(call gb_Library_add_linked_libs,tl,\
141    z \
142))
143else
144$(eval $(call gb_Library_add_linked_static_libs,tl,\
145    zlib \
146))
147endif
148
149ifeq ($(OS),WNT)
150
151$(eval $(call gb_Library_set_include,tl,\
152    $$(INCLUDE) \
153    -I$(SRCDIR)/tools/win/inc \
154))
155
156$(eval $(call gb_Library_add_exception_objects,tl,\
157    tools/win/source/dll/toolsdll \
158))
159
160$(eval $(call gb_Library_add_linked_libs,tl,\
161    mpr \
162    ole32 \
163    shell32 \
164    user32 \
165    uuid \
166))
167
168endif
169
170# tools/source/string/debugprint -DDEBUG -DEXCEPTIONS_OFF -DOSL_DEBUG_LEVEL=2 -DSHAREDLIB -DTOOLS_DLLIMPLEMENTATION -D_DLL_ -O0 -fno-exceptions -fpic -fvisibility=hidden -g
171# -DOPTIMIZE
172# no -DTOOLS_DLLIMPLEMENTATION on toolsdll
173# -DEXCEPTIONS_OFF -fno-exceptions on geninfo parser datetime tdate ttime bigint color config fract gen line link poly2 svborder toolsin inetmime inetmsg inetstrm contnr mempool multisel table unqidx cachestr stream strmsys vcompat tenccvt tstring tustring testtoolloader
174# vim: set noet sw=4 ts=4:
175