mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-29 20:58:16 +00:00
wireshark: fix qt5 build
Add qttools-native to PACKAGECONFIG[qt5] DEPENDS to resolve missing Qt5LinguistTools build error. Add qtmultimedia to PACKAGECONFIG[qt5] DEPENDS to resolve missing Qt5Multimedia build error. Add qtsvg to PACKAGECONFIG[qt5] DEPENDS to resolve missing Qt5Svg build error. Inherit cmake_qt5 when qt5 is in PACKAGECONFIG to resolve get_target_property() called with non-existent target "Qt5::qmake" build error. Automatically add qt5 to PACKAGECONFIG when meta-qt5 is in the build since adding qt5 via a .bbappend won't satisfy the conditional inherit cmake_qt5. The poppler recipe does exactly this. Signed-off-by: George McCollister <george.mccollister@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
a0c79bfccb
commit
b750c405c7
@ -19,7 +19,7 @@ PE = "1"
|
|||||||
|
|
||||||
inherit cmake pkgconfig python3native perlnative upstream-version-is-even
|
inherit cmake pkgconfig python3native perlnative upstream-version-is-even
|
||||||
|
|
||||||
PACKAGECONFIG ?= "libpcap gnutls libnl libcap sbc"
|
PACKAGECONFIG ?= "libpcap gnutls libnl libcap sbc ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '', d)}"
|
||||||
|
|
||||||
PACKAGECONFIG_class-native = "libpcap gnutls ssl libssh"
|
PACKAGECONFIG_class-native = "libpcap gnutls ssl libssh"
|
||||||
|
|
||||||
@ -41,7 +41,9 @@ PACKAGECONFIG[lz4] = "-DENABLE_LZ4=ON,-DENABLE_LZ4=OFF, lz4"
|
|||||||
|
|
||||||
# these next two options require addional layers
|
# these next two options require addional layers
|
||||||
PACKAGECONFIG[c-ares] = "-DENABLE_CARES=ON,-DENABLE_CARES=OFF, c-ares"
|
PACKAGECONFIG[c-ares] = "-DENABLE_CARES=ON,-DENABLE_CARES=OFF, c-ares"
|
||||||
PACKAGECONFIG[qt5] = "-DENABLE_QT5=ON -DBUILD_wireshark=ON, -DENABLE_QT5=OFF -DBUILD_wireshark=OFF, qtbase"
|
PACKAGECONFIG[qt5] = "-DENABLE_QT5=ON -DBUILD_wireshark=ON, -DENABLE_QT5=OFF -DBUILD_wireshark=OFF, qttools-native qtmultimedia qtsvg"
|
||||||
|
|
||||||
|
inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'cmake_qt5', '', d)}
|
||||||
|
|
||||||
EXTRA_OECMAKE += "-DENABLE_NETLINK=ON \
|
EXTRA_OECMAKE += "-DENABLE_NETLINK=ON \
|
||||||
-DBUILD_mmdbresolve=OFF \
|
-DBUILD_mmdbresolve=OFF \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user