blob: 9b7a246ec5595d6a004abe700abc8977f785174c [file] [log] [blame]
Michael Weghorn88d57cf2021-09-29 11:09:51 +02001# -*- 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.
Michael Weghorn88d57cf2021-09-29 11:09:51 +02004#
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_qt6))
21
Jan-Marek Glogowskied583bf2020-12-29 11:42:30 +010022$(eval $(call gb_Library_set_plugin_for,vclplug_qt6,vcl))
23
Michael Weghorn88d57cf2021-09-29 11:09:51 +020024$(eval $(call gb_Library_use_custom_headers,vclplug_qt6,vcl/qt6))
25
26$(eval $(call gb_Library_set_include,vclplug_qt6,\
27 $$(INCLUDE) \
28 -I$(SRCDIR)/vcl/inc \
29 -I$(SRCDIR)/vcl/inc/qt6 \
30))
31
32$(eval $(call gb_Library_add_defs,vclplug_qt6,\
33 -DVCLPLUG_QT_IMPLEMENTATION \
34 -DVCL_INTERNALS \
35))
36
37$(eval $(call gb_Library_use_sdk_api,vclplug_qt6))
38
39$(eval $(call gb_Library_use_libraries,vclplug_qt6,\
Michael Weghorn88d57cf2021-09-29 11:09:51 +020040 tl \
41 utl \
42 sot \
43 ucbhelper \
44 basegfx \
45 comphelper \
46 cppuhelper \
47 i18nlangtag \
48 i18nutil \
49 $(if $(ENABLE_JAVA), \
50 jvmaccess) \
51 cppu \
52 sal \
53 salhelper \
OmkarAcharekar72824212024-09-25 09:48:09 +020054 xmlreader \
Michael Weghorn88d57cf2021-09-29 11:09:51 +020055))
56
57$(eval $(call gb_Library_use_externals,vclplug_qt6,\
58 boost_headers \
59 cairo \
60 epoxy \
61 graphite \
62 harfbuzz \
63 icu_headers \
64 icuuc \
65 qt6 \
66))
67
68ifneq ($(QT6_HAVE_GOBJECT),)
69$(eval $(call gb_Library_add_cxxflags,vclplug_qt6,\
70 $(QT6_GOBJECT_CFLAGS) \
71))
72$(eval $(call gb_Library_add_libs,vclplug_qt6,\
73 $(QT6_GOBJECT_LIBS) \
74))
75endif
76
77$(eval $(call gb_Library_add_exception_objects,vclplug_qt6,\
78 vcl/qt6/QtAccessibleEventListener \
Michael Weghorn812fe182022-08-24 11:42:04 +020079 vcl/qt6/QtAccessibleRegistry \
Michael Weghorn88d57cf2021-09-29 11:09:51 +020080 vcl/qt6/QtAccessibleWidget \
81 vcl/qt6/QtBitmap \
OmkarAcharekar72824212024-09-25 09:48:09 +020082 vcl/qt6/QtBuilder \
Michael Weghorn88d57cf2021-09-29 11:09:51 +020083 vcl/qt6/QtClipboard \
Sahil Gautamc85155c2024-11-05 15:25:24 +053084 vcl/qt6/QtCustomStyle \
Michael Weghorn88d57cf2021-09-29 11:09:51 +020085 vcl/qt6/QtData \
Michael Weghorn6ab6dcf2024-11-27 17:39:02 +010086 vcl/qt6/QtDoubleSpinBox \
Michael Weghorn88d57cf2021-09-29 11:09:51 +020087 vcl/qt6/QtDragAndDrop \
Michael Weghorn9ca43e72024-11-24 00:07:44 +010088 vcl/qt6/QtExpander \
Michael Weghorn88d57cf2021-09-29 11:09:51 +020089 vcl/qt6/QtFilePicker \
90 vcl/qt6/QtFont \
91 vcl/qt6/QtFontFace \
92 vcl/qt6/QtFrame \
93 vcl/qt6/QtGraphics \
Michael Weghorn52f2eda2024-07-24 08:59:36 +020094 vcl/qt6/QtGraphicsBase \
Michael Weghorn88d57cf2021-09-29 11:09:51 +020095 vcl/qt6/QtGraphics_Controls \
96 vcl/qt6/QtGraphics_GDI \
97 vcl/qt6/QtGraphics_Text \
Michael Weghorn08469772024-10-25 20:41:48 +020098 vcl/qt6/QtHyperlinkLabel \
Michael Weghorn88d57cf2021-09-29 11:09:51 +020099 vcl/qt6/QtInstance \
100 vcl/qt6/QtInstance_Print \
Michael Weghornffd236b2025-02-22 18:30:30 +0100101 vcl/qt6/QtInstanceAssistant \
Michael Weghornd7fd4f22025-01-22 21:54:37 +0100102 vcl/qt6/QtInstanceBox \
OmkarAcharekar9b3a2992024-09-18 09:35:09 +0200103 vcl/qt6/QtInstanceBuilder \
Michael Weghornf0ad3a92024-08-06 14:58:12 +0200104 vcl/qt6/QtInstanceButton \
Michael Weghornbe3e1d32025-05-29 15:32:54 +0200105 vcl/qt6/QtInstanceCalendar \
Michael Weghorncc7f5352024-10-02 17:36:21 +0200106 vcl/qt6/QtInstanceCheckButton \
Michael Weghorn07201012025-07-25 15:09:25 +0200107 vcl/qt6/QtInstanceColorChooserDialog \
Michael Weghorn4bdcb612024-10-22 18:19:45 +0200108 vcl/qt6/QtInstanceComboBox \
OmkarAcharekar1ace8882023-12-20 19:13:50 +0530109 vcl/qt6/QtInstanceContainer \
110 vcl/qt6/QtInstanceDialog \
Michael Weghorn5c85ef32024-11-06 21:51:46 +0100111 vcl/qt6/QtInstanceDrawingArea \
Michael Weghorn778fb6b2024-10-04 16:36:16 +0200112 vcl/qt6/QtInstanceEntry \
Michael Weghorne61a6f92025-04-18 23:00:09 +0200113 vcl/qt6/QtInstanceEntryTreeView \
Michael Weghornec760b22024-11-24 01:20:31 +0100114 vcl/qt6/QtInstanceExpander \
Michael Weghorn2bd9ff72025-02-18 19:07:07 +0100115 vcl/qt6/QtInstanceFormattedSpinButton \
Michael Weghorn0a4ec732024-10-25 10:04:10 +0200116 vcl/qt6/QtInstanceFrame \
Michael Weghornfb3f9d72024-12-18 16:48:13 +0100117 vcl/qt6/QtInstanceGrid \
Michael Weghorn995866e2024-12-09 21:24:30 +0100118 vcl/qt6/QtInstanceIconView \
Michael Weghornc5f68d92024-10-25 20:26:15 +0200119 vcl/qt6/QtInstanceImage \
Michael Weghornfd6d5c82024-10-01 23:10:42 +0200120 vcl/qt6/QtInstanceLabel \
Michael Weghornd247f2e2024-10-29 21:13:26 +0100121 vcl/qt6/QtInstanceLevelBar \
Michael Weghorn08469772024-10-25 20:41:48 +0200122 vcl/qt6/QtInstanceLinkButton \
Michael Weghornb8ca6422024-12-20 21:34:46 +0100123 vcl/qt6/QtInstanceMenu \
Michael Weghorna6f206c2024-12-20 21:05:20 +0100124 vcl/qt6/QtInstanceMenuButton \
OmkarAcharekar1ace8882023-12-20 19:13:50 +0530125 vcl/qt6/QtInstanceMessageDialog \
Michael Weghorn6c957f12024-11-09 22:03:16 +0100126 vcl/qt6/QtInstanceNotebook \
Michael Weghorna7428732024-12-22 01:03:14 +0100127 vcl/qt6/QtInstancePopover \
Michael Weghornef1eaad2024-10-30 09:54:55 +0100128 vcl/qt6/QtInstanceProgressBar \
Michael Weghorn076deef2024-10-25 13:21:55 +0200129 vcl/qt6/QtInstanceRadioButton \
Michael Weghorn9bce3ab2024-12-19 21:19:31 +0100130 vcl/qt6/QtInstanceScale \
Michael Weghorn7d467fa2025-03-02 01:26:50 +0100131 vcl/qt6/QtInstanceScrollbar \
Michael Weghorndc7e8be2024-12-14 23:43:22 +0100132 vcl/qt6/QtInstanceScrolledWindow \
Michael Weghornea790b32024-11-07 22:04:07 +0100133 vcl/qt6/QtInstanceSpinButton \
Michael Weghorn6835fbc2025-07-26 09:49:33 +0200134 vcl/qt6/QtInstanceSpinner \
Michael Weghorn71e819a2024-10-04 16:54:31 +0200135 vcl/qt6/QtInstanceTextView \
Michael Weghornfeaf0802024-12-19 22:42:04 +0100136 vcl/qt6/QtInstanceToggleButton \
Michael Weghornbcc51812025-01-07 13:24:26 +0100137 vcl/qt6/QtInstanceToolbar \
Michael Weghorn4a251322025-02-13 10:40:42 +0100138 vcl/qt6/QtInstanceTreeIter \
Michael Weghornd0ea15a2024-11-09 00:28:06 +0100139 vcl/qt6/QtInstanceTreeView \
OmkarAcharekar1ace8882023-12-20 19:13:50 +0530140 vcl/qt6/QtInstanceWidget \
141 vcl/qt6/QtInstanceWindow \
Michael Weghorn88d57cf2021-09-29 11:09:51 +0200142 vcl/qt6/QtMainWindow \
143 vcl/qt6/QtMenu \
144 vcl/qt6/QtObject \
145 vcl/qt6/QtOpenGLContext \
146 vcl/qt6/QtPainter \
147 vcl/qt6/QtPrinter \
148 vcl/qt6/QtSvpGraphics \
Noel Grandin5357da32025-02-21 08:52:56 +0200149 vcl/qt6/QtSvpSurface \
Michael Weghorn88d57cf2021-09-29 11:09:51 +0200150 vcl/qt6/QtSystem \
151 vcl/qt6/QtTimer \
152 vcl/qt6/QtTools \
153 vcl/qt6/QtTransferable \
154 vcl/qt6/QtVirtualDevice \
155 vcl/qt6/QtWidget \
156 vcl/qt6/QtXAccessible \
Michael Weghorn429b0832025-02-21 23:48:47 +0100157 vcl/qt6/QtXWindow \
Jan-Marek Glogowskifbc61e02022-06-15 23:34:01 +0200158 $(if $(USING_X11), \
159 vcl/qt6/QtX11Support \
160 ) \
Michael Weghorn88d57cf2021-09-29 11:09:51 +0200161))
162
163ifeq ($(OS),LINUX)
164$(eval $(call gb_Library_add_libs,vclplug_qt6,\
165 -lm \
166 -ldl \
167))
168endif
169
170# Workaround for clang+icecream (clang's -frewrite-includes
171# doesn't handle Qt6's QT_HAS_INCLUDE that Qt6 uses for <chrono>).
172ifeq ($(COM_IS_CLANG),TRUE)
173$(eval $(call gb_Library_add_cxxflags,vclplug_qt6, \
174 -include chrono \
175))
176endif
177
178# vim: set noet sw=4 ts=4: