xref: /AOO41X/main/vcl/Library_vclplug_gtk.mk (revision 1619890620b79232d585a4f342e4e4aee36834c3)
1cdf0e10cSrcweir#*************************************************************************
2cdf0e10cSrcweir#
3cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4cdf0e10cSrcweir#
5cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates.
6cdf0e10cSrcweir#
7cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite
8cdf0e10cSrcweir#
9cdf0e10cSrcweir# This file is part of OpenOffice.org.
10cdf0e10cSrcweir#
11cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify
12cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3
13cdf0e10cSrcweir# only, as published by the Free Software Foundation.
14cdf0e10cSrcweir#
15cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful,
16cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of
17cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
18cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details
19cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code).
20cdf0e10cSrcweir#
21cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License
22cdf0e10cSrcweir# version 3 along with OpenOffice.org.	If not, see
23cdf0e10cSrcweir# <http://www.openoffice.org/license.html>
24cdf0e10cSrcweir# for a copy of the LGPLv3 License.
25cdf0e10cSrcweir#
26cdf0e10cSrcweir#*************************************************************************
27cdf0e10cSrcweir
28cdf0e10cSrcweir$(eval $(call gb_Library_Library,vclplug_gtk))
29cdf0e10cSrcweir
30cdf0e10cSrcweir$(eval $(call gb_Library_set_include,vclplug_gtk,\
31cdf0e10cSrcweir	$$(INCLUDE) \
32cdf0e10cSrcweir	-I$(SRCDIR)/vcl/inc \
33cdf0e10cSrcweir	-I$(SRCDIR)/vcl/inc/pch \
34cdf0e10cSrcweir	-I$(SRCDIR)/solenv/inc \
35cdf0e10cSrcweir	-I$(OUTDIR)/inc/offuh \
36cdf0e10cSrcweir	-I$(OUTDIR)/inc/stl \
37cdf0e10cSrcweir	-I$(OUTDIR)/inc \
38cdf0e10cSrcweir))
39cdf0e10cSrcweir
40cdf0e10cSrcweir$(eval $(call gb_Library_set_cxxflags,vclplug_gtk,\
41cdf0e10cSrcweir    $$(CXXFLAGS) \
42cdf0e10cSrcweir    $$(GTK_CFLAGS) \
43cdf0e10cSrcweir))
44cdf0e10cSrcweir
45cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gtk,\
46cdf0e10cSrcweir	$$(DEFS) \
47cdf0e10cSrcweir    -DVCLPLUG_GTK_IMPLEMENTATION \
48cdf0e10cSrcweir    -DVERSION=\"$(UPD)$(LAST_MINOR)\" \
49cdf0e10cSrcweir))
50cdf0e10cSrcweir
51cdf0e10cSrcweirifneq ($(ENABLE_DBUS),)
52*16198906SMichael Stahl$(eval $(call gb_Library_set_include,vclplug_gtk,\
53*16198906SMichael Stahl	$$(INCLUDE) \
54*16198906SMichael Stahl	$(shell pkg-config --cflags-only-I dbus-glib-1) \
55*16198906SMichael Stahl))
56cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gtk,\
57cdf0e10cSrcweir	$$(DEFS) \
58cdf0e10cSrcweir    -DENABLE_DBUS \
59cdf0e10cSrcweir))
60cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gtk,\
61cdf0e10cSrcweir    $$(LDFLAGS) \
62cdf0e10cSrcweir    $(shell pkg-config --libs dbus-glib-1)\
63cdf0e10cSrcweir))
64cdf0e10cSrcweirendif
65cdf0e10cSrcweir
66cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gtk,\
67cdf0e10cSrcweir    $$(LDFLAGS) \
68cdf0e10cSrcweir    $$(GTK_LIBS) \
69cdf0e10cSrcweir    $$(GTHREAD_LIBS) \
70cdf0e10cSrcweir))
71cdf0e10cSrcweir
72cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,vclplug_gtk,\
73cdf0e10cSrcweir    vclplug_gen \
74cdf0e10cSrcweir    vcl \
75cdf0e10cSrcweir    tl \
76cdf0e10cSrcweir    utl \
77cdf0e10cSrcweir    sot \
78cdf0e10cSrcweir    ucbhelper \
79cdf0e10cSrcweir	basegfx \
80cdf0e10cSrcweir	comphelper \
81cdf0e10cSrcweir    cppuhelper \
82cdf0e10cSrcweir    icuuc \
83cdf0e10cSrcweir    icule \
84cdf0e10cSrcweir	i18nisolang1 \
85cdf0e10cSrcweir	i18npaper \
86cdf0e10cSrcweir    i18nutil \
87cdf0e10cSrcweir    jvmaccess \
88cdf0e10cSrcweir	stl \
89cdf0e10cSrcweir	cppu \
90cdf0e10cSrcweir	sal \
91cdf0e10cSrcweir	vos3 \
92cdf0e10cSrcweir    X11 \
93cdf0e10cSrcweir    Xext \
94cdf0e10cSrcweir    SM \
95cdf0e10cSrcweir    ICE \
96cdf0e10cSrcweir    $(gb_STDLIBS) \
97cdf0e10cSrcweir))
98cdf0e10cSrcweir
99cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,vclplug_gtk,\
100cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkaction \
101cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkbridge \
102cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkcomponent \
103cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkeditabletext \
104cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkfactory \
105cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkhypertext \
106cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkimage \
107cdf0e10cSrcweir    vcl/unx/gtk/a11y/atklistener \
108cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkregistry \
109cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkselection \
110cdf0e10cSrcweir    vcl/unx/gtk/a11y/atktable \
111cdf0e10cSrcweir    vcl/unx/gtk/a11y/atktextattributes \
112cdf0e10cSrcweir    vcl/unx/gtk/a11y/atktext \
113cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkutil \
114cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkvalue \
115cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkwindow \
116cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkwrapper \
117cdf0e10cSrcweir    vcl/unx/gtk/app/gtkdata \
118cdf0e10cSrcweir    vcl/unx/gtk/app/gtkinst \
119cdf0e10cSrcweir    vcl/unx/gtk/app/gtksys \
120cdf0e10cSrcweir    vcl/unx/gtk/gdi/salnativewidgets-gtk \
121cdf0e10cSrcweir    vcl/unx/gtk/window/gtkframe \
122cdf0e10cSrcweir    vcl/unx/gtk/window/gtkobject \
123cdf0e10cSrcweir))
124cdf0e10cSrcweir
125cdf0e10cSrcweirifeq ($(OS),LINUX)
126cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,vclplug_gtk,\
127cdf0e10cSrcweir	dl \
128cdf0e10cSrcweir	m \
129cdf0e10cSrcweir	pthread \
130cdf0e10cSrcweir))
131cdf0e10cSrcweirendif
132cdf0e10cSrcweir# vim: set noet sw=4 ts=4:
133