1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# qt6base 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunQT6BASE_VERSION = $(QT6_VERSION) 8*4882a593SmuzhiyunQT6BASE_SITE = $(QT6_SITE) 9*4882a593SmuzhiyunQT6BASE_SOURCE = qtbase-$(QT6_SOURCE_TARBALL_PREFIX)-$(QT6BASE_VERSION).tar.xz 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunQT6BASE_LICENSE = \ 12*4882a593Smuzhiyun GPL-2.0+ or LGPL-3.0, \ 13*4882a593Smuzhiyun GPL-3.0 with exception (tools), \ 14*4882a593Smuzhiyun GFDL-1.3 (docs), \ 15*4882a593Smuzhiyun Apache-2.0, \ 16*4882a593Smuzhiyun BSD-3-Clause, \ 17*4882a593Smuzhiyun BSL-1.0, \ 18*4882a593Smuzhiyun MIT 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunQT6BASE_LICENSE_FILES = \ 21*4882a593Smuzhiyun LICENSES/Apache-2.0.txt \ 22*4882a593Smuzhiyun LICENSES/BSD-3-Clause.txt \ 23*4882a593Smuzhiyun LICENSES/BSL-1.0.txt \ 24*4882a593Smuzhiyun LICENSES/GFDL-1.3-no-invariants-only.txt \ 25*4882a593Smuzhiyun LICENSES/GPL-2.0-only.txt \ 26*4882a593Smuzhiyun LICENSES/GPL-3.0-only.txt \ 27*4882a593Smuzhiyun LICENSES/LGPL-3.0-only.txt \ 28*4882a593Smuzhiyun LICENSES/MIT.txt \ 29*4882a593Smuzhiyun LICENSES/Qt-GPL-exception-1.0.txt 30*4882a593Smuzhiyun 31*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_EXAMPLES),y) 32*4882a593SmuzhiyunQT5BASE_LICENSE += , BSD-3-Clause (examples) 33*4882a593Smuzhiyunendif 34*4882a593Smuzhiyun 35*4882a593SmuzhiyunQT6BASE_DEPENDENCIES = \ 36*4882a593Smuzhiyun host-ninja \ 37*4882a593Smuzhiyun host-qt6base \ 38*4882a593Smuzhiyun double-conversion \ 39*4882a593Smuzhiyun libb2 \ 40*4882a593Smuzhiyun pcre2 \ 41*4882a593Smuzhiyun zlib 42*4882a593SmuzhiyunQT6BASE_INSTALL_STAGING = YES 43*4882a593Smuzhiyun 44*4882a593SmuzhiyunQT6BASE_CONF_OPTS = \ 45*4882a593Smuzhiyun -GNinja \ 46*4882a593Smuzhiyun -DQT_HOST_PATH=$(HOST_DIR) \ 47*4882a593Smuzhiyun -DFEATURE_concurrent=OFF \ 48*4882a593Smuzhiyun -DFEATURE_xml=OFF \ 49*4882a593Smuzhiyun -DFEATURE_sql=OFF \ 50*4882a593Smuzhiyun -DFEATURE_testlib=OFF \ 51*4882a593Smuzhiyun -DFEATURE_network=OFF \ 52*4882a593Smuzhiyun -DFEATURE_dbus=OFF \ 53*4882a593Smuzhiyun -DFEATURE_icu=OFF \ 54*4882a593Smuzhiyun -DFEATURE_glib=OFF \ 55*4882a593Smuzhiyun -DFEATURE_system_doubleconversion=ON \ 56*4882a593Smuzhiyun -DFEATURE_system_pcre2=ON \ 57*4882a593Smuzhiyun -DFEATURE_system_zlib=ON \ 58*4882a593Smuzhiyun -DFEATURE_system_libb2=ON 59*4882a593Smuzhiyun 60*4882a593Smuzhiyun# x86 optimization options. While we have a BR2_X86_CPU_HAS_AVX512, it 61*4882a593Smuzhiyun# is not clear yet how it maps to all the avx512* options of Qt, so we 62*4882a593Smuzhiyun# for now keeps them disabled. 63*4882a593SmuzhiyunQT6BASE_CONF_OPTS += \ 64*4882a593Smuzhiyun -DFEATURE_sse2=$(if $(BR2_X86_CPU_HAS_SSE2),ON,OFF) \ 65*4882a593Smuzhiyun -DFEATURE_sse3=$(if $(BR2_X86_CPU_HAS_SSE3),ON,OFF) \ 66*4882a593Smuzhiyun -DFEATURE_sse4_1=$(if $(BR2_X86_CPU_HAS_SSE4),ON,OFF) \ 67*4882a593Smuzhiyun -DFEATURE_sse4_2=$(if $(BR2_X86_CPU_HAS_SSE42),ON,OFF) \ 68*4882a593Smuzhiyun -DFEATURE_ssse3=$(if $(BR2_X86_CPU_HAS_SSSE3),ON,OFF) \ 69*4882a593Smuzhiyun -DFEATURE_avx=$(if $(BR2_X86_CPU_HAS_AVX),ON,OFF) \ 70*4882a593Smuzhiyun -DFEATURE_avx2=$(if $(BR2_X86_CPU_HAS_AVX2),ON,OFF) \ 71*4882a593Smuzhiyun -DFEATURE_avx512bw=OFF \ 72*4882a593Smuzhiyun -DFEATURE_avx512cd=OFF \ 73*4882a593Smuzhiyun -DFEATURE_avx512dq=OFF \ 74*4882a593Smuzhiyun -DFEATURE_avx512er=OFF \ 75*4882a593Smuzhiyun -DFEATURE_avx512f=OFF \ 76*4882a593Smuzhiyun -DFEATURE_avx512ifma=OFF \ 77*4882a593Smuzhiyun -DFEATURE_avx512pf=OFF \ 78*4882a593Smuzhiyun -DFEATURE_avx512vbmi=OFF \ 79*4882a593Smuzhiyun -DFEATURE_avx512vbmi2=OFF \ 80*4882a593Smuzhiyun -DFEATURE_avx512vl=OFF \ 81*4882a593Smuzhiyun -DFEATURE_vaes=OFF 82*4882a593Smuzhiyun 83*4882a593Smuzhiyundefine QT6BASE_BUILD_CMDS 84*4882a593Smuzhiyun $(TARGET_MAKE_ENV) $(BR2_CMAKE) --build $(QT6BASE_BUILDDIR) 85*4882a593Smuzhiyunendef 86*4882a593Smuzhiyun 87*4882a593Smuzhiyundefine QT6BASE_INSTALL_STAGING_CMDS 88*4882a593Smuzhiyun $(TARGET_MAKE_ENV) DESTDIR=$(STAGING_DIR) $(BR2_CMAKE) --install $(QT6BASE_BUILDDIR) 89*4882a593Smuzhiyunendef 90*4882a593Smuzhiyun 91*4882a593Smuzhiyundefine QT6BASE_INSTALL_TARGET_CMDS 92*4882a593Smuzhiyun $(TARGET_MAKE_ENV) DESTDIR=$(TARGET_DIR) $(BR2_CMAKE) --install $(QT6BASE_BUILDDIR) 93*4882a593Smuzhiyunendef 94*4882a593Smuzhiyun 95*4882a593SmuzhiyunHOST_QT6BASE_DEPENDENCIES = \ 96*4882a593Smuzhiyun host-ninja \ 97*4882a593Smuzhiyun host-double-conversion \ 98*4882a593Smuzhiyun host-libb2 \ 99*4882a593Smuzhiyun host-pcre2 \ 100*4882a593Smuzhiyun host-zlib 101*4882a593SmuzhiyunHOST_QT6BASE_CONF_OPTS = \ 102*4882a593Smuzhiyun -GNinja \ 103*4882a593Smuzhiyun -DFEATURE_gui=OFF \ 104*4882a593Smuzhiyun -DFEATURE_concurrent=OFF \ 105*4882a593Smuzhiyun -DFEATURE_xml=ON \ 106*4882a593Smuzhiyun -DFEATURE_sql=OFF \ 107*4882a593Smuzhiyun -DFEATURE_testlib=OFF \ 108*4882a593Smuzhiyun -DFEATURE_network=OFF \ 109*4882a593Smuzhiyun -DFEATURE_dbus=OFF \ 110*4882a593Smuzhiyun -DFEATURE_icu=OFF \ 111*4882a593Smuzhiyun -DFEATURE_glib=OFF \ 112*4882a593Smuzhiyun -DFEATURE_system_doubleconversion=ON \ 113*4882a593Smuzhiyun -DFEATURE_system_libb2=ON \ 114*4882a593Smuzhiyun -DFEATURE_system_pcre2=ON \ 115*4882a593Smuzhiyun -DFEATURE_system_zlib=ON 116*4882a593Smuzhiyun 117*4882a593Smuzhiyundefine HOST_QT6BASE_BUILD_CMDS 118*4882a593Smuzhiyun $(HOST_MAKE_ENV) $(BR2_CMAKE) --build $(HOST_QT6BASE_BUILDDIR) 119*4882a593Smuzhiyunendef 120*4882a593Smuzhiyun 121*4882a593Smuzhiyundefine HOST_QT6BASE_INSTALL_CMDS 122*4882a593Smuzhiyun $(HOST_MAKE_ENV) $(BR2_CMAKE) --install $(HOST_QT6BASE_BUILDDIR) 123*4882a593Smuzhiyunendef 124*4882a593Smuzhiyun 125*4882a593Smuzhiyun# Conditional blocks below are ordered by alphabetic ordering of the 126*4882a593Smuzhiyun# BR2_PACKAGE_* option. 127*4882a593Smuzhiyun 128*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_HAS_UDEV),y) 129*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_libudev=ON 130*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += udev 131*4882a593Smuzhiyunelse 132*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_libudev=OFF 133*4882a593Smuzhiyunendif 134*4882a593Smuzhiyun 135*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_ICU),y) 136*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_icu=ON 137*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += icu 138*4882a593Smuzhiyunelse 139*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_icu=OFF 140*4882a593Smuzhiyunendif 141*4882a593Smuzhiyun 142*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBGLIB2),y) 143*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_glib=ON 144*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += libglib2 145*4882a593Smuzhiyunelse 146*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_glib=OFF 147*4882a593Smuzhiyunendif 148*4882a593Smuzhiyun 149*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_GUI),y) 150*4882a593SmuzhiyunQT6BASE_CONF_OPTS += \ 151*4882a593Smuzhiyun -DFEATURE_gui=ON \ 152*4882a593Smuzhiyun -DFEATURE_freetype=ON \ 153*4882a593Smuzhiyun -DFEATURE_vulkan=OFF 154*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += freetype 155*4882a593Smuzhiyun 156*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_LINUXFB),y) 157*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_linuxfb=ON 158*4882a593Smuzhiyunelse 159*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_linuxfb=OFF 160*4882a593Smuzhiyunendif 161*4882a593Smuzhiyun 162*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_XCB),y) 163*4882a593SmuzhiyunQT6BASE_CONF_OPTS += \ 164*4882a593Smuzhiyun -DFEATURE_xcb=ON \ 165*4882a593Smuzhiyun -DFEATURE_xcb_xlib=ON \ 166*4882a593Smuzhiyun -DFEATURE_xkbcommon=ON \ 167*4882a593Smuzhiyun -DFEATURE_xkbcommon_x11=ON 168*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += \ 169*4882a593Smuzhiyun libxcb \ 170*4882a593Smuzhiyun libxkbcommon \ 171*4882a593Smuzhiyun xcb-util-wm \ 172*4882a593Smuzhiyun xcb-util-image \ 173*4882a593Smuzhiyun xcb-util-keysyms \ 174*4882a593Smuzhiyun xcb-util-renderutil \ 175*4882a593Smuzhiyun xlib_libX11 176*4882a593Smuzhiyunelse 177*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_xcb=OFF 178*4882a593Smuzhiyunendif 179*4882a593Smuzhiyun 180*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_HARFBUZZ),y) 181*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_harfbuzz=ON 182*4882a593Smuzhiyunifeq ($(BR2_TOOLCHAIN_HAS_SYNC_4),y) 183*4882a593Smuzhiyun# system harfbuzz in case __sync for 4 bytes is supported 184*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DQT_USE_BUNDLED_BundledHarfbuzz=OFF 185*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += harfbuzz 186*4882a593Smuzhiyunelse #BR2_TOOLCHAIN_HAS_SYNC_4 187*4882a593Smuzhiyun# qt harfbuzz otherwise (using QAtomic instead) 188*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DQT_USE_BUNDLED_BundledHarfbuzz=ON 189*4882a593SmuzhiyunQT6BASE_LICENSE += , MIT (harfbuzz) 190*4882a593SmuzhiyunQT6BASE_LICENSE_FILES += src/3rdparty/harfbuzz-ng/COPYING 191*4882a593Smuzhiyunendif 192*4882a593Smuzhiyunelse 193*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_harfbuzz=OFF 194*4882a593Smuzhiyunendif 195*4882a593Smuzhiyun 196*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_PNG),y) 197*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_png=ON -DFEATURE_system_png=ON 198*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += libpng 199*4882a593Smuzhiyunelse 200*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_png=OFF 201*4882a593Smuzhiyunendif 202*4882a593Smuzhiyun 203*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_GIF),y) 204*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_gif=ON 205*4882a593Smuzhiyunelse 206*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_gif=OFF 207*4882a593Smuzhiyunendif 208*4882a593Smuzhiyun 209*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_JPEG),y) 210*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_jpeg=ON 211*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += jpeg 212*4882a593Smuzhiyunelse 213*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_jpeg=OFF 214*4882a593Smuzhiyunendif 215*4882a593Smuzhiyun 216*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_PRINTSUPPORT),y) 217*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_printsupport=ON 218*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_CUPS),y) 219*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_cups=ON 220*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += cups 221*4882a593Smuzhiyunelse 222*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_cups=OFF 223*4882a593Smuzhiyunendif 224*4882a593Smuzhiyunelse 225*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_printsupport=OFF 226*4882a593Smuzhiyunendif 227*4882a593Smuzhiyun 228*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBDRM),y) 229*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_kms=ON 230*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += libdrm 231*4882a593Smuzhiyunelse 232*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_kms=OFF 233*4882a593Smuzhiyunendif 234*4882a593Smuzhiyun 235*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_FONTCONFIG),y) 236*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_fontconfig=ON 237*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += fontconfig 238*4882a593Smuzhiyunelse 239*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_fontconfig=OFF 240*4882a593Smuzhiyunendif 241*4882a593Smuzhiyun 242*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_WIDGETS),y) 243*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_widgets=ON 244*4882a593Smuzhiyun 245*4882a593Smuzhiyun# only enable gtk support if libgtk3 X11 backend is enabled 246*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBGTK3)$(BR2_PACKAGE_LIBGTK3_X11),yy) 247*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_gtk3=ON 248*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += libgtk3 249*4882a593Smuzhiyunelse 250*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_gtk3=OFF 251*4882a593Smuzhiyunendif 252*4882a593Smuzhiyun 253*4882a593Smuzhiyunelse 254*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_widgets=OFF 255*4882a593Smuzhiyunendif 256*4882a593Smuzhiyun 257*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBINPUT),y) 258*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_libinput=ON 259*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += libinput 260*4882a593Smuzhiyunelse 261*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_libinput=OFF 262*4882a593Smuzhiyunendif 263*4882a593Smuzhiyun 264*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_TSLIB),y) 265*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_tslib=ON 266*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += tslib 267*4882a593Smuzhiyunelse 268*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_tslib=OFF 269*4882a593Smuzhiyunendif 270*4882a593Smuzhiyun 271*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_EGLFS),y) 272*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_egl=ON -DFEATURE_eglfs=ON 273*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += libegl libgbm 274*4882a593Smuzhiyunelse 275*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_eglfs=OFF 276*4882a593Smuzhiyunendif 277*4882a593Smuzhiyun 278*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_OPENGL_DESKTOP),y) 279*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_opengl=ON -DFEATURE_opengl_desktop=ON 280*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += libgl 281*4882a593Smuzhiyunelse ifeq ($(BR2_PACKAGE_QT6BASE_OPENGL_ES2),y) 282*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_opengl=ON -DFEATURE_opengles2=ON \ 283*4882a593Smuzhiyun -DFEATURE_opengl_desktop=OFF 284*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += libgles 285*4882a593Smuzhiyunelse 286*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_opengl=OFF -DINPUT_opengl=no 287*4882a593Smuzhiyunendif 288*4882a593Smuzhiyun 289*4882a593Smuzhiyunelse 290*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_gui=OFF 291*4882a593Smuzhiyunendif 292*4882a593Smuzhiyun 293*4882a593SmuzhiyunQT6BASE_DEFAULT_QPA = $(call qstrip,$(BR2_PACKAGE_QT6BASE_DEFAULT_QPA)) 294*4882a593SmuzhiyunQT6BASE_CONF_OPTS += $(if $(QT6BASE_DEFAULT_QPA),-DQT_QPA_DEFAULT_PLATFORM=$(QT6BASE_DEFAULT_QPA)) 295*4882a593Smuzhiyun 296*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENSSL),y) 297*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DINPUT_openssl=yes 298*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += openssl 299*4882a593Smuzhiyunelse 300*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DINPUT_openssl=no 301*4882a593Smuzhiyunendif 302*4882a593Smuzhiyun 303*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_CONCURRENT),y) 304*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_concurrent=ON 305*4882a593Smuzhiyunelse 306*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_concurrent=OFF 307*4882a593Smuzhiyunendif 308*4882a593Smuzhiyun 309*4882a593Smuzhiyun# We need host-qt6base with D-Bus support, otherwise: "the tool 310*4882a593Smuzhiyun# "Qt6::qdbuscpp2xml" was not found in the Qt6DBusTools package." 311*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_DBUS),y) 312*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_dbus=ON -DINPUT_dbus=linked 313*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += dbus 314*4882a593SmuzhiyunHOST_QT6BASE_CONF_OPTS += -DFEATURE_dbus=ON 315*4882a593SmuzhiyunHOST_QT6BASE_DEPENDENCIES += host-dbus 316*4882a593Smuzhiyunelse 317*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_dbus=OFF 318*4882a593SmuzhiyunHOST_QT6BASE_CONF_OPTS += -DFEATURE_dbus=OFF 319*4882a593Smuzhiyunendif 320*4882a593Smuzhiyun 321*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_NETWORK),y) 322*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_network=ON 323*4882a593Smuzhiyunelse 324*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_network=OFF 325*4882a593Smuzhiyunendif 326*4882a593Smuzhiyun 327*4882a593Smuzhiyun# Qt6 SQL Plugins 328*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_SQL),y) 329*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_sql=ON 330*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_sql_db2=OFF -DFEATURE_sql_ibase=OFF -DFEATURE_sql_oci=OFF -DFEATURE_sql_odbc=OFF 331*4882a593Smuzhiyun 332*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_MYSQL),y) 333*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_sql_mysql=ON 334*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += mysql 335*4882a593Smuzhiyunelse 336*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_sql_mysql=OFF 337*4882a593Smuzhiyunendif 338*4882a593Smuzhiyun 339*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_PSQL),y) 340*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_sql_psql=ON 341*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += postgresql 342*4882a593Smuzhiyunelse 343*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_sql_psql=OFF 344*4882a593Smuzhiyunendif 345*4882a593Smuzhiyun 346*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_SQLITE),y) 347*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_sql_sqlite=ON -DFEATURE_system_sqlite=ON 348*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += sqlite 349*4882a593Smuzhiyunelse 350*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_sql_sqlite=OFF 351*4882a593Smuzhiyunendif 352*4882a593Smuzhiyun 353*4882a593Smuzhiyunelse 354*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_sql=OFF 355*4882a593Smuzhiyunendif 356*4882a593Smuzhiyun 357*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_SYSLOG),y) 358*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_syslog=ON 359*4882a593Smuzhiyunelse 360*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_syslog=OFF 361*4882a593Smuzhiyunendif 362*4882a593Smuzhiyun 363*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SYSTEMD),y) 364*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_journald=ON 365*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += systemd 366*4882a593Smuzhiyunelse 367*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_journald=OFF 368*4882a593Smuzhiyunendif 369*4882a593Smuzhiyun 370*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_TEST),y) 371*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_testlib=ON 372*4882a593Smuzhiyunelse 373*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_testlib=OFF 374*4882a593Smuzhiyunendif 375*4882a593Smuzhiyun 376*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_XML),y) 377*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_xml=ON 378*4882a593Smuzhiyunelse 379*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_xml=OFF 380*4882a593Smuzhiyunendif 381*4882a593Smuzhiyun 382*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_ZSTD),y) 383*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_zstd=ON 384*4882a593SmuzhiyunQT6BASE_DEPENDENCIES += zstd 385*4882a593Smuzhiyunelse 386*4882a593SmuzhiyunQT6BASE_CONF_OPTS += -DFEATURE_zstd=OFF 387*4882a593Smuzhiyunendif 388*4882a593Smuzhiyun 389*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_QT6BASE_EXAMPLES),y) 390*4882a593SmuzhiyunQT6BASE_CONF_OPTS += \ 391*4882a593Smuzhiyun -DINSTALL_EXAMPLESDIR=lib/qt/examples \ 392*4882a593Smuzhiyun -DQT_BUILD_EXAMPLES=ON 393*4882a593Smuzhiyunendif 394*4882a593Smuzhiyun 395*4882a593Smuzhiyun$(eval $(cmake-package)) 396*4882a593Smuzhiyun$(eval $(host-cmake-package)) 397