mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
libinput: Add packageconfig for tests
Add packageconfig to control if tests are installed or not. Doing this allows the libcheck dependency to be optional. The packageconfig defaults to having tests enabled when PTEST_ENABLED == 1 to match the previous behavior (From OE-Core rev: d15b482a5858612c8c88c739b51de579945d7cb2) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b2585b54b1
commit
3c26d5181a
@@ -10,7 +10,7 @@ SECTION = "libs"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=bab4ac7dc1c10bc0fb037dc76c46ef8a"
|
||||
|
||||
DEPENDS = "libevdev udev mtdev libcheck"
|
||||
DEPENDS = "libevdev udev mtdev"
|
||||
|
||||
SRC_URI = "git://gitlab.freedesktop.org/libinput/libinput.git;protocol=https;branch=main \
|
||||
file://run-ptest \
|
||||
@@ -30,15 +30,15 @@ do_configure:append() {
|
||||
fi
|
||||
}
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
|
||||
PACKAGECONFIG[libwacom] = "-Dlibwacom=true,-Dlibwacom=false,libwacom"
|
||||
PACKAGECONFIG[gui] = "-Ddebug-gui=true,-Ddebug-gui=false,cairo gtk+3"
|
||||
PACKAGECONFIG[tests] = "-Dtests=true -Dinstall-tests=true,-Dtests=false -Dinstall-tests=false,libcheck"
|
||||
|
||||
UDEVDIR = "`pkg-config --variable=udevdir udev`"
|
||||
|
||||
EXTRA_OEMESON += "-Dudev-dir=${UDEVDIR} \
|
||||
-Ddocumentation=false \
|
||||
${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true -Dinstall-tests=true', '-Dtests=false -Dinstall-tests=false', d)} \
|
||||
-Dzshcompletiondir=no"
|
||||
|
||||
# package name changed in 1.8.1 upgrade: make sure package upgrades work
|
||||
|
||||
Reference in New Issue
Block a user