From e52eafaa781f3c0430c051461edff3a1638a8aab Mon Sep 17 00:00:00 2001 From: dragonmux Date: Mon, 4 Mar 2024 21:23:59 +0000 Subject: [PATCH] hosted/meson: Make sure that the dependencies not being found/buildable is non-fatal for BMDA+firmware builds and instead disables BMDA in that case --- src/platforms/hosted/meson.build | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/platforms/hosted/meson.build b/src/platforms/hosted/meson.build index 4374ee36673..2760b9dcba3 100644 --- a/src/platforms/hosted/meson.build +++ b/src/platforms/hosted/meson.build @@ -118,7 +118,9 @@ libusb = dependency( 'install_targets=false', 'docs=disabled', 'build_native=true', - ] + ], + required: not is_cross_build, + disabler: true, ) if build_machine.system() in ['windows', 'cygwin'] @@ -153,7 +155,9 @@ else 'ftdi_eeprom=disabled', #'python_bindings=disabled', 'build_native=true', - ] + ], + required: not is_cross_build, + disabler: true, ) bmda_sources += files('serial_unix.c') endif @@ -170,7 +174,9 @@ if build_machine.system() == 'linux' 'install_targets=false', 'with_libusb=false', 'build_native=true', - ] + ], + required: not is_cross_build, + disabler: true, ) else hidapi = dependency( @@ -182,7 +188,9 @@ else 'default_library=static', 'install_targets=false', 'build_native=true', - ] + ], + required: not is_cross_build, + disabler: true, ) endif