Skip to content

Commit

Permalink
hosted/meson: Make sure that the dependencies not being found/buildab…
Browse files Browse the repository at this point in the history
…le is non-fatal for BMDA+firmware builds and instead disables BMDA in that case
  • Loading branch information
dragonmux committed Mar 4, 2024
1 parent b129cad commit e52eafa
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/platforms/hosted/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down Expand Up @@ -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
Expand All @@ -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(
Expand All @@ -182,7 +188,9 @@ else
'default_library=static',
'install_targets=false',
'build_native=true',
]
],
required: not is_cross_build,
disabler: true,
)
endif

Expand Down

0 comments on commit e52eafa

Please sign in to comment.