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