Skip to content

Commit 1483e99

Browse files
Johannes Osterholzerrhubert
authored andcommitted
libs::cairo: enable xlib backend
1 parent dca535f commit 1483e99

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

recipes/libs/cairo.yaml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
1-
inherit: [meson]
1+
inherit: [meson, cmake]
22

33
metaEnvironment:
44
PKG_VERSION: "1.18.4"
55
PKG_LICENSE: "LGPL-2.1-only OR MPL-1.1"
66

7+
Config:
8+
CAIRO_XLIB:
9+
type: bool
10+
default: false
11+
help: Enable X Window System output target
12+
713
depends:
814
- libs::glib-dev
915
- libs::libpng-dev
1016
- libs::pixman-dev
1117
- libs::zlib-dev
1218
- libs::freetype-dev
1319
- libs::fontconfig-dev
20+
21+
- if: "$(eq,${CAIRO_XLIB:-0},1)"
22+
depends:
23+
- graphics::xorg::proto::xorgproto-dev
24+
- libs::xorg::libX11-dev
25+
- libs::xorg::libXext-dev
26+
- libs::xorg::libXrender-dev
27+
1428
- use: []
1529
depends:
1630
- libs::glib-tgt
@@ -20,16 +34,29 @@ depends:
2034
- libs::freetype-tgt
2135
- libs::fontconfig-tgt
2236

37+
- if: "$(eq,${CAIRO_XLIB:-0},1)"
38+
depends:
39+
- libs::xorg::libX11-tgt
40+
- libs::xorg::libXext-tgt
41+
- libs::xorg::libXrender-tgt
42+
2343
checkoutSCM:
2444
scm: url
2545
url: https://www.cairographics.org/releases/cairo-${PKG_VERSION}.tar.xz
2646
digestSHA256: 445ed8208a6e4823de1226a74ca319d3600e83f6369f99b14265006599c32ccb
2747
stripComponents: 1
2848

2949
buildTools: [host-toolchain]
50+
buildVars: [CAIRO_XLIB]
3051
buildScript: |
52+
CONFIG=""
53+
if [[ ${CAIRO_XLIB:-0} == "1" ]]; then
54+
CONFIG="-Dxlib=enabled"
55+
export MESON_ADDITIONAL_PROPERTIES="ipc_rmid_deferred_release= false"
56+
fi
3157
mesonBuild $1 \
32-
-Dtests=disabled
58+
-Dtests=disabled \
59+
${CONFIG}
3360
3461
multiPackage:
3562
dev:

tests/buildall/recipes/buildall.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ multiPackage:
4848
- bsp::intel::microcode
4949
- utils::iucode-tool # uses cpuid which is not available on !x86
5050

51+
- name: libs::cairo-tgt
52+
environment:
53+
CAIRO_XLIB: "1"
54+
alias: libs::cairo-x-tgt
55+
5156
- name: libs::mesa3d-tgt
5257
alias: libs::mesa3d-intel-tgt
5358

0 commit comments

Comments
 (0)