xref: /aoo42x/main/tools/Library_tl.mk (revision b63233d8)
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/stl \
37))
38
39$(eval $(call gb_Library_add_defs,tl,\
40	-DTOOLS_DLLIMPLEMENTATION \
41	-DVCL \
42))
43
44$(eval $(call gb_Library_add_api,tl,\
45	udkapi \
46	offapi \
47))
48
49$(eval $(call gb_Library_add_linked_libs,tl,\
50	basegfx \
51	comphelper \
52	i18nisolang1 \
53	stl \
54	cppu \
55	sal \
56	vos3 \
57    $(gb_STDLIBS) \
58))
59
60
61$(eval $(call gb_Library_add_exception_objects,tl,\
62	tools/source/communi/geninfo \
63	tools/source/communi/parser \
64	tools/source/datetime/datetime \
65	tools/source/datetime/tdate \
66	tools/source/datetime/ttime \
67	tools/source/debug/debug \
68	tools/source/debug/stcktree \
69	tools/source/fsys/comdep \
70	tools/source/fsys/dirent \
71	tools/source/fsys/filecopy \
72	tools/source/fsys/fstat \
73	tools/source/fsys/tdir \
74	tools/source/fsys/tempfile \
75	tools/source/fsys/urlobj \
76	tools/source/fsys/wldcrd \
77	tools/source/generic/b3dtrans \
78	tools/source/generic/bigint \
79	tools/source/generic/color \
80	tools/source/generic/config \
81	tools/source/generic/fract \
82	tools/source/generic/gen \
83	tools/source/generic/line \
84	tools/source/generic/link \
85	tools/source/generic/poly \
86	tools/source/generic/poly2 \
87	tools/source/generic/svborder \
88	tools/source/generic/toolsin \
89	tools/source/generic/svlibrary \
90	tools/source/inet/inetmime \
91	tools/source/inet/inetmsg \
92	tools/source/inet/inetstrm \
93	tools/source/memtools/contnr \
94	tools/source/memtools/mempool \
95	tools/source/memtools/multisel \
96	tools/source/memtools/table \
97	tools/source/memtools/unqidx \
98	tools/source/misc/appendunixshellword \
99	tools/source/misc/extendapplicationenvironment \
100	tools/source/misc/getprocessworkingdir \
101	tools/source/misc/solarmutex \
102	tools/source/rc/isofallback \
103	tools/source/rc/rc \
104	tools/source/rc/resary \
105	tools/source/rc/resmgr \
106	tools/source/ref/errinf \
107	tools/source/ref/globname \
108	tools/source/ref/pstm \
109	tools/source/ref/ref \
110	tools/source/stream/cachestr \
111	tools/source/stream/stream \
112	tools/source/stream/strmsys \
113	tools/source/stream/vcompat \
114	tools/source/string/debugprint \
115	tools/source/string/tenccvt \
116	tools/source/string/tstring \
117	tools/source/string/tustring \
118	tools/source/testtoolloader/testtoolloader \
119	tools/source/zcodec/zcodec \
120))
121
122ifeq ($(GUI),UNX)
123$(eval $(call gb_Library_add_exception_objects,tl,\
124	tools/unx/source/dll/toolsdll \
125))
126endif
127
128ifeq ($(GUI),OS2)
129$(eval $(call gb_Library_add_exception_objects,tl,\
130	tools/os2/source/dll/toolsdll \
131))
132endif
133
134$(call gb_Library_use_external,tl,zlib)
135
136ifeq ($(OS),OS2)
137# YD FIXME above is not working... needs ldflags hack...
138$(eval $(call gb_Library_add_libs,tl,\
139    -lz \
140))
141endif
142
143ifeq ($(OS),WNT)
144
145$(eval $(call gb_Library_set_include,tl,\
146	$$(INCLUDE) \
147	-I$(SRCDIR)/tools/win/inc \
148))
149
150$(eval $(call gb_Library_add_exception_objects,tl,\
151	tools/win/source/dll/toolsdll \
152))
153
154$(eval $(call gb_Library_add_linked_libs,tl,\
155	mpr \
156	ole32 \
157	shell32 \
158	user32 \
159	uuid \
160))
161
162endif
163
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:
169