merged tag ooo/DEV300_m102
[LibreOffice.git] / tools / Library_tl.mk
blob4e676f2c3436b5441548a3c524c929b58d660c51
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
28 $(eval $(call gb_Library_Library,tl))
30 $(eval $(call gb_Library_add_package_headers,tl,tools_inc))
32 $(eval $(call gb_Library_add_precompiled_header,tl,$(SRCDIR)/tools/inc/pch/precompiled_tools))
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 \
44 $(eval $(call gb_Library_set_defs,tl,\
45 $$(DEFS) \
46 -DTOOLS_DLLIMPLEMENTATION \
47 -DVCL \
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) \
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 \
123 ifeq ($(GUI),UNX)
124 $(eval $(call gb_Library_add_exception_objects,tl,\
125 tools/unx/source/dll/toolsdll \
127 endif
129 ifeq ($(SYSTEM_ZLIB),YES)
130 $(eval $(call gb_Library_set_cxxflags,tl,\
131 $$(CXXFLAGS) \
132 -DSYSTEM_ZLIB \
134 $(eval $(call gb_Library_add_linked_libs,tl,\
137 else
138 $(eval $(call gb_Library_add_linked_static_libs,tl,\
139 zlib \
141 endif
143 ifeq ($(OS),WNT)
145 $(eval $(call gb_Library_set_include,tl,\
146 $$(INCLUDE) \
147 -I$(SRCDIR)/tools/win/inc \
150 $(eval $(call gb_Library_add_exception_objects,tl,\
151 tools/win/source/dll/toolsdll \
154 $(eval $(call gb_Library_add_linked_libs,tl,\
155 mpr \
156 ole32 \
157 shell32 \
158 user32 \
159 uuid \
162 endif
164 # tools/source/string/debugprint -DDEBUG -DEXCEPTIONS_OFF -DOSL_DEBUG_LEVEL=2 -DSHAREDLIB -DTOOLS_DLLIMPLEMENTATION -D_DLL_ -O0 -fno-exceptions -fpic -fvisibility=hidden -g
165 # -DOPTIMIZE
166 # no -DTOOLS_DLLIMPLEMENTATION on toolsdll
167 # -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
168 # vim: set noet sw=4 ts=4: