xref: /OK3568_Linux_fs/buildroot/package/qt6/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# based on src/corelib/global/qprocessordetection.h
2*4882a593Smuzhiyunconfig BR2_PACKAGE_QT6_ARCH_SUPPORTS
3*4882a593Smuzhiyun	bool
4*4882a593Smuzhiyun	# no support for ARMv4
5*4882a593Smuzhiyun	default y if BR2_ARM_CPU_ARMV5 || BR2_ARM_CPU_ARMV6 || BR2_ARM_CPU_ARMV7A || BR2_ARM_CPU_ARMV8A
6*4882a593Smuzhiyun	default y if BR2_i386
7*4882a593Smuzhiyun	default y if BR2_x86_64
8*4882a593Smuzhiyun	default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
9*4882a593Smuzhiyun	default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
10*4882a593Smuzhiyun	# sparc 32-bit is supposedly supported, but has issues due to
11*4882a593Smuzhiyun	# the need of libatomic
12*4882a593Smuzhiyun	default y if BR2_sparc64
13*4882a593Smuzhiyun	depends on BR2_USE_MMU
14*4882a593Smuzhiyun
15*4882a593Smuzhiyunconfig BR2_PACKAGE_QT6_GL_SUPPORTS
16*4882a593Smuzhiyun	bool "OpenGL supports"
17*4882a593Smuzhiyun	default y
18*4882a593Smuzhiyun	depends on BR2_PACKAGE_HAS_LIBGL || BR2_PACKAGE_HAS_LIBGLES
19*4882a593Smuzhiyun
20*4882a593Smuzhiyuncomment "qt6 needs a toolchain w/ C++, threads, wchar, dynamic library, gcc >= 8, host gcc >= 8"
21*4882a593Smuzhiyun	depends on !BR2_PACKAGE_QT5
22*4882a593Smuzhiyun	depends on BR2_PACKAGE_QT6_ARCH_SUPPORTS
23*4882a593Smuzhiyun	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || \
24*4882a593Smuzhiyun		!BR2_HOST_GCC_AT_LEAST_8 || !BR2_TOOLCHAIN_HAS_THREADS || \
25*4882a593Smuzhiyun		BR2_STATIC_LIBS || !BR2_USE_WCHAR
26*4882a593Smuzhiyun
27*4882a593Smuzhiyunmenuconfig BR2_PACKAGE_QT6
28*4882a593Smuzhiyun	bool "Qt6"
29*4882a593Smuzhiyun	depends on BR2_INSTALL_LIBSTDCPP
30*4882a593Smuzhiyun	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8
31*4882a593Smuzhiyun	depends on BR2_HOST_GCC_AT_LEAST_8
32*4882a593Smuzhiyun	depends on BR2_PACKAGE_QT6_ARCH_SUPPORTS
33*4882a593Smuzhiyun	depends on BR2_TOOLCHAIN_HAS_THREADS
34*4882a593Smuzhiyun	depends on !BR2_STATIC_LIBS
35*4882a593Smuzhiyun	depends on BR2_USE_WCHAR
36*4882a593Smuzhiyun	depends on !BR2_PACKAGE_QT5
37*4882a593Smuzhiyun	select BR2_PACKAGE_QT6BASE
38*4882a593Smuzhiyun	help
39*4882a593Smuzhiyun	  This option enables the Qt6 framework. Sub-options allow to
40*4882a593Smuzhiyun	  select which modules should be built.
41*4882a593Smuzhiyun
42*4882a593Smuzhiyun	  http://qt.io
43*4882a593Smuzhiyun
44*4882a593Smuzhiyunif BR2_PACKAGE_QT6
45*4882a593Smuzhiyun
46*4882a593Smuzhiyunsource "package/qt6/qt6base/Config.in"
47*4882a593Smuzhiyunsource "package/qt6/qt6serialbus/Config.in"
48*4882a593Smuzhiyunsource "package/qt6/qt6serialport/Config.in"
49*4882a593Smuzhiyun
50*4882a593Smuzhiyunendif
51