xref: /aoo42x/main/vcl/Library_vclplug_gtk.mk (revision 38ac0b4e)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24$(eval $(call gb_Library_Library,vclplug_gtk))
25
26$(eval $(call gb_Library_set_include,vclplug_gtk,\
27	$$(INCLUDE) \
28	-I$(SRCDIR)/vcl/inc \
29	-I$(SRCDIR)/vcl/inc/pch \
30	-I$(SRCDIR)/solenv/inc \
31	-I$(OUTDIR)/inc/offuh \
32	-I$(OUTDIR)/inc/stl \
33	-I$(OUTDIR)/inc \
34))
35
36$(eval $(call gb_Library_set_cxxflags,vclplug_gtk,\
37    $$(CXXFLAGS) \
38    $$(GTK_CFLAGS) \
39))
40
41$(eval $(call gb_Library_set_defs,vclplug_gtk,\
42	$$(DEFS) \
43    -DVCLPLUG_GTK_IMPLEMENTATION \
44    -DVERSION=\"$(UPD)$(LAST_MINOR)\" \
45))
46
47ifneq ($(ENABLE_DBUS),)
48$(eval $(call gb_Library_set_include,vclplug_gtk,\
49	$$(INCLUDE) \
50	$(shell pkg-config --cflags-only-I dbus-glib-1) \
51))
52$(eval $(call gb_Library_set_defs,vclplug_gtk,\
53	$$(DEFS) \
54    -DENABLE_DBUS \
55))
56$(eval $(call gb_Library_set_ldflags,vclplug_gtk,\
57	$$(LDFLAGS) \
58	$(filter-out -l%,$(shell pkg-config --libs dbus-glib-1)) \
59))
60$(eval $(call gb_Library_add_external_libs,vclplug_gtk, \
61	$(patsubst -l%,%, $(filter -l%, $(shell pkg-config --libs dbus-glib-1))) \
62))
63endif
64
65$(eval $(call gb_Library_set_ldflags,vclplug_gtk,	\
66    $$(LDFLAGS)						\
67    $(filter-out -l%,$(GTK_LIBS))			\
68))
69$(eval $(call gb_Library_add_external_libs,vclplug_gtk,	\
70    $(patsubst -l%,%, $(filter -l%, $(GTK_LIBS)))	\
71))
72
73$(eval $(call gb_Library_add_linked_libs,vclplug_gtk,\
74    vclplug_gen \
75    vcl \
76    tl \
77    utl \
78    sot \
79    ucbhelper \
80	basegfx \
81	comphelper \
82    cppuhelper \
83    icuuc \
84    icule \
85	i18nisolang1 \
86	i18npaper \
87    i18nutil \
88    jvmaccess \
89	stl \
90	cppu \
91	sal \
92	vos3 \
93    X11 \
94    Xext \
95    SM \
96    ICE \
97    $(gb_STDLIBS) \
98))
99
100$(eval $(call gb_Library_add_exception_objects,vclplug_gtk,\
101    vcl/unx/gtk/a11y/atkaction \
102    vcl/unx/gtk/a11y/atkbridge \
103    vcl/unx/gtk/a11y/atkcomponent \
104    vcl/unx/gtk/a11y/atkeditabletext \
105    vcl/unx/gtk/a11y/atkfactory \
106    vcl/unx/gtk/a11y/atkhypertext \
107    vcl/unx/gtk/a11y/atkimage \
108    vcl/unx/gtk/a11y/atklistener \
109    vcl/unx/gtk/a11y/atkregistry \
110    vcl/unx/gtk/a11y/atkselection \
111    vcl/unx/gtk/a11y/atktable \
112    vcl/unx/gtk/a11y/atktextattributes \
113    vcl/unx/gtk/a11y/atktext \
114    vcl/unx/gtk/a11y/atkutil \
115    vcl/unx/gtk/a11y/atkvalue \
116    vcl/unx/gtk/a11y/atkwindow \
117    vcl/unx/gtk/a11y/atkwrapper \
118    vcl/unx/gtk/app/gtkdata \
119    vcl/unx/gtk/app/gtkinst \
120    vcl/unx/gtk/app/gtksys \
121    vcl/unx/gtk/gdi/salnativewidgets-gtk \
122    vcl/unx/gtk/window/gtkframe \
123    vcl/unx/gtk/window/gtkobject \
124))
125
126ifeq ($(OS),LINUX)
127$(eval $(call gb_Library_add_linked_libs,vclplug_gtk,\
128	dl \
129	m \
130	pthread \
131))
132endif
133
134# vim: set noet sw=4 ts=4:
135