diff options
| author | Joshua Watt <JPEWhacker@gmail.com> | 2023-12-18 15:23:48 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-21 10:38:30 +0000 |
| commit | 3c26d5181a778c2d5ab6111578d41e4b9000c0b9 (patch) | |
| tree | 98c92af1298846ba3b7d7418e3a4984078ef14fe /meta | |
| parent | b2585b54b1aff0cb218be8f307c3069778c3a4bb (diff) | |
| download | poky-3c26d5181a778c2d5ab6111578d41e4b9000c0b9.tar.gz | |
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>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-graphics/wayland/libinput_1.24.0.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-graphics/wayland/libinput_1.24.0.bb b/meta/recipes-graphics/wayland/libinput_1.24.0.bb index 49a1da2b22..26ab1adaea 100644 --- a/meta/recipes-graphics/wayland/libinput_1.24.0.bb +++ b/meta/recipes-graphics/wayland/libinput_1.24.0.bb | |||
| @@ -10,7 +10,7 @@ SECTION = "libs" | |||
| 10 | LICENSE = "MIT" | 10 | LICENSE = "MIT" |
| 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=bab4ac7dc1c10bc0fb037dc76c46ef8a" | 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=bab4ac7dc1c10bc0fb037dc76c46ef8a" |
| 12 | 12 | ||
| 13 | DEPENDS = "libevdev udev mtdev libcheck" | 13 | DEPENDS = "libevdev udev mtdev" |
| 14 | 14 | ||
| 15 | SRC_URI = "git://gitlab.freedesktop.org/libinput/libinput.git;protocol=https;branch=main \ | 15 | SRC_URI = "git://gitlab.freedesktop.org/libinput/libinput.git;protocol=https;branch=main \ |
| 16 | file://run-ptest \ | 16 | file://run-ptest \ |
| @@ -30,15 +30,15 @@ do_configure:append() { | |||
| 30 | fi | 30 | fi |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | PACKAGECONFIG ??= "" | 33 | PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" |
| 34 | PACKAGECONFIG[libwacom] = "-Dlibwacom=true,-Dlibwacom=false,libwacom" | 34 | PACKAGECONFIG[libwacom] = "-Dlibwacom=true,-Dlibwacom=false,libwacom" |
| 35 | PACKAGECONFIG[gui] = "-Ddebug-gui=true,-Ddebug-gui=false,cairo gtk+3" | 35 | PACKAGECONFIG[gui] = "-Ddebug-gui=true,-Ddebug-gui=false,cairo gtk+3" |
| 36 | PACKAGECONFIG[tests] = "-Dtests=true -Dinstall-tests=true,-Dtests=false -Dinstall-tests=false,libcheck" | ||
| 36 | 37 | ||
| 37 | UDEVDIR = "`pkg-config --variable=udevdir udev`" | 38 | UDEVDIR = "`pkg-config --variable=udevdir udev`" |
| 38 | 39 | ||
| 39 | EXTRA_OEMESON += "-Dudev-dir=${UDEVDIR} \ | 40 | EXTRA_OEMESON += "-Dudev-dir=${UDEVDIR} \ |
| 40 | -Ddocumentation=false \ | 41 | -Ddocumentation=false \ |
| 41 | ${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true -Dinstall-tests=true', '-Dtests=false -Dinstall-tests=false', d)} \ | ||
| 42 | -Dzshcompletiondir=no" | 42 | -Dzshcompletiondir=no" |
| 43 | 43 | ||
| 44 | # package name changed in 1.8.1 upgrade: make sure package upgrades work | 44 | # package name changed in 1.8.1 upgrade: make sure package upgrades work |
