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 | |
| parent | d44f564610779f661b0c0407d0b76737cdc825ed (diff) | |
| download | meta-openembedded-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>
| -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" | |||
| 16 | 16 | ||
| 17 | inherit cmake | 17 | inherit cmake |
| 18 | 18 | ||
| 19 | PACKAGECONFIG ??= " ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11', '', d)} " | ||
| 20 | PACKAGECONFIG[x11] = "-DENABLE_X11=ON,-DENABLE_X11=OFF,libx11" | ||
| 21 | |||
| 19 | EXTRA_OECMAKE += "\ | 22 | EXTRA_OECMAKE += "\ |
| 20 | -DENABLE_GUI=OFF \ | 23 | -DENABLE_GUI=OFF \ |
| 21 | -DENABLE_X11=OFF \ | ||
| 22 | -DENABLE_STATIC_LIBGCC=OFF \ | 24 | -DENABLE_STATIC_LIBGCC=OFF \ |
| 23 | -DENABLE_STATIC_LIBSTDCXX=OFF \ | 25 | -DENABLE_STATIC_LIBSTDCXX=OFF \ |
| 24 | -DPython3_ROOT_DIR=/usr/bin/python3-native \ | 26 | -DPython3_ROOT_DIR=/usr/bin/python3-native \ |
