darwin: Locate libexpat with cc.find_library() rather than dependency()

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
Jeremy Huddleston Sequoia 2023-01-27 15:20:22 -08:00
parent 0b01986b0b
commit f4b698c0d3

View file

@ -29,7 +29,12 @@ wayland_util_dep = declare_dependency(
if get_option('scanner')
# wayland-scanner
scanner_deps = [ dependency('expat') ]
if host_machine.system() == 'darwin'
scanner_deps = [ cc.find_library('expat') ]
else
scanner_deps = [ dependency('expat') ]
endif
scanner_args = [ '-include', 'config.h' ]
if get_option('dtd_validation')