blob: e5da827ba8d45580fec75cd7f6e9e7312de19095 [file] [log] [blame]
Milian Wolffecb5fcf2018-01-10 17:50:43 +01001# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2#
Michael Meeksd037b812026-03-26 15:06:16 +00003# This file is part of the Collabora Office project.
Milian Wolffecb5fcf2018-01-10 17:50:43 +01004#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0. If a copy of the MPL was not distributed with this
7# file, You can obtain one at http://mozilla.org/MPL/2.0/.
8#
9# This file incorporates work covered by the following license notice:
10#
11# Licensed to the Apache Software Foundation (ASF) under one or more
12# contributor license agreements. See the NOTICE file distributed
13# with this work for additional information regarding copyright
14# ownership. The ASF licenses this file to you under the Apache
15# License, Version 2.0 (the "License"); you may not use this file
16# except in compliance with the License. You may obtain a copy of
17# the License at http://www.apache.org/licenses/LICENSE-2.0 .
18#
19
20$(eval $(call gb_Library_Library,vclplug_gtk3_kde5))
21
Jan-Marek Glogowskied583bf2020-12-29 11:42:30 +010022$(eval $(call gb_Library_set_plugin_for,vclplug_gtk3_kde5,vcl))
23
Milian Wolffecb5fcf2018-01-10 17:50:43 +010024# Silence deprecation warnings wholesale as long as vcl/unx/gtk3/*.cxx just
25# forward to vcl/unx/gtk/*.cxx:
26$(eval $(call gb_Library_add_cxxflags,vclplug_gtk3_kde5, \
27 -Wno-deprecated-declarations \
28))
29
30$(eval $(call gb_Library_set_include,vclplug_gtk3_kde5,\
31 $$(INCLUDE) \
32 -I$(SRCDIR)/vcl/inc \
33 -I$(SRCDIR)/vcl/unx \
34 -I$(SRCDIR)/vcl/unx/gtk3 \
35))
36
37$(eval $(call gb_Library_add_cxxflags,vclplug_gtk3_kde5,\
38 $$(INCLUDE) \
39 $$(GTK3_CFLAGS) \
Jan-Marek Glogowskia6201722019-06-10 21:40:33 +020040 $$(GSTREAMER_1_0_CFLAGS) \
Milian Wolffecb5fcf2018-01-10 17:50:43 +010041))
42
43$(eval $(call gb_Library_add_defs,vclplug_gtk3_kde5,\
44 -DVCLPLUG_GTK_IMPLEMENTATION -DVCLPLUG_GTK3_KDE5_IMPLEMENTATION \
Caolán McNamaraf645d4c2021-03-02 09:41:26 +000045 -DVCL_INTERNALS \
Milian Wolffecb5fcf2018-01-10 17:50:43 +010046))
47
48$(eval $(call gb_Library_use_custom_headers,vclplug_gtk3_kde5,\
49 officecfg/registry \
50))
51
52$(eval $(call gb_Library_use_sdk_api,vclplug_gtk3_kde5))
53
54$(eval $(call gb_Library_add_libs,vclplug_gtk3_kde5,\
55 $(GTK3_LIBS) \
Milian Wolffecb5fcf2018-01-10 17:50:43 +010056 -lX11 \
57 -lXext \
58 -lSM \
59 -lICE \
60))
61
62$(eval $(call gb_Library_use_libraries,vclplug_gtk3_kde5,\
Stephan Bergmann94146d12018-11-16 15:30:28 +010063 svl \
Milian Wolffecb5fcf2018-01-10 17:50:43 +010064 tl \
65 utl \
66 sot \
67 ucbhelper \
68 basegfx \
69 comphelper \
70 cppuhelper \
71 i18nlangtag \
72 i18nutil \
73 $(if $(ENABLE_JAVA), \
74 jvmaccess) \
75 cppu \
76 sal \
77))
78
79$(eval $(call gb_Library_use_externals,vclplug_gtk3_kde5,\
80 boost_headers \
81 boost_filesystem \
Julien Nabetc81a6072023-09-23 12:14:34 +020082 epoxy \
Milian Wolffecb5fcf2018-01-10 17:50:43 +010083 dbus \
Khaled Hosnyab03a092018-05-12 16:29:06 +020084 graphite \
85 harfbuzz \
Michael Weghorn894450d2021-09-28 08:36:44 +020086 kf5 \
Milian Wolffecb5fcf2018-01-10 17:50:43 +010087))
88
89$(eval $(call gb_Library_add_exception_objects,vclplug_gtk3_kde5,\
90 vcl/unx/gtk3_kde5/a11y/gtk3_kde5_atkaction \
Milian Wolffecb5fcf2018-01-10 17:50:43 +010091 vcl/unx/gtk3_kde5/a11y/gtk3_kde5_atkcomponent \
92 vcl/unx/gtk3_kde5/a11y/gtk3_kde5_atkeditabletext \
93 vcl/unx/gtk3_kde5/a11y/gtk3_kde5_atkfactory \
94 vcl/unx/gtk3_kde5/a11y/gtk3_kde5_atkhypertext \
95 vcl/unx/gtk3_kde5/a11y/gtk3_kde5_atkimage \
96 vcl/unx/gtk3_kde5/a11y/gtk3_kde5_atklistener \
97 vcl/unx/gtk3_kde5/a11y/gtk3_kde5_atkregistry \
98 vcl/unx/gtk3_kde5/a11y/gtk3_kde5_atkselection \
99 vcl/unx/gtk3_kde5/a11y/gtk3_kde5_atktable \
Michael Weghorndd5f0212022-09-03 00:22:42 +0200100 vcl/unx/gtk3_kde5/a11y/gtk3_kde5_atktablecell \
Milian Wolffecb5fcf2018-01-10 17:50:43 +0100101 vcl/unx/gtk3_kde5/a11y/gtk3_kde5_atktextattributes \
102 vcl/unx/gtk3_kde5/a11y/gtk3_kde5_atktext \
Milian Wolffecb5fcf2018-01-10 17:50:43 +0100103 vcl/unx/gtk3_kde5/a11y/gtk3_kde5_atkvalue \
Milian Wolffecb5fcf2018-01-10 17:50:43 +0100104 vcl/unx/gtk3_kde5/a11y/gtk3_kde5_atkwrapper \
Caolán McNamara879fc582021-06-27 19:40:50 +0100105 vcl/unx/gtk3_kde5/gtk3_kde5_customcellrenderer \
Milian Wolffecb5fcf2018-01-10 17:50:43 +0100106 vcl/unx/gtk3_kde5/gtk3_kde5_gtkdata \
107 vcl/unx/gtk3_kde5/gtk3_kde5_gtkinst \
Sahil Gautam44ccd392024-11-28 17:05:20 +0530108 vcl/unx/gtk3_kde5/gtk3_kde5_custom-theme \
Milian Wolffecb5fcf2018-01-10 17:50:43 +0100109 vcl/unx/gtk3_kde5/gtk3_kde5_gtksys \
110 vcl/unx/gtk3_kde5/gtk3_kde5_filepicker \
111 vcl/unx/gtk3_kde5/gtk3_kde5_filepicker_ipc \
112 vcl/unx/gtk3_kde5/gtk3_kde5_folderpicker \
Noel Grandin5357da32025-02-21 08:52:56 +0200113 vcl/unx/gtk3_kde5/gtk3_kde5_cairo \
Milian Wolffecb5fcf2018-01-10 17:50:43 +0100114 vcl/unx/gtk3_kde5/gtk3_kde5_salnativewidgets-gtk \
Milian Wolffecb5fcf2018-01-10 17:50:43 +0100115 vcl/unx/gtk3_kde5/gtk3_kde5_gtkframe \
116 vcl/unx/gtk3_kde5/gtk3_kde5_gtkobject \
117 vcl/unx/gtk3_kde5/gtk3_kde5_gtksalmenu \
118 vcl/unx/gtk3_kde5/gtk3_kde5_glomenu \
119 vcl/unx/gtk3_kde5/gtk3_kde5_gloactiongroup \
120 vcl/unx/gtk3_kde5/gtk3_kde5_hudawareness \
121))
122
123ifeq ($(OS),LINUX)
124$(eval $(call gb_Library_add_libs,vclplug_gtk3_kde5,\
125 -lm \
126 -ldl \
Milian Wolffecb5fcf2018-01-10 17:50:43 +0100127))
128endif
129
130# vim: set noet sw=4 ts=4: