1config BR2_PACKAGE_LIBJXL
2	bool "libjxl"
3	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # highway
4	depends on BR2_TOOLCHAIN_HAS_ATOMIC # highway
5	depends on BR2_TOOLCHAIN_HAS_THREADS
6	depends on BR2_INSTALL_LIBSTDCPP # highway
7	# libjxl fail to link statically due to libatomic issue
8	depends on !BR2_STATIC_LIBS
9	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_81426
10	select BR2_HOST_CMAKE_AT_LEAST_3_19
11	select BR2_PACKAGE_BROTLI
12	select BR2_PACKAGE_HIGHWAY
13	select BR2_PACKAGE_LCMS2
14	help
15	  libjxl is the reference implementation of JPEG XL (encoder
16	  and decoder).
17
18	  https://github.com/libjxl/libjxl
19
20comment "libjxl needs a toolchain with C++, threads, gcc >= 7, dynamic library"
21	depends on BR2_TOOLCHAIN_HAS_ATOMIC
22	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_81426
23	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \
24		!BR2_INSTALL_LIBSTDCPP || \
25		!BR2_TOOLCHAIN_HAS_THREADS || \
26		BR2_STATIC_LIBS
27