xref: /aoo41x/main/vcl/Library_vclplug_gtk.mk (revision 752c0af7)
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,\
5738ac0b4eSAriel Constenla-Haile	$$(LDFLAGS) \
5838ac0b4eSAriel Constenla-Haile	$(filter-out -l%,$(shell pkg-config --libs dbus-glib-1)) \
5944c25570SAndre Fischer))
6038ac0b4eSAriel Constenla-Haile$(eval $(call gb_Library_add_external_libs,vclplug_gtk, \
6138ac0b4eSAriel Constenla-Haile	$(patsubst -l%,%, $(filter -l%, $(shell pkg-config --libs dbus-glib-1))) \
62cdf0e10cSrcweir))
63cdf0e10cSrcweirendif
64cdf0e10cSrcweir
6544c25570SAndre Fischer$(eval $(call gb_Library_set_ldflags,vclplug_gtk,	\
6644c25570SAndre Fischer    $$(LDFLAGS)						\
6744c25570SAndre Fischer    $(filter-out -l%,$(GTK_LIBS))			\
68*a84b7b71SAriel Constenla-Haile    $(filter-out -l%,$(GTHREAD_LIBS)) \
6944c25570SAndre Fischer))
7044c25570SAndre Fischer$(eval $(call gb_Library_add_external_libs,vclplug_gtk,	\
7144c25570SAndre Fischer    $(patsubst -l%,%, $(filter -l%, $(GTK_LIBS)))	\
72*a84b7b71SAriel Constenla-Haile    $(patsubst -l%,%, $(filter -l%, $(GTHREAD_LIBS))) \
73cdf0e10cSrcweir))
74cdf0e10cSrcweir
75cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,vclplug_gtk,\
76cdf0e10cSrcweir    vclplug_gen \
77cdf0e10cSrcweir    vcl \
78cdf0e10cSrcweir    tl \
79cdf0e10cSrcweir    utl \
80cdf0e10cSrcweir    sot \
81cdf0e10cSrcweir    ucbhelper \
82cdf0e10cSrcweir	basegfx \
83cdf0e10cSrcweir	comphelper \
84cdf0e10cSrcweir    cppuhelper \
85cdf0e10cSrcweir    icuuc \
86cdf0e10cSrcweir    icule \
87cdf0e10cSrcweir	i18nisolang1 \
88cdf0e10cSrcweir	i18npaper \
89cdf0e10cSrcweir    i18nutil \
90cdf0e10cSrcweir    jvmaccess \
91cdf0e10cSrcweir	stl \
92cdf0e10cSrcweir	cppu \
93cdf0e10cSrcweir	sal \
94cdf0e10cSrcweir	vos3 \
95cdf0e10cSrcweir    X11 \
96cdf0e10cSrcweir    Xext \
97cdf0e10cSrcweir    SM \
98cdf0e10cSrcweir    ICE \
99cdf0e10cSrcweir    $(gb_STDLIBS) \
100cdf0e10cSrcweir))
101cdf0e10cSrcweir
102cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,vclplug_gtk,\
103cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkaction \
104cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkbridge \
105cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkcomponent \
106cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkeditabletext \
107cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkfactory \
108cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkhypertext \
109cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkimage \
110cdf0e10cSrcweir    vcl/unx/gtk/a11y/atklistener \
111cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkregistry \
112cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkselection \
113cdf0e10cSrcweir    vcl/unx/gtk/a11y/atktable \
114cdf0e10cSrcweir    vcl/unx/gtk/a11y/atktextattributes \
115cdf0e10cSrcweir    vcl/unx/gtk/a11y/atktext \
116cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkutil \
117cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkvalue \
118cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkwindow \
119cdf0e10cSrcweir    vcl/unx/gtk/a11y/atkwrapper \
120cdf0e10cSrcweir    vcl/unx/gtk/app/gtkdata \
121cdf0e10cSrcweir    vcl/unx/gtk/app/gtkinst \
122cdf0e10cSrcweir    vcl/unx/gtk/app/gtksys \
123cdf0e10cSrcweir    vcl/unx/gtk/gdi/salnativewidgets-gtk \
124cdf0e10cSrcweir    vcl/unx/gtk/window/gtkframe \
125cdf0e10cSrcweir    vcl/unx/gtk/window/gtkobject \
126cdf0e10cSrcweir))
127cdf0e10cSrcweir
128cdf0e10cSrcweirifeq ($(OS),LINUX)
129cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,vclplug_gtk,\
130cdf0e10cSrcweir	dl \
131cdf0e10cSrcweir	m \
132cdf0e10cSrcweir	pthread \
133cdf0e10cSrcweir))
134cdf0e10cSrcweirendif
13544c25570SAndre Fischer
136cdf0e10cSrcweir# vim: set noet sw=4 ts=4:
137