xref: /aoo42x/main/vcl/Library_vclplug_gtk.mk (revision 16198906)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 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,vclplug_gtk))
29
30$(eval $(call gb_Library_set_include,vclplug_gtk,\
31	$$(INCLUDE) \
32	-I$(SRCDIR)/vcl/inc \
33	-I$(SRCDIR)/vcl/inc/pch \
34	-I$(SRCDIR)/solenv/inc \
35	-I$(OUTDIR)/inc/offuh \
36	-I$(OUTDIR)/inc/stl \
37	-I$(OUTDIR)/inc \
38))
39
40$(eval $(call gb_Library_set_cxxflags,vclplug_gtk,\
41    $$(CXXFLAGS) \
42    $$(GTK_CFLAGS) \
43))
44
45$(eval $(call gb_Library_set_defs,vclplug_gtk,\
46	$$(DEFS) \
47    -DVCLPLUG_GTK_IMPLEMENTATION \
48    -DVERSION=\"$(UPD)$(LAST_MINOR)\" \
49))
50
51ifneq ($(ENABLE_DBUS),)
52$(eval $(call gb_Library_set_include,vclplug_gtk,\
53	$$(INCLUDE) \
54	$(shell pkg-config --cflags-only-I dbus-glib-1) \
55))
56$(eval $(call gb_Library_set_defs,vclplug_gtk,\
57	$$(DEFS) \
58    -DENABLE_DBUS \
59))
60$(eval $(call gb_Library_set_ldflags,vclplug_gtk,\
61    $$(LDFLAGS) \
62    $(shell pkg-config --libs dbus-glib-1)\
63))
64endif
65
66$(eval $(call gb_Library_set_ldflags,vclplug_gtk,\
67    $$(LDFLAGS) \
68    $$(GTK_LIBS) \
69    $$(GTHREAD_LIBS) \
70))
71
72$(eval $(call gb_Library_add_linked_libs,vclplug_gtk,\
73    vclplug_gen \
74    vcl \
75    tl \
76    utl \
77    sot \
78    ucbhelper \
79	basegfx \
80	comphelper \
81    cppuhelper \
82    icuuc \
83    icule \
84	i18nisolang1 \
85	i18npaper \
86    i18nutil \
87    jvmaccess \
88	stl \
89	cppu \
90	sal \
91	vos3 \
92    X11 \
93    Xext \
94    SM \
95    ICE \
96    $(gb_STDLIBS) \
97))
98
99$(eval $(call gb_Library_add_exception_objects,vclplug_gtk,\
100    vcl/unx/gtk/a11y/atkaction \
101    vcl/unx/gtk/a11y/atkbridge \
102    vcl/unx/gtk/a11y/atkcomponent \
103    vcl/unx/gtk/a11y/atkeditabletext \
104    vcl/unx/gtk/a11y/atkfactory \
105    vcl/unx/gtk/a11y/atkhypertext \
106    vcl/unx/gtk/a11y/atkimage \
107    vcl/unx/gtk/a11y/atklistener \
108    vcl/unx/gtk/a11y/atkregistry \
109    vcl/unx/gtk/a11y/atkselection \
110    vcl/unx/gtk/a11y/atktable \
111    vcl/unx/gtk/a11y/atktextattributes \
112    vcl/unx/gtk/a11y/atktext \
113    vcl/unx/gtk/a11y/atkutil \
114    vcl/unx/gtk/a11y/atkvalue \
115    vcl/unx/gtk/a11y/atkwindow \
116    vcl/unx/gtk/a11y/atkwrapper \
117    vcl/unx/gtk/app/gtkdata \
118    vcl/unx/gtk/app/gtkinst \
119    vcl/unx/gtk/app/gtksys \
120    vcl/unx/gtk/gdi/salnativewidgets-gtk \
121    vcl/unx/gtk/window/gtkframe \
122    vcl/unx/gtk/window/gtkobject \
123))
124
125ifeq ($(OS),LINUX)
126$(eval $(call gb_Library_add_linked_libs,vclplug_gtk,\
127	dl \
128	m \
129	pthread \
130))
131endif
132# vim: set noet sw=4 ts=4:
133