diff options
author | Marek Vasut <marex@denx.de> | 2021-10-15 21:20:53 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-10-16 09:50:38 -0700 |
commit | c7d3daba60cf4fb0b89952dea4499708581f1861 (patch) | |
tree | f6e01f069e79205203b33b823fc4eaa562cc7a08 /meta-oe/recipes-devtools | |
parent | d44f564610779f661b0c0407d0b76737cdc825ed (diff) | |
download | meta-openembedded-contrib-c7d3daba60cf4fb0b89952dea4499708581f1861.tar.gz |
apitrace: Conditionally enable X11 support
In case DISTRO_FEATURES contain both x11 and opengl, enable X11 support
in apitrace, because all the requirements are satisfied.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools')
-rw-r--r-- | meta-oe/recipes-devtools/apitrace/apitrace_10.0.bb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/apitrace/apitrace_10.0.bb b/meta-oe/recipes-devtools/apitrace/apitrace_10.0.bb index 57ec1f8e01..eb8e0318ee 100644 --- a/meta-oe/recipes-devtools/apitrace/apitrace_10.0.bb +++ b/meta-oe/recipes-devtools/apitrace/apitrace_10.0.bb @@ -16,9 +16,11 @@ DEPENDS += "zlib libpng python3-native" inherit cmake +PACKAGECONFIG ??= " ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11', '', d)} " +PACKAGECONFIG[x11] = "-DENABLE_X11=ON,-DENABLE_X11=OFF,libx11" + EXTRA_OECMAKE += "\ -DENABLE_GUI=OFF \ - -DENABLE_X11=OFF \ -DENABLE_STATIC_LIBGCC=OFF \ -DENABLE_STATIC_LIBSTDCXX=OFF \ -DPython3_ROOT_DIR=/usr/bin/python3-native \ |