xref: /aoo4110/main/tools/Library_tl.mk (revision b1cdbd2c)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24$(eval $(call gb_Library_Library,tl))
25
26$(eval $(call gb_Library_add_package_headers,tl,tools_inc))
27
28$(eval $(call gb_Library_add_precompiled_header,tl,$(SRCDIR)/tools/inc/pch/precompiled_tools))
29
30$(eval $(call gb_Library_set_include,tl,\
31	$$(INCLUDE) \
32	-I$(SRCDIR)/tools/inc \
33	-I$(SRCDIR)/tools/inc/pch \
34	-I$(SRCDIR)/solenv/inc \
35	-I$(SRCDIR)/solenv/inc/Xp31 \
36	-I$(OUTDIR)/inc/offuh \
37	-I$(OUTDIR)/inc/stl \
38))
39
40$(eval $(call gb_Library_set_defs,tl,\
41	$$(DEFS) \
42	-DTOOLS_DLLIMPLEMENTATION \
43	-DVCL \
44))
45
46$(eval $(call gb_Library_add_linked_libs,tl,\
47	basegfx \
48	comphelper \
49	i18nisolang1 \
50	stl \
51	cppu \
52	sal \
53	vos3 \
54    $(gb_STDLIBS) \
55))
56
57
58$(eval $(call gb_Library_add_exception_objects,tl,\
59	tools/source/communi/geninfo \
60	tools/source/communi/parser \
61	tools/source/datetime/datetime \
62	tools/source/datetime/tdate \
63	tools/source/datetime/ttime \
64	tools/source/debug/debug \
65	tools/source/debug/stcktree \
66	tools/source/fsys/comdep \
67	tools/source/fsys/dirent \
68	tools/source/fsys/filecopy \
69	tools/source/fsys/fstat \
70	tools/source/fsys/tdir \
71	tools/source/fsys/tempfile \
72	tools/source/fsys/urlobj \
73	tools/source/fsys/wldcrd \
74	tools/source/generic/b3dtrans \
75	tools/source/generic/bigint \
76	tools/source/generic/color \
77	tools/source/generic/config \
78	tools/source/generic/fract \
79	tools/source/generic/gen \
80	tools/source/generic/line \
81	tools/source/generic/link \
82	tools/source/generic/poly \
83	tools/source/generic/poly2 \
84	tools/source/generic/svborder \
85	tools/source/generic/toolsin \
86	tools/source/generic/svlibrary \
87	tools/source/inet/inetmime \
88	tools/source/inet/inetmsg \
89	tools/source/inet/inetstrm \
90	tools/source/memtools/contnr \
91	tools/source/memtools/mempool \
92	tools/source/memtools/multisel \
93	tools/source/memtools/table \
94	tools/source/memtools/unqidx \
95	tools/source/misc/appendunixshellword \
96	tools/source/misc/extendapplicationenvironment \
97	tools/source/misc/getprocessworkingdir \
98	tools/source/misc/solarmutex \
99	tools/source/rc/isofallback \
100	tools/source/rc/rc \
101	tools/source/rc/resary \
102	tools/source/rc/resmgr \
103	tools/source/ref/errinf \
104	tools/source/ref/globname \
105	tools/source/ref/pstm \
106	tools/source/ref/ref \
107	tools/source/stream/cachestr \
108	tools/source/stream/stream \
109	tools/source/stream/strmsys \
110	tools/source/stream/vcompat \
111	tools/source/string/debugprint \
112	tools/source/string/tenccvt \
113	tools/source/string/tstring \
114	tools/source/string/tustring \
115	tools/source/testtoolloader/testtoolloader \
116	tools/source/zcodec/zcodec \
117))
118
119ifeq ($(GUI),UNX)
120$(eval $(call gb_Library_add_exception_objects,tl,\
121	tools/unx/source/dll/toolsdll \
122))
123endif
124
125ifeq ($(GUI),OS2)
126$(eval $(call gb_Library_add_exception_objects,tl,\
127	tools/os2/source/dll/toolsdll \
128))
129endif
130
131ifeq ($(SYSTEM_ZLIB),YES)
132$(eval $(call gb_Library_set_cxxflags,tl,\
133	$$(CXXFLAGS) \
134	-DSYSTEM_ZLIB \
135))
136$(eval $(call gb_Library_add_linked_libs,tl,\
137	z \
138))
139else
140$(eval $(call gb_Library_add_linked_static_libs,tl,\
141	zlib \
142))
143endif
144
145ifeq ($(OS),OS2)
146# YD FIXME above is not working... needs ldflags hack...
147$(eval $(call gb_Library_set_ldflags,tl,\
148    $$(LDFLAGS) \
149    -lz \
150))
151endif
152
153ifeq ($(OS),WNT)
154
155$(eval $(call gb_Library_set_include,tl,\
156	$$(INCLUDE) \
157	-I$(SRCDIR)/tools/win/inc \
158))
159
160$(eval $(call gb_Library_add_exception_objects,tl,\
161	tools/win/source/dll/toolsdll \
162))
163
164$(eval $(call gb_Library_add_linked_libs,tl,\
165	mpr \
166	ole32 \
167	shell32 \
168	user32 \
169	uuid \
170))
171
172endif
173
174# tools/source/string/debugprint -DDEBUG -DEXCEPTIONS_OFF -DOSL_DEBUG_LEVEL=2 -DSHAREDLIB -DTOOLS_DLLIMPLEMENTATION -D_DLL_ -O0 -fno-exceptions -fpic -fvisibility=hidden -g
175# -DOPTIMIZE
176# no -DTOOLS_DLLIMPLEMENTATION on toolsdll
177# -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
178# vim: set noet sw=4 ts=4:
179