17871dc3eSAndrew Rist#************************************************************** 2cdf0e10cSrcweir# 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 10cdf0e10cSrcweir# 117871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir# 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. 19cdf0e10cSrcweir# 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/offuh \ 37cdf0e10cSrcweir -I$(OUTDIR)/inc/stl \ 38cdf0e10cSrcweir)) 39cdf0e10cSrcweir 40cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,tl,\ 41cdf0e10cSrcweir $$(DEFS) \ 42cdf0e10cSrcweir -DTOOLS_DLLIMPLEMENTATION \ 43cdf0e10cSrcweir -DVCL \ 44cdf0e10cSrcweir)) 45cdf0e10cSrcweir 46cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,tl,\ 47cdf0e10cSrcweir basegfx \ 48cdf0e10cSrcweir comphelper \ 49cdf0e10cSrcweir i18nisolang1 \ 50cdf0e10cSrcweir stl \ 51cdf0e10cSrcweir cppu \ 52cdf0e10cSrcweir sal \ 53cdf0e10cSrcweir vos3 \ 54cdf0e10cSrcweir $(gb_STDLIBS) \ 55cdf0e10cSrcweir)) 56cdf0e10cSrcweir 57cdf0e10cSrcweir 58cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,tl,\ 59cdf0e10cSrcweir tools/source/communi/geninfo \ 60cdf0e10cSrcweir tools/source/communi/parser \ 61cdf0e10cSrcweir tools/source/datetime/datetime \ 62cdf0e10cSrcweir tools/source/datetime/tdate \ 63cdf0e10cSrcweir tools/source/datetime/ttime \ 64cdf0e10cSrcweir tools/source/debug/debug \ 65cdf0e10cSrcweir tools/source/debug/stcktree \ 66cdf0e10cSrcweir tools/source/fsys/comdep \ 67cdf0e10cSrcweir tools/source/fsys/dirent \ 68cdf0e10cSrcweir tools/source/fsys/filecopy \ 69cdf0e10cSrcweir tools/source/fsys/fstat \ 70cdf0e10cSrcweir tools/source/fsys/tdir \ 71cdf0e10cSrcweir tools/source/fsys/tempfile \ 72cdf0e10cSrcweir tools/source/fsys/urlobj \ 73cdf0e10cSrcweir tools/source/fsys/wldcrd \ 74cdf0e10cSrcweir tools/source/generic/b3dtrans \ 75cdf0e10cSrcweir tools/source/generic/bigint \ 76cdf0e10cSrcweir tools/source/generic/color \ 77cdf0e10cSrcweir tools/source/generic/config \ 78cdf0e10cSrcweir tools/source/generic/fract \ 79cdf0e10cSrcweir tools/source/generic/gen \ 80cdf0e10cSrcweir tools/source/generic/line \ 81cdf0e10cSrcweir tools/source/generic/link \ 82cdf0e10cSrcweir tools/source/generic/poly \ 83cdf0e10cSrcweir tools/source/generic/poly2 \ 84cdf0e10cSrcweir tools/source/generic/svborder \ 85cdf0e10cSrcweir tools/source/generic/toolsin \ 86cdf0e10cSrcweir tools/source/generic/svlibrary \ 87cdf0e10cSrcweir tools/source/inet/inetmime \ 88cdf0e10cSrcweir tools/source/inet/inetmsg \ 89cdf0e10cSrcweir tools/source/inet/inetstrm \ 90cdf0e10cSrcweir tools/source/memtools/contnr \ 91cdf0e10cSrcweir tools/source/memtools/mempool \ 92cdf0e10cSrcweir tools/source/memtools/multisel \ 93cdf0e10cSrcweir tools/source/memtools/table \ 94cdf0e10cSrcweir tools/source/memtools/unqidx \ 95cdf0e10cSrcweir tools/source/misc/appendunixshellword \ 96cdf0e10cSrcweir tools/source/misc/extendapplicationenvironment \ 97cdf0e10cSrcweir tools/source/misc/getprocessworkingdir \ 98cdf0e10cSrcweir tools/source/misc/solarmutex \ 99cdf0e10cSrcweir tools/source/rc/isofallback \ 100cdf0e10cSrcweir tools/source/rc/rc \ 101cdf0e10cSrcweir tools/source/rc/resary \ 102cdf0e10cSrcweir tools/source/rc/resmgr \ 103cdf0e10cSrcweir tools/source/ref/errinf \ 104cdf0e10cSrcweir tools/source/ref/globname \ 105cdf0e10cSrcweir tools/source/ref/pstm \ 106cdf0e10cSrcweir tools/source/ref/ref \ 107cdf0e10cSrcweir tools/source/stream/cachestr \ 108cdf0e10cSrcweir tools/source/stream/stream \ 109cdf0e10cSrcweir tools/source/stream/strmsys \ 110cdf0e10cSrcweir tools/source/stream/vcompat \ 111cdf0e10cSrcweir tools/source/string/debugprint \ 112cdf0e10cSrcweir tools/source/string/tenccvt \ 113cdf0e10cSrcweir tools/source/string/tstring \ 114cdf0e10cSrcweir tools/source/string/tustring \ 115cdf0e10cSrcweir tools/source/testtoolloader/testtoolloader \ 116cdf0e10cSrcweir tools/source/zcodec/zcodec \ 117cdf0e10cSrcweir)) 118cdf0e10cSrcweir 119cdf0e10cSrcweirifeq ($(GUI),UNX) 120cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,tl,\ 121cdf0e10cSrcweir tools/unx/source/dll/toolsdll \ 122cdf0e10cSrcweir)) 123cdf0e10cSrcweirendif 124cdf0e10cSrcweir 12527ead02aSPedro Giffuniifeq ($(GUI),OS2) 12627ead02aSPedro Giffuni$(eval $(call gb_Library_add_exception_objects,tl,\ 12727ead02aSPedro Giffuni tools/os2/source/dll/toolsdll \ 12827ead02aSPedro Giffuni)) 12927ead02aSPedro Giffuniendif 13027ead02aSPedro Giffuni 131cdf0e10cSrcweirifeq ($(SYSTEM_ZLIB),YES) 132cdf0e10cSrcweir$(eval $(call gb_Library_set_cxxflags,tl,\ 133cdf0e10cSrcweir $$(CXXFLAGS) \ 134cdf0e10cSrcweir -DSYSTEM_ZLIB \ 135cdf0e10cSrcweir)) 136cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,tl,\ 137cdf0e10cSrcweir z \ 138cdf0e10cSrcweir)) 139cdf0e10cSrcweirelse 140cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_static_libs,tl,\ 141cdf0e10cSrcweir zlib \ 142cdf0e10cSrcweir)) 143cdf0e10cSrcweirendif 144cdf0e10cSrcweir 145*7e0206ddSYuri Darioifeq ($(OS),OS2) 146*7e0206ddSYuri Dario# YD FIXME above is not working... needs ldflags hack... 147*7e0206ddSYuri Dario$(eval $(call gb_Library_set_ldflags,tl,\ 148*7e0206ddSYuri Dario $$(LDFLAGS) \ 149*7e0206ddSYuri Dario -lz \ 150*7e0206ddSYuri Dario)) 151*7e0206ddSYuri Darioendif 152*7e0206ddSYuri Dario 153cdf0e10cSrcweirifeq ($(OS),WNT) 154cdf0e10cSrcweir 155cdf0e10cSrcweir$(eval $(call gb_Library_set_include,tl,\ 156cdf0e10cSrcweir $$(INCLUDE) \ 157cdf0e10cSrcweir -I$(SRCDIR)/tools/win/inc \ 158cdf0e10cSrcweir)) 159cdf0e10cSrcweir 160cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,tl,\ 161cdf0e10cSrcweir tools/win/source/dll/toolsdll \ 162cdf0e10cSrcweir)) 163cdf0e10cSrcweir 164cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,tl,\ 165cdf0e10cSrcweir mpr \ 166cdf0e10cSrcweir ole32 \ 167cdf0e10cSrcweir shell32 \ 168cdf0e10cSrcweir user32 \ 169cdf0e10cSrcweir uuid \ 170cdf0e10cSrcweir)) 171cdf0e10cSrcweir 172cdf0e10cSrcweirendif 173cdf0e10cSrcweir 174cdf0e10cSrcweir# tools/source/string/debugprint -DDEBUG -DEXCEPTIONS_OFF -DOSL_DEBUG_LEVEL=2 -DSHAREDLIB -DTOOLS_DLLIMPLEMENTATION -D_DLL_ -O0 -fno-exceptions -fpic -fvisibility=hidden -g 175cdf0e10cSrcweir# -DOPTIMIZE 176cdf0e10cSrcweir# no -DTOOLS_DLLIMPLEMENTATION on toolsdll 177cdf0e10cSrcweir# -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 178cdf0e10cSrcweir# vim: set noet sw=4 ts=4: 179