xref: /aoo41x/main/vcl/Library_vclplug_gtk.mk (revision 44c25570)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
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
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
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.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir$(eval $(call gb_Library_Library,vclplug_gtk))
25cdf0e10cSrcweir
26cdf0e10cSrcweir$(eval $(call gb_Library_set_include,vclplug_gtk,\
27cdf0e10cSrcweir	$$(INCLUDE) \
28cdf0e10cSrcweir	-I$(SRCDIR)/vcl/inc \
29cdf0e10cSrcweir	-I$(SRCDIR)/vcl/inc/pch \
30cdf0e10cSrcweir	-I$(SRCDIR)/solenv/inc \
31cdf0e10cSrcweir	-I$(OUTDIR)/inc/offuh \
32cdf0e10cSrcweir	-I$(OUTDIR)/inc/stl \
33cdf0e10cSrcweir	-I$(OUTDIR)/inc \
34cdf0e10cSrcweir))
35cdf0e10cSrcweir
36cdf0e10cSrcweir$(eval $(call gb_Library_set_cxxflags,vclplug_gtk,\
37cdf0e10cSrcweir    $$(CXXFLAGS) \
38cdf0e10cSrcweir    $$(GTK_CFLAGS) \
39cdf0e10cSrcweir))
40cdf0e10cSrcweir
41cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gtk,\
42cdf0e10cSrcweir	$$(DEFS) \
43cdf0e10cSrcweir    -DVCLPLUG_GTK_IMPLEMENTATION \
44cdf0e10cSrcweir    -DVERSION=\"$(UPD)$(LAST_MINOR)\" \
45cdf0e10cSrcweir))
46cdf0e10cSrcweir
47cdf0e10cSrcweirifneq ($(ENABLE_DBUS),)
4816198906SMichael Stahl$(eval $(call gb_Library_set_include,vclplug_gtk,\
4916198906SMichael Stahl	$$(INCLUDE) \
5016198906SMichael Stahl	$(shell pkg-config --cflags-only-I dbus-glib-1) \
5116198906SMichael Stahl))
52cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gtk,\
53cdf0e10cSrcweir	$$(DEFS) \
54cdf0e10cSrcweir    -DENABLE_DBUS \
55cdf0e10cSrcweir))
56cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gtk,\
57cdf0e10cSrcweir    $$(LDFLAGS) \
58*44c25570SAndre Fischer))
59*44c25570SAndre Fischer$(eval $(call gb_Library_add_external_libs,vclplug_gtk,	\
60*44c25570SAndre Fischer    $(shell pkg-config --libs dbus-glib-1)		\
61cdf0e10cSrcweir))
62cdf0e10cSrcweirendif
63cdf0e10cSrcweir
64*44c25570SAndre Fischer$(eval $(call gb_Library_set_ldflags,vclplug_gtk,	\
65*44c25570SAndre Fischer    $$(LDFLAGS)						\
66*44c25570SAndre Fischer    $(filter-out -l%,$(GTK_LIBS))			\
67*44c25570SAndre Fischer))
68*44c25570SAndre Fischer$(eval $(call gb_Library_add_external_libs,vclplug_gtk,	\
69*44c25570SAndre Fischer    $(patsubst -l%,%, $(filter -l%, $(GTK_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
132*44c25570SAndre Fischer
133cdf0e10cSrcweir# vim: set noet sw=4 ts=4:
134