xref: /trunk/main/vcl/Library_vclplug_gtk.mk (revision 75e945be)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24$(eval $(call gb_Library_Library,vclplug_gtk))
25
26$(eval $(call gb_Library_add_api,vclplug_gtk,\
27	udkapi \
28	offapi \
29))
30
31$(eval $(call gb_Library_set_include,vclplug_gtk,\
32	$$(INCLUDE) \
33	-I$(SRCDIR)/vcl/inc \
34	-I$(SRCDIR)/vcl/inc/pch \
35	-I$(SRCDIR)/solenv/inc \
36	-I$(OUTDIR)/inc/stl \
37	-I$(OUTDIR)/inc \
38))
39
40$(eval $(call gb_Library_set_include,vclplug_gtk,\
41	$$(INCLUDE) \
42	$$(GTK_CFLAGS) \
43))
44
45$(eval $(call gb_Library_add_defs,vclplug_gtk,\
46	-DVCLPLUG_GTK_IMPLEMENTATION \
47	-DVERSION=\"$(UPD)$(LAST_MINOR)\" \
48))
49
50ifeq ($(ENABLE_DBUS),TRUE)
51$(eval $(call gb_Library_set_include,vclplug_gtk,\
52	$$(INCLUDE) \
53	$(shell pkg-config --cflags-only-I dbus-glib-1) \
54))
55$(eval $(call gb_Library_add_defs,vclplug_gtk,\
56	-DENABLE_DBUS \
57))
58$(eval $(call gb_Library_add_libs,vclplug_gtk,\
59	$(shell pkg-config --libs dbus-glib-1) \
60))
61endif
62
63$(eval $(call gb_Library_add_libs,vclplug_gtk,\
64	$(GTK_LIBS) \
65	$(GTHREAD_LIBS) \
66))
67
68$(eval $(call gb_Library_add_linked_libs,vclplug_gtk,\
69	vclplug_gen \
70	vcl \
71	tl \
72	utl \
73	sot \
74	ucbhelper \
75	basegfx \
76	comphelper \
77	cppuhelper \
78	i18nisolang1 \
79	i18npaper \
80	i18nutil \
81	jvmaccess \
82	stl \
83	cppu \
84	sal \
85	vos3 \
86	X11 \
87	Xext \
88	SM \
89	ICE \
90	$(gb_STDLIBS) \
91))
92
93$(call gb_Library_use_externals,vclplug_gtk,\
94	icule \
95	icuuc \
96)
97
98$(eval $(call gb_Library_add_exception_objects,vclplug_gtk,\
99	vcl/unx/gtk/a11y/atkaction \
100	vcl/unx/gtk/a11y/atkbridge \
101	vcl/unx/gtk/a11y/atkcomponent \
102	vcl/unx/gtk/a11y/atkeditabletext \
103	vcl/unx/gtk/a11y/atkfactory \
104	vcl/unx/gtk/a11y/atkhypertext \
105	vcl/unx/gtk/a11y/atkimage \
106	vcl/unx/gtk/a11y/atklistener \
107	vcl/unx/gtk/a11y/atkregistry \
108	vcl/unx/gtk/a11y/atkselection \
109	vcl/unx/gtk/a11y/atktable \
110	vcl/unx/gtk/a11y/atktextattributes \
111	vcl/unx/gtk/a11y/atktext \
112	vcl/unx/gtk/a11y/atkutil \
113	vcl/unx/gtk/a11y/atkvalue \
114	vcl/unx/gtk/a11y/atkwindow \
115	vcl/unx/gtk/a11y/atkwrapper \
116	vcl/unx/gtk/app/gtkdata \
117	vcl/unx/gtk/app/gtkinst \
118	vcl/unx/gtk/app/gtksys \
119	vcl/unx/gtk/gdi/salnativewidgets-gtk \
120	vcl/unx/gtk/window/gtkframe \
121	vcl/unx/gtk/window/gtkobject \
122))
123
124ifeq ($(OS),LINUX)
125$(eval $(call gb_Library_add_linked_libs,vclplug_gtk,\
126	dl \
127	m \
128	pthread \
129))
130endif
131
132# vim: set noet sw=4 ts=4:
133