17871dc3eSAndrew Rist#************************************************************** 27871dc3eSAndrew Rist# 37871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 47871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 57871dc3eSAndrew Rist# distributed with this work for additional information 67871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 77871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 87871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 97871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 107871dc3eSAndrew Rist# 117871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 127871dc3eSAndrew Rist# 137871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 147871dc3eSAndrew Rist# software distributed under the License is distributed on an 157871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 167871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 177871dc3eSAndrew Rist# specific language governing permissions and limitations 187871dc3eSAndrew Rist# under the License. 197871dc3eSAndrew Rist# 207871dc3eSAndrew Rist#************************************************************** 217871dc3eSAndrew Rist 227871dc3eSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir$(eval $(call gb_Library_Library,tl)) 25cdf0e10cSrcweir 26cdf0e10cSrcweir$(eval $(call gb_Library_add_package_headers,tl,tools_inc)) 27cdf0e10cSrcweir 28cdf0e10cSrcweir$(eval $(call gb_Library_add_precompiled_header,tl,$(SRCDIR)/tools/inc/pch/precompiled_tools)) 29cdf0e10cSrcweir 30cdf0e10cSrcweir$(eval $(call gb_Library_set_include,tl,\ 31cdf0e10cSrcweir $$(INCLUDE) \ 32cdf0e10cSrcweir -I$(SRCDIR)/tools/inc \ 33cdf0e10cSrcweir -I$(SRCDIR)/tools/inc/pch \ 34cdf0e10cSrcweir -I$(SRCDIR)/solenv/inc \ 35cdf0e10cSrcweir -I$(SRCDIR)/solenv/inc/Xp31 \ 36cdf0e10cSrcweir -I$(OUTDIR)/inc/stl \ 37cdf0e10cSrcweir)) 38cdf0e10cSrcweir 39*b63233d8Sdamjan$(eval $(call gb_Library_add_defs,tl,\ 40cdf0e10cSrcweir -DTOOLS_DLLIMPLEMENTATION \ 41cdf0e10cSrcweir -DVCL \ 42cdf0e10cSrcweir)) 43cdf0e10cSrcweir 44*b63233d8Sdamjan$(eval $(call gb_Library_add_api,tl,\ 45*b63233d8Sdamjan udkapi \ 46*b63233d8Sdamjan offapi \ 47*b63233d8Sdamjan)) 48*b63233d8Sdamjan 49cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,tl,\ 50cdf0e10cSrcweir basegfx \ 51cdf0e10cSrcweir comphelper \ 52cdf0e10cSrcweir i18nisolang1 \ 53cdf0e10cSrcweir stl \ 54cdf0e10cSrcweir cppu \ 55cdf0e10cSrcweir sal \ 56cdf0e10cSrcweir vos3 \ 57cdf0e10cSrcweir $(gb_STDLIBS) \ 58cdf0e10cSrcweir)) 59cdf0e10cSrcweir 60cdf0e10cSrcweir 61cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,tl,\ 62cdf0e10cSrcweir tools/source/communi/geninfo \ 63cdf0e10cSrcweir tools/source/communi/parser \ 64cdf0e10cSrcweir tools/source/datetime/datetime \ 65cdf0e10cSrcweir tools/source/datetime/tdate \ 66cdf0e10cSrcweir tools/source/datetime/ttime \ 67cdf0e10cSrcweir tools/source/debug/debug \ 68cdf0e10cSrcweir tools/source/debug/stcktree \ 69cdf0e10cSrcweir tools/source/fsys/comdep \ 70cdf0e10cSrcweir tools/source/fsys/dirent \ 71cdf0e10cSrcweir tools/source/fsys/filecopy \ 72cdf0e10cSrcweir tools/source/fsys/fstat \ 73cdf0e10cSrcweir tools/source/fsys/tdir \ 74cdf0e10cSrcweir tools/source/fsys/tempfile \ 75cdf0e10cSrcweir tools/source/fsys/urlobj \ 76cdf0e10cSrcweir tools/source/fsys/wldcrd \ 77cdf0e10cSrcweir tools/source/generic/b3dtrans \ 78cdf0e10cSrcweir tools/source/generic/bigint \ 79cdf0e10cSrcweir tools/source/generic/color \ 80cdf0e10cSrcweir tools/source/generic/config \ 81cdf0e10cSrcweir tools/source/generic/fract \ 82cdf0e10cSrcweir tools/source/generic/gen \ 83cdf0e10cSrcweir tools/source/generic/line \ 84cdf0e10cSrcweir tools/source/generic/link \ 85cdf0e10cSrcweir tools/source/generic/poly \ 86cdf0e10cSrcweir tools/source/generic/poly2 \ 87cdf0e10cSrcweir tools/source/generic/svborder \ 88cdf0e10cSrcweir tools/source/generic/toolsin \ 89cdf0e10cSrcweir tools/source/generic/svlibrary \ 90cdf0e10cSrcweir tools/source/inet/inetmime \ 91cdf0e10cSrcweir tools/source/inet/inetmsg \ 92cdf0e10cSrcweir tools/source/inet/inetstrm \ 93cdf0e10cSrcweir tools/source/memtools/contnr \ 94cdf0e10cSrcweir tools/source/memtools/mempool \ 95cdf0e10cSrcweir tools/source/memtools/multisel \ 96cdf0e10cSrcweir tools/source/memtools/table \ 97cdf0e10cSrcweir tools/source/memtools/unqidx \ 98cdf0e10cSrcweir tools/source/misc/appendunixshellword \ 99cdf0e10cSrcweir tools/source/misc/extendapplicationenvironment \ 100cdf0e10cSrcweir tools/source/misc/getprocessworkingdir \ 101cdf0e10cSrcweir tools/source/misc/solarmutex \ 102cdf0e10cSrcweir tools/source/rc/isofallback \ 103cdf0e10cSrcweir tools/source/rc/rc \ 104cdf0e10cSrcweir tools/source/rc/resary \ 105cdf0e10cSrcweir tools/source/rc/resmgr \ 106cdf0e10cSrcweir tools/source/ref/errinf \ 107cdf0e10cSrcweir tools/source/ref/globname \ 108cdf0e10cSrcweir tools/source/ref/pstm \ 109cdf0e10cSrcweir tools/source/ref/ref \ 110cdf0e10cSrcweir tools/source/stream/cachestr \ 111cdf0e10cSrcweir tools/source/stream/stream \ 112cdf0e10cSrcweir tools/source/stream/strmsys \ 113cdf0e10cSrcweir tools/source/stream/vcompat \ 114cdf0e10cSrcweir tools/source/string/debugprint \ 115cdf0e10cSrcweir tools/source/string/tenccvt \ 116cdf0e10cSrcweir tools/source/string/tstring \ 117cdf0e10cSrcweir tools/source/string/tustring \ 118cdf0e10cSrcweir tools/source/testtoolloader/testtoolloader \ 119cdf0e10cSrcweir tools/source/zcodec/zcodec \ 120cdf0e10cSrcweir)) 121cdf0e10cSrcweir 122cdf0e10cSrcweirifeq ($(GUI),UNX) 123cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,tl,\ 124cdf0e10cSrcweir tools/unx/source/dll/toolsdll \ 125cdf0e10cSrcweir)) 126cdf0e10cSrcweirendif 127cdf0e10cSrcweir 12827ead02aSPedro Giffuniifeq ($(GUI),OS2) 12927ead02aSPedro Giffuni$(eval $(call gb_Library_add_exception_objects,tl,\ 13027ead02aSPedro Giffuni tools/os2/source/dll/toolsdll \ 13127ead02aSPedro Giffuni)) 13227ead02aSPedro Giffuniendif 13327ead02aSPedro Giffuni 134*b63233d8Sdamjan$(call gb_Library_use_external,tl,zlib) 135cdf0e10cSrcweir 1367e0206ddSYuri Darioifeq ($(OS),OS2) 1377e0206ddSYuri Dario# YD FIXME above is not working... needs ldflags hack... 138*b63233d8Sdamjan$(eval $(call gb_Library_add_libs,tl,\ 1397e0206ddSYuri Dario -lz \ 1407e0206ddSYuri Dario)) 1417e0206ddSYuri Darioendif 1427e0206ddSYuri Dario 143cdf0e10cSrcweirifeq ($(OS),WNT) 144cdf0e10cSrcweir 145cdf0e10cSrcweir$(eval $(call gb_Library_set_include,tl,\ 146cdf0e10cSrcweir $$(INCLUDE) \ 147cdf0e10cSrcweir -I$(SRCDIR)/tools/win/inc \ 148cdf0e10cSrcweir)) 149cdf0e10cSrcweir 150cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,tl,\ 151cdf0e10cSrcweir tools/win/source/dll/toolsdll \ 152cdf0e10cSrcweir)) 153cdf0e10cSrcweir 154cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,tl,\ 155cdf0e10cSrcweir mpr \ 156cdf0e10cSrcweir ole32 \ 157cdf0e10cSrcweir shell32 \ 158cdf0e10cSrcweir user32 \ 159cdf0e10cSrcweir uuid \ 160cdf0e10cSrcweir)) 161cdf0e10cSrcweir 162cdf0e10cSrcweirendif 163cdf0e10cSrcweir 164cdf0e10cSrcweir# tools/source/string/debugprint -DDEBUG -DEXCEPTIONS_OFF -DOSL_DEBUG_LEVEL=2 -DSHAREDLIB -DTOOLS_DLLIMPLEMENTATION -D_DLL_ -O0 -fno-exceptions -fpic -fvisibility=hidden -g 165cdf0e10cSrcweir# -DOPTIMIZE 166cdf0e10cSrcweir# no -DTOOLS_DLLIMPLEMENTATION on toolsdll 167cdf0e10cSrcweir# -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 168cdf0e10cSrcweir# vim: set noet sw=4 ts=4: 169