Skip to content

Commit 8a4b8dc

Browse files
committed
libs::libdrm: add option to enable vmwgfx
1 parent 49ce91b commit 8a4b8dc

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

recipes/libs/libdrm.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ Config:
1313
help: Enable support for Intel's KMS API.
1414
disabled:
1515
help: Disable support for Intel's KMS API. (default)
16+
LIBDRM_VMWGFX:
17+
type: choice
18+
default: disabled
19+
choice:
20+
enabled:
21+
help: Enable support for vmgfx's KMS API.
22+
disabled:
23+
help: Disable support for vmgfx's KMS API. (default)
1624

1725
depends:
1826
- name: libs::xorg::libpciaccess-dev
@@ -31,7 +39,7 @@ checkoutSCM:
3139
digestSHA256: 45ba9983b51c896406a3d654de81d313b953b76e6391e2797073d543c5f617d5
3240
stripComponents: 1
3341

34-
buildVars: [LIBDRM_INTEL]
42+
buildVars: [LIBDRM_INTEL, LIBDRM_VMWGFX]
3543
buildScript: |
3644
mesonBuild $1 \
3745
-Dcairo-tests=disabled \
@@ -40,7 +48,7 @@ buildScript: |
4048
-Dradeon=disabled \
4149
-Damdgpu=disabled \
4250
-Dnouveau=disabled \
43-
-Dvmwgfx=disabled \
51+
-Dvmwgfx=${LIBDRM_VMWGFX} \
4452
-Domap=disabled \
4553
-Detnaviv=disabled \
4654
-Dexynos=disabled \

0 commit comments

Comments
 (0)