cid#1500382 Dereference before null check
[LibreOffice.git] / vcl / Library_vclplug_gtk4.mk
blobd9c19f5521b0089e9f3f6e34c892155d06400b32
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
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/.
9 # This file incorporates work covered by the following license notice:
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 .
20 $(eval $(call gb_Library_Library,vclplug_gtk4))
22 $(eval $(call gb_Library_set_plugin_for,vclplug_gtk4,vcl))
24 # Silence deprecation warnings wholesale as long as vcl/unx/gtk4/*.cxx just
25 # forward to vcl/unx/gtk/*.cxx:
26 $(eval $(call gb_Library_add_cxxflags,vclplug_gtk4, \
27 -Wno-deprecated-declarations \
30 $(eval $(call gb_Library_set_include,vclplug_gtk4,\
31 $$(INCLUDE) \
32 $$(GTK4_CFLAGS) \
33 $$(GSTREAMER_1_0_CFLAGS) \
34 -I$(SRCDIR)/vcl/inc \
35 -I$(SRCDIR)/vcl/unx \
36 -I$(SRCDIR)/vcl/unx/gtk4 \
39 $(eval $(call gb_Library_add_defs,vclplug_gtk4,\
40 -DVCLPLUG_GTK_IMPLEMENTATION \
41 -DVCL_INTERNALS \
44 $(eval $(call gb_Library_use_custom_headers,vclplug_gtk4,\
45 officecfg/registry \
48 $(eval $(call gb_Library_use_sdk_api,vclplug_gtk4))
50 $(eval $(call gb_Library_add_libs,vclplug_gtk4,\
51 $(GTK4_LIBS) \
52 -lX11 \
53 -lXext \
54 -lSM \
55 -lICE \
58 $(eval $(call gb_Library_use_libraries,vclplug_gtk4,\
59 svl \
60 tl \
61 utl \
62 sot \
63 ucbhelper \
64 basegfx \
65 comphelper \
66 cppuhelper \
67 i18nlangtag \
68 i18nutil \
69 $(if $(ENABLE_JAVA), \
70 jvmaccess) \
71 cppu \
72 sal \
75 $(eval $(call gb_Library_use_externals,vclplug_gtk4,\
76 boost_headers \
77 epoxy \
78 dbus \
79 graphite \
80 harfbuzz \
83 $(eval $(call gb_Library_add_exception_objects,vclplug_gtk4,\
84 vcl/unx/gtk4/fpicker/resourceprovider \
85 vcl/unx/gtk4/fpicker/SalGtkFilePicker \
86 vcl/unx/gtk4/fpicker/SalGtkFolderPicker \
87 vcl/unx/gtk4/fpicker/SalGtkPicker \
88 vcl/unx/gtk4/convert3to4 \
89 vcl/unx/gtk4/customcellrenderer \
90 vcl/unx/gtk4/gtkdata \
91 vcl/unx/gtk4/gtkinst \
92 vcl/unx/gtk4/gtksys \
93 vcl/unx/gtk4/gtkcairo \
94 vcl/unx/gtk4/salnativewidgets-gtk \
95 vcl/unx/gtk4/gtkframe \
96 vcl/unx/gtk4/gtkobject \
97 vcl/unx/gtk4/gtksalmenu \
98 vcl/unx/gtk4/glomenu \
99 vcl/unx/gtk4/gloactiongroup \
100 vcl/unx/gtk4/hudawareness \
101 vcl/unx/gtk4/notifyinglayout \
102 vcl/unx/gtk4/surfacecellrenderer \
103 vcl/unx/gtk4/surfacepaintable \
104 vcl/unx/gtk4/transferableprovider \
107 ifeq ($(OS),LINUX)
108 $(eval $(call gb_Library_add_libs,vclplug_gtk4,\
109 -lm \
110 -ldl \
112 endif
114 # vim: set noet sw=4 ts=4: