xref: /AOO41X/main/toolkit/Library_tk.mk (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir#*************************************************************************
2*cdf0e10cSrcweir#
3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir#
5*cdf0e10cSrcweir# Copyright 2000, 2011 Oracle and/or its affiliates.
6*cdf0e10cSrcweir#
7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir#
9*cdf0e10cSrcweir# This file is part of OpenOffice.org.
10*cdf0e10cSrcweir#
11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir# only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir#
15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir#
21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir# version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir# for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir#
26*cdf0e10cSrcweir#*************************************************************************
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir$(eval $(call gb_Library_Library,tk))
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir$(eval $(call gb_Library_set_componentfile,tk,toolkit/util/tk))
31*cdf0e10cSrcweir
32*cdf0e10cSrcweir$(eval $(call gb_Library_add_package_headers,tk,toolkit_inc))
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir#$(eval $(call gb_Library_add_precompiled_header,tk,$(SRCDIR)/toolkit/inc/pch/precompiled_toolkit))
35*cdf0e10cSrcweir
36*cdf0e10cSrcweir$(eval $(call gb_Library_set_include,tk,\
37*cdf0e10cSrcweir	$$(INCLUDE) \
38*cdf0e10cSrcweir	-I$(SRCDIR)/toolkit/inc \
39*cdf0e10cSrcweir	-I$(SRCDIR)/toolkit/inc/pch \
40*cdf0e10cSrcweir	-I$(SRCDIR)/toolkit/source \
41*cdf0e10cSrcweir	-I$(OUTDIR)/inc/offuh \
42*cdf0e10cSrcweir))
43*cdf0e10cSrcweir
44*cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,tk,\
45*cdf0e10cSrcweir	$$(DEFS) \
46*cdf0e10cSrcweir	-DTOOLKIT_DLLIMPLEMENTATION \
47*cdf0e10cSrcweir))
48*cdf0e10cSrcweir
49*cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,tk,\
50*cdf0e10cSrcweir	comphelper \
51*cdf0e10cSrcweir	cppu \
52*cdf0e10cSrcweir	cppuhelper \
53*cdf0e10cSrcweir	sal \
54*cdf0e10cSrcweir	stl \
55*cdf0e10cSrcweir	tl \
56*cdf0e10cSrcweir	utl \
57*cdf0e10cSrcweir	vcl \
58*cdf0e10cSrcweir	$(gb_STDLIBS) \
59*cdf0e10cSrcweir))
60*cdf0e10cSrcweir
61*cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,tk,\
62*cdf0e10cSrcweir	toolkit/source/awt/asynccallback \
63*cdf0e10cSrcweir	toolkit/source/awt/stylesettings \
64*cdf0e10cSrcweir	toolkit/source/awt/vclxaccessiblecomponent \
65*cdf0e10cSrcweir	toolkit/source/awt/vclxbitmap \
66*cdf0e10cSrcweir	toolkit/source/awt/vclxbutton \
67*cdf0e10cSrcweir	toolkit/source/awt/vclxcontainer \
68*cdf0e10cSrcweir	toolkit/source/awt/vclxdevice \
69*cdf0e10cSrcweir	toolkit/source/awt/vclxdialog \
70*cdf0e10cSrcweir	toolkit/source/awt/vclxfixedline \
71*cdf0e10cSrcweir	toolkit/source/awt/vclxfont \
72*cdf0e10cSrcweir	toolkit/source/awt/vclxgraphics \
73*cdf0e10cSrcweir	toolkit/source/awt/vclxmenu \
74*cdf0e10cSrcweir	toolkit/source/awt/vclxplugin \
75*cdf0e10cSrcweir	toolkit/source/awt/vclxpointer \
76*cdf0e10cSrcweir	toolkit/source/awt/vclxprinter \
77*cdf0e10cSrcweir	toolkit/source/awt/vclxregion \
78*cdf0e10cSrcweir	toolkit/source/awt/vclxscroller \
79*cdf0e10cSrcweir	toolkit/source/awt/vclxspinbutton \
80*cdf0e10cSrcweir	toolkit/source/awt/vclxsplitter \
81*cdf0e10cSrcweir	toolkit/source/awt/vclxsystemdependentwindow \
82*cdf0e10cSrcweir	toolkit/source/awt/vclxtabcontrol \
83*cdf0e10cSrcweir	toolkit/source/awt/vclxtabpage \
84*cdf0e10cSrcweir	toolkit/source/awt/vclxtabpagecontainer \
85*cdf0e10cSrcweir	toolkit/source/awt/animatedimagespeer \
86*cdf0e10cSrcweir	toolkit/source/awt/vclxtoolkit \
87*cdf0e10cSrcweir	toolkit/source/awt/vclxtopwindow \
88*cdf0e10cSrcweir	toolkit/source/awt/vclxwindow \
89*cdf0e10cSrcweir	toolkit/source/awt/vclxwindow1 \
90*cdf0e10cSrcweir	toolkit/source/awt/vclxwindows \
91*cdf0e10cSrcweir	toolkit/source/awt/xsimpleanimation \
92*cdf0e10cSrcweir	toolkit/source/awt/xthrobber \
93*cdf0e10cSrcweir	toolkit/source/controls/accessiblecontrolcontext \
94*cdf0e10cSrcweir	toolkit/source/controls/controlmodelcontainerbase \
95*cdf0e10cSrcweir	toolkit/source/controls/dialogcontrol \
96*cdf0e10cSrcweir	toolkit/source/controls/eventcontainer \
97*cdf0e10cSrcweir	toolkit/source/controls/formattedcontrol \
98*cdf0e10cSrcweir	toolkit/source/controls/geometrycontrolmodel \
99*cdf0e10cSrcweir	toolkit/source/controls/grid/defaultgridcolumnmodel \
100*cdf0e10cSrcweir	toolkit/source/controls/grid/defaultgriddatamodel \
101*cdf0e10cSrcweir	toolkit/source/controls/grid/gridcolumn \
102*cdf0e10cSrcweir	toolkit/source/controls/grid/grideventforwarder \
103*cdf0e10cSrcweir	toolkit/source/controls/grid/sortablegriddatamodel \
104*cdf0e10cSrcweir	toolkit/source/controls/grid/gridcontrol \
105*cdf0e10cSrcweir	toolkit/source/controls/roadmapcontrol \
106*cdf0e10cSrcweir	toolkit/source/controls/roadmapentry \
107*cdf0e10cSrcweir	toolkit/source/controls/tabpagecontainer \
108*cdf0e10cSrcweir    toolkit/source/controls/tabpagemodel \
109*cdf0e10cSrcweir	toolkit/source/controls/stdtabcontroller \
110*cdf0e10cSrcweir	toolkit/source/controls/stdtabcontrollermodel \
111*cdf0e10cSrcweir	toolkit/source/controls/tkscrollbar \
112*cdf0e10cSrcweir	toolkit/source/controls/tksimpleanimation \
113*cdf0e10cSrcweir	toolkit/source/controls/tkspinbutton \
114*cdf0e10cSrcweir	toolkit/source/controls/tkthrobber \
115*cdf0e10cSrcweir	toolkit/source/controls/animatedimages \
116*cdf0e10cSrcweir	toolkit/source/controls/spinningprogress \
117*cdf0e10cSrcweir	toolkit/source/controls/tree/treecontrol \
118*cdf0e10cSrcweir	toolkit/source/controls/tree/treedatamodel \
119*cdf0e10cSrcweir	toolkit/source/controls/unocontrol \
120*cdf0e10cSrcweir	toolkit/source/controls/unocontrolbase \
121*cdf0e10cSrcweir	toolkit/source/controls/unocontrolcontainer \
122*cdf0e10cSrcweir	toolkit/source/controls/unocontrolcontainermodel \
123*cdf0e10cSrcweir	toolkit/source/controls/unocontrolmodel \
124*cdf0e10cSrcweir	toolkit/source/controls/unocontrols \
125*cdf0e10cSrcweir	toolkit/source/helper/accessibilityclient \
126*cdf0e10cSrcweir	toolkit/source/helper/externallock \
127*cdf0e10cSrcweir	toolkit/source/helper/fixedhyperbase \
128*cdf0e10cSrcweir	toolkit/source/helper/formpdfexport \
129*cdf0e10cSrcweir	toolkit/source/helper/imagealign \
130*cdf0e10cSrcweir	toolkit/source/helper/listenermultiplexer \
131*cdf0e10cSrcweir	toolkit/source/helper/property \
132*cdf0e10cSrcweir	toolkit/source/helper/registerservices \
133*cdf0e10cSrcweir	toolkit/source/helper/servicenames \
134*cdf0e10cSrcweir	toolkit/source/helper/tkresmgr \
135*cdf0e10cSrcweir	toolkit/source/helper/unomemorystream \
136*cdf0e10cSrcweir	toolkit/source/helper/unopropertyarrayhelper \
137*cdf0e10cSrcweir	toolkit/source/helper/unowrapper \
138*cdf0e10cSrcweir	toolkit/source/helper/vclunohelper \
139*cdf0e10cSrcweir	toolkit/source/layout/core/bin \
140*cdf0e10cSrcweir	toolkit/source/layout/core/box \
141*cdf0e10cSrcweir	toolkit/source/layout/core/box-base \
142*cdf0e10cSrcweir	toolkit/source/layout/core/byteseq \
143*cdf0e10cSrcweir	toolkit/source/layout/core/container \
144*cdf0e10cSrcweir	toolkit/source/layout/core/dialogbuttonhbox \
145*cdf0e10cSrcweir	toolkit/source/layout/core/factory \
146*cdf0e10cSrcweir	toolkit/source/layout/core/flow \
147*cdf0e10cSrcweir	toolkit/source/layout/core/helper \
148*cdf0e10cSrcweir	toolkit/source/layout/core/import \
149*cdf0e10cSrcweir	toolkit/source/layout/core/localized-string \
150*cdf0e10cSrcweir	toolkit/source/layout/core/proplist \
151*cdf0e10cSrcweir	toolkit/source/layout/core/root \
152*cdf0e10cSrcweir	toolkit/source/layout/core/table \
153*cdf0e10cSrcweir	toolkit/source/layout/core/timer \
154*cdf0e10cSrcweir	toolkit/source/layout/core/translate \
155*cdf0e10cSrcweir	toolkit/source/layout/core/vcl \
156*cdf0e10cSrcweir	toolkit/source/layout/vcl/wbutton \
157*cdf0e10cSrcweir	toolkit/source/layout/vcl/wcontainer \
158*cdf0e10cSrcweir	toolkit/source/layout/vcl/wfield \
159*cdf0e10cSrcweir	toolkit/source/layout/vcl/wrapper \
160*cdf0e10cSrcweir))
161*cdf0e10cSrcweir
162*cdf0e10cSrcweirifeq ($(GUIBASE),aqua)
163*cdf0e10cSrcweir$(eval $(call gb_Library_set_cxxflags,tk,\
164*cdf0e10cSrcweir	$$(CXXFLAGS) $(gb_OBJCXXFLAGS)))
165*cdf0e10cSrcweirendif
166*cdf0e10cSrcweir
167*cdf0e10cSrcweirifeq ($(OS),LINUX)
168*cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,tk,\
169*cdf0e10cSrcweir	X11 \
170*cdf0e10cSrcweir))
171*cdf0e10cSrcweirendif
172*cdf0e10cSrcweir
173*cdf0e10cSrcweir# vim: set noet sw=4 ts=4:
174