xref: /trunk/main/unotools/Library_utl.mk (revision b63233d8)
1*b63233d8Sdamjan###############################################################
2*b63233d8Sdamjan#
3*b63233d8Sdamjan#  Licensed to the Apache Software Foundation (ASF) under one
4*b63233d8Sdamjan#  or more contributor license agreements.  See the NOTICE file
5*b63233d8Sdamjan#  distributed with this work for additional information
6*b63233d8Sdamjan#  regarding copyright ownership.  The ASF licenses this file
7*b63233d8Sdamjan#  to you under the Apache License, Version 2.0 (the
8*b63233d8Sdamjan#  "License"); you may not use this file except in compliance
9*b63233d8Sdamjan#  with the License.  You may obtain a copy of the License at
10*b63233d8Sdamjan#
11*b63233d8Sdamjan#    http://www.apache.org/licenses/LICENSE-2.0
12*b63233d8Sdamjan#
13*b63233d8Sdamjan#  Unless required by applicable law or agreed to in writing,
14*b63233d8Sdamjan#  software distributed under the License is distributed on an
15*b63233d8Sdamjan#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b63233d8Sdamjan#  KIND, either express or implied.  See the License for the
17*b63233d8Sdamjan#  specific language governing permissions and limitations
18*b63233d8Sdamjan#  under the License.
19*b63233d8Sdamjan#
20*b63233d8Sdamjan###############################################################
21*b63233d8Sdamjan
22*b63233d8Sdamjan
23*b63233d8Sdamjan
24*b63233d8Sdamjan# unotools is the name of the module the makefile is located in
25*b63233d8Sdamjan
26*b63233d8Sdamjan# declare a library
27*b63233d8Sdamjan# utl is the name of the library as it is found in Repository.mk
28*b63233d8Sdamjan$(eval $(call gb_Library_Library,utl))
29*b63233d8Sdamjan
30*b63233d8Sdamjan# declare packages that will be delivered before compilation of utl
31*b63233d8Sdamjan# learn more about TYPE in the Package.mk template
32*b63233d8Sdamjan$(eval $(call gb_Library_add_package_headers,utl,unotools_inc))
33*b63233d8Sdamjan
34*b63233d8Sdamjan# for platforms supporting PCH: declare the location of the pch file
35*b63233d8Sdamjan# this is the name of the cxx file (without extension)
36*b63233d8Sdamjan$(eval $(call gb_Library_add_precompiled_header,utl,$(SRCDIR)/unotools/inc/pch/precompiled_unotools))
37*b63233d8Sdamjan
38*b63233d8Sdamjan# in case UNO services are exported: declare location of component file
39*b63233d8Sdamjan$(eval $(call gb_Library_set_componentfile,utl,unotools/util/utl))
40*b63233d8Sdamjan
41*b63233d8Sdamjan$(eval $(call gb_Library_add_api,utl,\
42*b63233d8Sdamjan	udkapi \
43*b63233d8Sdamjan	offapi \
44*b63233d8Sdamjan))
45*b63233d8Sdamjan
46*b63233d8Sdamjan# add any additional include paths for this library here
47*b63233d8Sdamjan$(eval $(call gb_Library_set_include,utl,\
48*b63233d8Sdamjan	$$(INCLUDE) \
49*b63233d8Sdamjan	-I$(SRCDIR)/unotools/inc \
50*b63233d8Sdamjan	-I$(SRCDIR)/unotools/inc/pch \
51*b63233d8Sdamjan))
52*b63233d8Sdamjan
53*b63233d8Sdamjan# add any additional definitions to be set for compilation here
54*b63233d8Sdamjan# (e.g. -DLIB_DLLIMPLEMENTATION)
55*b63233d8Sdamjan$(eval $(call gb_Library_add_defs,utl,\
56*b63233d8Sdamjan	-DUNOTOOLS_DLLIMPLEMENTATION \
57*b63233d8Sdamjan))
58*b63233d8Sdamjan
59*b63233d8Sdamjan# add libraries to be linked to utl; again these names need to be given as
60*b63233d8Sdamjan# specified in Repository.mk
61*b63233d8Sdamjan$(eval $(call gb_Library_add_linked_libs,utl,\
62*b63233d8Sdamjan	sal \
63*b63233d8Sdamjan	salhelper \
64*b63233d8Sdamjan	stl \
65*b63233d8Sdamjan	comphelper \
66*b63233d8Sdamjan	ucbhelper \
67*b63233d8Sdamjan	cppu \
68*b63233d8Sdamjan	cppuhelper \
69*b63233d8Sdamjan	i18nisolang1 \
70*b63233d8Sdamjan	tl \
71*b63233d8Sdamjan	vos3 \
72*b63233d8Sdamjan    $(gb_STDLIBS) \
73*b63233d8Sdamjan))
74*b63233d8Sdamjan
75*b63233d8Sdamjan# add all source files that shall be compiled with exceptions enabled
76*b63233d8Sdamjan# the name is relative to $(SRCROOT) and must not contain an extension
77*b63233d8Sdamjan$(eval $(call gb_Library_add_exception_objects,utl,\
78*b63233d8Sdamjan	unotools/source/streaming/streamhelper \
79*b63233d8Sdamjan	unotools/source/streaming/streamwrap \
80*b63233d8Sdamjan	unotools/source/accessibility/accessiblestatesethelper \
81*b63233d8Sdamjan	unotools/source/accessibility/accessiblerelationsethelper \
82*b63233d8Sdamjan	unotools/source/property/propertysethelper \
83*b63233d8Sdamjan	unotools/source/property/propertysetinfo \
84*b63233d8Sdamjan	unotools/source/misc/sharedunocomponent \
85*b63233d8Sdamjan	unotools/source/misc/componentresmodule \
86*b63233d8Sdamjan	unotools/source/misc/eventlisteneradapter \
87*b63233d8Sdamjan	unotools/source/misc/fontcvt \
88*b63233d8Sdamjan	unotools/source/misc/syslocale \
89*b63233d8Sdamjan	unotools/source/misc/fontdefs \
90*b63233d8Sdamjan	unotools/source/misc/datetime \
91*b63233d8Sdamjan	unotools/source/misc/atom \
92*b63233d8Sdamjan	unotools/source/misc/desktopterminationobserver \
93*b63233d8Sdamjan	unotools/source/processfactory/processfactory \
94*b63233d8Sdamjan	unotools/source/ucbhelper/localfilehelper \
95*b63233d8Sdamjan	unotools/source/ucbhelper/ucbstreamhelper \
96*b63233d8Sdamjan	unotools/source/ucbhelper/xtempfile \
97*b63233d8Sdamjan	unotools/source/ucbhelper/ucblockbytes \
98*b63233d8Sdamjan	unotools/source/ucbhelper/tempfile \
99*b63233d8Sdamjan	unotools/source/ucbhelper/ucbhelper \
100*b63233d8Sdamjan	unotools/source/ucbhelper/progresshandlerwrap \
101*b63233d8Sdamjan	unotools/source/config/historyoptions \
102*b63233d8Sdamjan	unotools/source/config/optionsdlg \
103*b63233d8Sdamjan	unotools/source/config/bootstrap \
104*b63233d8Sdamjan	unotools/source/config/configpathes \
105*b63233d8Sdamjan	unotools/source/config/javaoptions \
106*b63233d8Sdamjan	unotools/source/config/lingucfg \
107*b63233d8Sdamjan	unotools/source/config/fontoptions \
108*b63233d8Sdamjan	unotools/source/config/useroptions \
109*b63233d8Sdamjan	unotools/source/config/internaloptions \
110*b63233d8Sdamjan	unotools/source/config/viewoptions \
111*b63233d8Sdamjan	unotools/source/config/workingsetoptions \
112*b63233d8Sdamjan	unotools/source/config/fltrcfg \
113*b63233d8Sdamjan	unotools/source/config/localisationoptions \
114*b63233d8Sdamjan	unotools/source/config/itemholder1 \
115*b63233d8Sdamjan	unotools/source/config/cmdoptions \
116*b63233d8Sdamjan	unotools/source/config/cacheoptions \
117*b63233d8Sdamjan	unotools/source/config/docinfohelper \
118*b63233d8Sdamjan	unotools/source/config/inetoptions \
119*b63233d8Sdamjan	unotools/source/config/misccfg \
120*b63233d8Sdamjan	unotools/source/config/options \
121*b63233d8Sdamjan	unotools/source/config/xmlaccelcfg \
122*b63233d8Sdamjan	unotools/source/config/fontcfg \
123*b63233d8Sdamjan	unotools/source/config/startoptions \
124*b63233d8Sdamjan	unotools/source/config/extendedsecurityoptions \
125*b63233d8Sdamjan	unotools/source/config/printwarningoptions \
126*b63233d8Sdamjan	unotools/source/config/configmgr \
127*b63233d8Sdamjan	unotools/source/config/eventcfg \
128*b63233d8Sdamjan	unotools/source/config/configitem \
129*b63233d8Sdamjan	unotools/source/config/defaultoptions \
130*b63233d8Sdamjan	unotools/source/config/searchopt \
131*b63233d8Sdamjan	unotools/source/config/confignode \
132*b63233d8Sdamjan	unotools/source/config/sourceviewconfig \
133*b63233d8Sdamjan	unotools/source/config/compatibility \
134*b63233d8Sdamjan	unotools/source/config/pathoptions \
135*b63233d8Sdamjan	unotools/source/config/dynamicmenuoptions \
136*b63233d8Sdamjan	unotools/source/config/moduleoptions \
137*b63233d8Sdamjan	unotools/source/config/undoopt \
138*b63233d8Sdamjan	unotools/source/config/configvaluecontainer \
139*b63233d8Sdamjan	unotools/source/config/syslocaleoptions \
140*b63233d8Sdamjan	unotools/source/config/accelcfg \
141*b63233d8Sdamjan	unotools/source/config/saveopt \
142*b63233d8Sdamjan	unotools/source/config/securityoptions \
143*b63233d8Sdamjan	unotools/source/i18n/charclass \
144*b63233d8Sdamjan	unotools/source/i18n/textsearch \
145*b63233d8Sdamjan	unotools/source/i18n/readwritemutexguard \
146*b63233d8Sdamjan	unotools/source/i18n/intlwrapper \
147*b63233d8Sdamjan	unotools/source/i18n/transliterationwrapper \
148*b63233d8Sdamjan	unotools/source/i18n/calendarwrapper \
149*b63233d8Sdamjan	unotools/source/i18n/localedatawrapper \
150*b63233d8Sdamjan	unotools/source/i18n/collatorwrapper \
151*b63233d8Sdamjan	unotools/source/i18n/numberformatcodewrapper \
152*b63233d8Sdamjan	unotools/source/i18n/nativenumberwrapper \
153*b63233d8Sdamjan))
154*b63233d8Sdamjan
155*b63233d8Sdamjan# vim: set noet sw=4 ts=4:
156