mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
build: add configure test for POSIX shm for the sake of vo_kitty
Android's POSIX coverage is pretty sketchy but not like we have a choice.
This commit is contained in:
@@ -962,6 +962,11 @@ if features['sixel']
|
||||
sources += files('video/out/vo_sixel.c')
|
||||
endif
|
||||
|
||||
features += {'posix_shm': false}
|
||||
if features['posix']
|
||||
features += {'posix_shm': cc.has_function('shm_open', prefix: '#include <sys/mman.h>')}
|
||||
endif
|
||||
|
||||
spirv_cross = dependency('spirv-cross-c-shared', required: get_option('spirv-cross'))
|
||||
features += {'spirv-cross': spirv_cross.found()}
|
||||
if features['spirv-cross']
|
||||
|
||||
Reference in New Issue
Block a user