build: add subproject fallback for Pixman

Allows users to use a Meson subproject for Pixman.
This commit is contained in:
Simon Ser 2022-10-24 12:32:31 +02:00 committed by Simon Zeni
parent 1928d1ce9f
commit 6c33e5dc50
1 changed files with 4 additions and 1 deletions

View File

@ -128,7 +128,10 @@ drm = dependency('libdrm',
],
)
xkbcommon = dependency('xkbcommon')
pixman = dependency('pixman-1')
pixman = dependency('pixman-1',
fallback: 'pixman',
default_options: ['werror=false'],
)
math = cc.find_library('m')
rt = cc.find_library('rt')