Fix qbt compilation errors in specific situation (#5895)

Add qt5-sql to the dependencies of qbt.
This commit is contained in:
M1A6I3L 2020-12-09 14:40:13 +08:00 committed by GitHub
parent b0249774ba
commit a5217b2901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -25,7 +25,7 @@ define Package/qBittorrent
CATEGORY:=Network
TITLE:=bittorrent client programmed in C++ / Qt
URL:=https://www.qbittorrent.org/
DEPENDS:=+qt5-core +qt5-network +qt5-xml +rblibtorrent
DEPENDS:=+qt5-core +qt5-network +qt5-sql +qt5-xml +rblibtorrent
endef
define Package/qBittorrent/description

View File

@ -58,6 +58,12 @@ define Package/qt5-network
DEPENDS+=+qt5-core +libopenssl
endef
define Package/qt5-sql
$(call Package/qt5/Default)
TITLE+=sql
DEPENDS+=+qt5-core
endef
define Package/qt5-xml
$(call Package/qt5/Default)
TITLE+=xml
@ -174,6 +180,11 @@ define Package/qt5-network/install
$(CP) $(PKG_BUILD_DIR)/qtbase/lib/libQt5Network.so* $(1)/usr/lib
endef
define Package/qt5-sql/install
$(INSTALL_DIR) $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/qtbase/lib/libQt5Sql.so* $(1)/usr/lib/
endef
define Package/qt5-xml/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/qtbase/lib/libQt5Xml.so* $(1)/usr/lib
@ -181,4 +192,5 @@ endef
$(eval $(call BuildPackage,qt5-core,+zlib,+libpcre2-16,+libdouble-conversion))
$(eval $(call BuildPackage,qt5-network))
$(eval $(call BuildPackage,qt5-sql))
$(eval $(call BuildPackage,qt5-xml))