make install and dev-install build-depend on all
[LibreOffice.git] / tools / Library_tl.mk
blob0a79ada1c928dc2243b9aa028e22e626b2974773
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 #*************************************************************************
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 #
6 # Copyright 2000, 2010 Oracle and/or its affiliates.
8 # OpenOffice.org - a multi-platform office productivity suite
10 # This file is part of OpenOffice.org.
12 # OpenOffice.org is free software: you can redistribute it and/or modify
13 # it under the terms of the GNU Lesser General Public License version 3
14 # only, as published by the Free Software Foundation.
16 # OpenOffice.org is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU Lesser General Public License version 3 for more details
20 # (a copy is included in the LICENSE file that accompanied this code).
22 # You should have received a copy of the GNU Lesser General Public License
23 # version 3 along with OpenOffice.org. If not, see
24 # <http://www.openoffice.org/license.html>
25 # for a copy of the LGPLv3 License.
27 #*************************************************************************
29 $(eval $(call gb_Library_Library,tl))
31 $(eval $(call gb_Library_add_package_headers,tl,tools_inc))
32 $(eval $(call gb_Library_add_package_headers,tl,tools_reversemap))
34 $(eval $(call gb_Library_add_precompiled_header,tl,$(SRCDIR)/tools/inc/pch/precompiled_tools))
36 $(eval $(call gb_Library_set_include,tl,\
37 $$(INCLUDE) \
38 -I$(realpath $(SRCDIR)/tools/inc) \
39 -I$(realpath $(SRCDIR)/tools/inc/pch) \
40 -I$(SRCDIR)/solenv/inc \
41 -I$(SRCDIR)/solenv/inc/Xp31 \
42 -I$(WORKDIR)/CustomTarget/tools/source/reversemap \
45 $(eval $(call gb_Library_add_defs,tl,\
46 -DTOOLS_DLLIMPLEMENTATION \
47 -DVCL \
50 $(eval $(call gb_Library_add_api,tl,\
51 udkapi \
52 offapi \
55 $(eval $(call gb_Library_add_linked_libs,tl,\
56 basegfx \
57 comphelper \
58 i18nisolang1 \
59 cppu \
60 sal \
61 $(gb_STDLIBS) \
65 $(eval $(call gb_Library_add_exception_objects,tl,\
66 tools/source/datetime/datetime \
67 tools/source/datetime/tdate \
68 tools/source/datetime/ttime \
69 tools/source/debug/debug \
70 tools/source/debug/stcktree \
71 tools/source/fsys/comdep \
72 tools/source/fsys/dirent \
73 tools/source/fsys/filecopy \
74 tools/source/fsys/fstat \
75 tools/source/fsys/tdir \
76 tools/source/fsys/tempfile \
77 tools/source/fsys/urlobj \
78 tools/source/fsys/wldcrd \
79 tools/source/generic/b3dtrans \
80 tools/source/generic/bigint \
81 tools/source/generic/color \
82 tools/source/generic/config \
83 tools/source/generic/fract \
84 tools/source/generic/gen \
85 tools/source/generic/line \
86 tools/source/generic/link \
87 tools/source/generic/poly \
88 tools/source/generic/poly2 \
89 tools/source/generic/svborder \
90 tools/source/generic/toolsin \
91 tools/source/generic/svlibrary \
92 tools/source/inet/inetmime \
93 tools/source/inet/inetmsg \
94 tools/source/inet/inetstrm \
95 tools/source/memtools/contnr \
96 tools/source/memtools/mempool \
97 tools/source/memtools/multisel \
98 tools/source/memtools/table \
99 tools/source/memtools/unqidx \
100 tools/source/misc/appendunixshellword \
101 tools/source/misc/extendapplicationenvironment \
102 tools/source/misc/getprocessworkingdir \
103 tools/source/misc/solarmutex \
104 tools/source/rc/isofallback \
105 tools/source/rc/rc \
106 tools/source/rc/resary \
107 tools/source/rc/resmgr \
108 tools/source/ref/errinf \
109 tools/source/ref/globname \
110 tools/source/ref/pstm \
111 tools/source/ref/ref \
112 tools/source/stream/cachestr \
113 tools/source/stream/stream \
114 tools/source/stream/strmsys \
115 tools/source/stream/vcompat \
116 tools/source/string/debugprint \
117 tools/source/string/tenccvt \
118 tools/source/string/tstring \
119 tools/source/string/tustring \
120 tools/source/string/reversemap \
121 tools/source/testtoolloader/testtoolloader \
122 tools/source/zcodec/zcodec \
125 ifeq ($(GUI),UNX)
126 $(eval $(call gb_Library_add_exception_objects,tl,\
127 tools/unx/source/dll/toolsdll \
129 endif
131 $(eval $(call gb_Library_use_external,tl,zlib))
133 ifeq ($(OS),WNT)
135 $(eval $(call gb_Library_set_include,tl,\
136 $$(INCLUDE) \
137 -I$(realpath $(SRCDIR)/tools/win/inc) \
140 $(eval $(call gb_Library_add_exception_objects,tl,\
141 tools/win/source/dll/toolsdll \
144 $(eval $(call gb_Library_add_linked_libs,tl,\
145 mpr \
146 ole32 \
147 shell32 \
148 user32 \
149 uuid \
152 endif
154 # tools/source/string/debugprint -DDEBUG -DEXCEPTIONS_OFF -DOSL_DEBUG_LEVEL=2 -DSHAREDLIB -DTOOLS_DLLIMPLEMENTATION -D_DLL_ -O0 -fno-exceptions -fpic -fvisibility=hidden -g
155 # -DOPTIMIZE
156 # no -DTOOLS_DLLIMPLEMENTATION on toolsdll
157 # -DEXCEPTIONS_OFF -fno-exceptions on 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
158 # vim: set noet sw=4 ts=4: