mirror of
https://github.com/openwrt/video.git
synced 2025-12-21 17:04:37 +04:00
qt5base: introduce build config options, starting with support for inotify
This commit is contained in:
6
frameworks/qt5/qt5base/Config.in
Normal file
6
frameworks/qt5/qt5base/Config.in
Normal file
@@ -0,0 +1,6 @@
|
||||
config BUILD_qt5base-core_INOTIFY
|
||||
bool "Use native inotify support on Linux"
|
||||
depends on PACKAGE_qt5base-core
|
||||
default y
|
||||
help
|
||||
Compiles qt5's QFileSystemWatcher with support for inotify on Linux. Otherwise QFileSystemWatcher uses polling as fallback."
|
||||
@@ -56,6 +56,7 @@ PKG_CONFIG_DEPENDS:= \
|
||||
CONFIG_PACKAGE_qt5base-plugin-platforms-minimal \
|
||||
CONFIG_PACKAGE_qt5base-plugin-platforms-linuxfb \
|
||||
CONFIG_PACKAGE_qt5base-plugin-input-libinput \
|
||||
CONFIG_BUILD_qt5base-core_INOTIFY \
|
||||
# CONFIG_PACKAGE_qt5base-plugin-imageformats-png \
|
||||
# CONFIG_PACKAGE_qt5base-plugin-platforms-eglfs \
|
||||
# CONFIG_PACKAGE_qt5base-plugin-platforms-minimalegl \
|
||||
@@ -91,6 +92,10 @@ define Package/qt5base-core
|
||||
DEPENDS+=+libpthread +zlib +libzstd +libpcre2-16 +libstdcpp +librt +libdouble-conversion $(ICONV_DEPENDS) +PACKAGE_icu:icu #FIXME: do not include ICONV_DEPENDS if ICU is selected (though, that's only an issue when using GNU iconv)
|
||||
endef
|
||||
|
||||
define Package/qt5base-core/config
|
||||
source "$(SOURCE)/Config.in"
|
||||
endef
|
||||
|
||||
define Package/qt5base-concurrent
|
||||
$(call Package/qt5base/Default)
|
||||
TITLE+=concurrent
|
||||
@@ -352,7 +357,7 @@ define Build/Configure
|
||||
--doubleconversion=system \
|
||||
--glib=no \
|
||||
--eventfd=no \
|
||||
--inotify=no \
|
||||
--inotify=$(if $(CONFIG_BUILD_qt5base-core_INOTIFY),yes,no) \
|
||||
--iconv=$(if $(CONFIG_BUILD_NLS),$(if $(CONFIG_LIBC_USE_GLIBC)$(CONFIG_LIBC_USE_MUSL),posix)$(if $(CONFIG_LIBC_USE_UCLIBC),gnu),no) \
|
||||
--icu=$(if $(CONFIG_PACKAGE_icu),yes,no) \
|
||||
--pcre=system \
|
||||
|
||||
Reference in New Issue
Block a user