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