| Michael Weghorn | 88d57cf | 2021-09-29 11:09:51 +0200 | [diff] [blame] | 1 | # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- |
| 2 | # |
| Michael Meeks | d037b81 | 2026-03-26 15:06:16 +0000 | [diff] [blame] | 3 | # This file is part of the Collabora Office project. |
| Michael Weghorn | 88d57cf | 2021-09-29 11:09:51 +0200 | [diff] [blame] | 4 | # |
| 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 Glogowski | ed583bf | 2020-12-29 11:42:30 +0100 | [diff] [blame] | 22 | $(eval $(call gb_Library_set_plugin_for,vclplug_qt6,vcl)) |
| 23 | |
| Michael Weghorn | 88d57cf | 2021-09-29 11:09:51 +0200 | [diff] [blame] | 24 | $(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 Weghorn | 88d57cf | 2021-09-29 11:09:51 +0200 | [diff] [blame] | 40 | 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 \ |
| OmkarAcharekar | 7282421 | 2024-09-25 09:48:09 +0200 | [diff] [blame] | 54 | xmlreader \ |
| Michael Weghorn | 88d57cf | 2021-09-29 11:09:51 +0200 | [diff] [blame] | 55 | )) |
| 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 | |
| 68 | ifneq ($(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 | )) |
| 75 | endif |
| 76 | |
| 77 | $(eval $(call gb_Library_add_exception_objects,vclplug_qt6,\ |
| 78 | vcl/qt6/QtAccessibleEventListener \ |
| Michael Weghorn | 812fe18 | 2022-08-24 11:42:04 +0200 | [diff] [blame] | 79 | vcl/qt6/QtAccessibleRegistry \ |
| Michael Weghorn | 88d57cf | 2021-09-29 11:09:51 +0200 | [diff] [blame] | 80 | vcl/qt6/QtAccessibleWidget \ |
| 81 | vcl/qt6/QtBitmap \ |
| OmkarAcharekar | 7282421 | 2024-09-25 09:48:09 +0200 | [diff] [blame] | 82 | vcl/qt6/QtBuilder \ |
| Michael Weghorn | 88d57cf | 2021-09-29 11:09:51 +0200 | [diff] [blame] | 83 | vcl/qt6/QtClipboard \ |
| Sahil Gautam | c85155c | 2024-11-05 15:25:24 +0530 | [diff] [blame] | 84 | vcl/qt6/QtCustomStyle \ |
| Michael Weghorn | 88d57cf | 2021-09-29 11:09:51 +0200 | [diff] [blame] | 85 | vcl/qt6/QtData \ |
| Michael Weghorn | 6ab6dcf | 2024-11-27 17:39:02 +0100 | [diff] [blame] | 86 | vcl/qt6/QtDoubleSpinBox \ |
| Michael Weghorn | 88d57cf | 2021-09-29 11:09:51 +0200 | [diff] [blame] | 87 | vcl/qt6/QtDragAndDrop \ |
| Michael Weghorn | 9ca43e7 | 2024-11-24 00:07:44 +0100 | [diff] [blame] | 88 | vcl/qt6/QtExpander \ |
| Michael Weghorn | 88d57cf | 2021-09-29 11:09:51 +0200 | [diff] [blame] | 89 | vcl/qt6/QtFilePicker \ |
| 90 | vcl/qt6/QtFont \ |
| 91 | vcl/qt6/QtFontFace \ |
| 92 | vcl/qt6/QtFrame \ |
| 93 | vcl/qt6/QtGraphics \ |
| Michael Weghorn | 52f2eda | 2024-07-24 08:59:36 +0200 | [diff] [blame] | 94 | vcl/qt6/QtGraphicsBase \ |
| Michael Weghorn | 88d57cf | 2021-09-29 11:09:51 +0200 | [diff] [blame] | 95 | vcl/qt6/QtGraphics_Controls \ |
| 96 | vcl/qt6/QtGraphics_GDI \ |
| 97 | vcl/qt6/QtGraphics_Text \ |
| Michael Weghorn | 0846977 | 2024-10-25 20:41:48 +0200 | [diff] [blame] | 98 | vcl/qt6/QtHyperlinkLabel \ |
| Michael Weghorn | 88d57cf | 2021-09-29 11:09:51 +0200 | [diff] [blame] | 99 | vcl/qt6/QtInstance \ |
| 100 | vcl/qt6/QtInstance_Print \ |
| Michael Weghorn | ffd236b | 2025-02-22 18:30:30 +0100 | [diff] [blame] | 101 | vcl/qt6/QtInstanceAssistant \ |
| Michael Weghorn | d7fd4f2 | 2025-01-22 21:54:37 +0100 | [diff] [blame] | 102 | vcl/qt6/QtInstanceBox \ |
| OmkarAcharekar | 9b3a299 | 2024-09-18 09:35:09 +0200 | [diff] [blame] | 103 | vcl/qt6/QtInstanceBuilder \ |
| Michael Weghorn | f0ad3a9 | 2024-08-06 14:58:12 +0200 | [diff] [blame] | 104 | vcl/qt6/QtInstanceButton \ |
| Michael Weghorn | be3e1d3 | 2025-05-29 15:32:54 +0200 | [diff] [blame] | 105 | vcl/qt6/QtInstanceCalendar \ |
| Michael Weghorn | cc7f535 | 2024-10-02 17:36:21 +0200 | [diff] [blame] | 106 | vcl/qt6/QtInstanceCheckButton \ |
| Michael Weghorn | 0720101 | 2025-07-25 15:09:25 +0200 | [diff] [blame] | 107 | vcl/qt6/QtInstanceColorChooserDialog \ |
| Michael Weghorn | 4bdcb61 | 2024-10-22 18:19:45 +0200 | [diff] [blame] | 108 | vcl/qt6/QtInstanceComboBox \ |
| OmkarAcharekar | 1ace888 | 2023-12-20 19:13:50 +0530 | [diff] [blame] | 109 | vcl/qt6/QtInstanceContainer \ |
| 110 | vcl/qt6/QtInstanceDialog \ |
| Michael Weghorn | 5c85ef3 | 2024-11-06 21:51:46 +0100 | [diff] [blame] | 111 | vcl/qt6/QtInstanceDrawingArea \ |
| Michael Weghorn | 778fb6b | 2024-10-04 16:36:16 +0200 | [diff] [blame] | 112 | vcl/qt6/QtInstanceEntry \ |
| Michael Weghorn | e61a6f9 | 2025-04-18 23:00:09 +0200 | [diff] [blame] | 113 | vcl/qt6/QtInstanceEntryTreeView \ |
| Michael Weghorn | ec760b2 | 2024-11-24 01:20:31 +0100 | [diff] [blame] | 114 | vcl/qt6/QtInstanceExpander \ |
| Michael Weghorn | 2bd9ff7 | 2025-02-18 19:07:07 +0100 | [diff] [blame] | 115 | vcl/qt6/QtInstanceFormattedSpinButton \ |
| Michael Weghorn | 0a4ec73 | 2024-10-25 10:04:10 +0200 | [diff] [blame] | 116 | vcl/qt6/QtInstanceFrame \ |
| Michael Weghorn | fb3f9d7 | 2024-12-18 16:48:13 +0100 | [diff] [blame] | 117 | vcl/qt6/QtInstanceGrid \ |
| Michael Weghorn | 995866e | 2024-12-09 21:24:30 +0100 | [diff] [blame] | 118 | vcl/qt6/QtInstanceIconView \ |
| Michael Weghorn | c5f68d9 | 2024-10-25 20:26:15 +0200 | [diff] [blame] | 119 | vcl/qt6/QtInstanceImage \ |
| Michael Weghorn | fd6d5c8 | 2024-10-01 23:10:42 +0200 | [diff] [blame] | 120 | vcl/qt6/QtInstanceLabel \ |
| Michael Weghorn | d247f2e | 2024-10-29 21:13:26 +0100 | [diff] [blame] | 121 | vcl/qt6/QtInstanceLevelBar \ |
| Michael Weghorn | 0846977 | 2024-10-25 20:41:48 +0200 | [diff] [blame] | 122 | vcl/qt6/QtInstanceLinkButton \ |
| Michael Weghorn | b8ca642 | 2024-12-20 21:34:46 +0100 | [diff] [blame] | 123 | vcl/qt6/QtInstanceMenu \ |
| Michael Weghorn | a6f206c | 2024-12-20 21:05:20 +0100 | [diff] [blame] | 124 | vcl/qt6/QtInstanceMenuButton \ |
| OmkarAcharekar | 1ace888 | 2023-12-20 19:13:50 +0530 | [diff] [blame] | 125 | vcl/qt6/QtInstanceMessageDialog \ |
| Michael Weghorn | 6c957f1 | 2024-11-09 22:03:16 +0100 | [diff] [blame] | 126 | vcl/qt6/QtInstanceNotebook \ |
| Michael Weghorn | a742873 | 2024-12-22 01:03:14 +0100 | [diff] [blame] | 127 | vcl/qt6/QtInstancePopover \ |
| Michael Weghorn | ef1eaad | 2024-10-30 09:54:55 +0100 | [diff] [blame] | 128 | vcl/qt6/QtInstanceProgressBar \ |
| Michael Weghorn | 076deef | 2024-10-25 13:21:55 +0200 | [diff] [blame] | 129 | vcl/qt6/QtInstanceRadioButton \ |
| Michael Weghorn | 9bce3ab | 2024-12-19 21:19:31 +0100 | [diff] [blame] | 130 | vcl/qt6/QtInstanceScale \ |
| Michael Weghorn | 7d467fa | 2025-03-02 01:26:50 +0100 | [diff] [blame] | 131 | vcl/qt6/QtInstanceScrollbar \ |
| Michael Weghorn | dc7e8be | 2024-12-14 23:43:22 +0100 | [diff] [blame] | 132 | vcl/qt6/QtInstanceScrolledWindow \ |
| Michael Weghorn | ea790b3 | 2024-11-07 22:04:07 +0100 | [diff] [blame] | 133 | vcl/qt6/QtInstanceSpinButton \ |
| Michael Weghorn | 6835fbc | 2025-07-26 09:49:33 +0200 | [diff] [blame] | 134 | vcl/qt6/QtInstanceSpinner \ |
| Michael Weghorn | 71e819a | 2024-10-04 16:54:31 +0200 | [diff] [blame] | 135 | vcl/qt6/QtInstanceTextView \ |
| Michael Weghorn | feaf080 | 2024-12-19 22:42:04 +0100 | [diff] [blame] | 136 | vcl/qt6/QtInstanceToggleButton \ |
| Michael Weghorn | bcc5181 | 2025-01-07 13:24:26 +0100 | [diff] [blame] | 137 | vcl/qt6/QtInstanceToolbar \ |
| Michael Weghorn | 4a25132 | 2025-02-13 10:40:42 +0100 | [diff] [blame] | 138 | vcl/qt6/QtInstanceTreeIter \ |
| Michael Weghorn | d0ea15a | 2024-11-09 00:28:06 +0100 | [diff] [blame] | 139 | vcl/qt6/QtInstanceTreeView \ |
| OmkarAcharekar | 1ace888 | 2023-12-20 19:13:50 +0530 | [diff] [blame] | 140 | vcl/qt6/QtInstanceWidget \ |
| 141 | vcl/qt6/QtInstanceWindow \ |
| Michael Weghorn | 88d57cf | 2021-09-29 11:09:51 +0200 | [diff] [blame] | 142 | 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 Grandin | 5357da3 | 2025-02-21 08:52:56 +0200 | [diff] [blame] | 149 | vcl/qt6/QtSvpSurface \ |
| Michael Weghorn | 88d57cf | 2021-09-29 11:09:51 +0200 | [diff] [blame] | 150 | 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 Weghorn | 429b083 | 2025-02-21 23:48:47 +0100 | [diff] [blame] | 157 | vcl/qt6/QtXWindow \ |
| Jan-Marek Glogowski | fbc61e0 | 2022-06-15 23:34:01 +0200 | [diff] [blame] | 158 | $(if $(USING_X11), \ |
| 159 | vcl/qt6/QtX11Support \ |
| 160 | ) \ |
| Michael Weghorn | 88d57cf | 2021-09-29 11:09:51 +0200 | [diff] [blame] | 161 | )) |
| 162 | |
| 163 | ifeq ($(OS),LINUX) |
| 164 | $(eval $(call gb_Library_add_libs,vclplug_qt6,\ |
| 165 | -lm \ |
| 166 | -ldl \ |
| 167 | )) |
| 168 | endif |
| 169 | |
| 170 | # Workaround for clang+icecream (clang's -frewrite-includes |
| 171 | # doesn't handle Qt6's QT_HAS_INCLUDE that Qt6 uses for <chrono>). |
| 172 | ifeq ($(COM_IS_CLANG),TRUE) |
| 173 | $(eval $(call gb_Library_add_cxxflags,vclplug_qt6, \ |
| 174 | -include chrono \ |
| 175 | )) |
| 176 | endif |
| 177 | |
| 178 | # vim: set noet sw=4 ts=4: |