blob: 99cce571102d11089a687c4637065ea8c54cf9d6 [file] [log] [blame]
Miguel Osorio03f2e232019-09-17 19:44:37 -07001# Copyright lowRISC contributors.
2# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3# SPDX-License-Identifier: Apache-2.0
4
5libmpsse = declare_dependency(
Miguel Osorio03f2e232019-09-17 19:44:37 -07006 link_with: static_library(
7 'mpsse',
8 sources: [
Miguel Young de la Sota1d0f8eb2019-11-20 14:39:40 -06009 'mpsse/mpsse.c',
10 'mpsse/support.c'
Miguel Osorio03f2e232019-09-17 19:44:37 -070011 ],
Miguel Young de la Sota1d0f8eb2019-11-20 14:39:40 -060012 # libmpsse is vendored in, and as such does not conform to our include
13 # requirements. This -I argument allows libmpsse to use its existing
14 # includes.
Miguel Young de la Sota3fbb28a2019-10-16 15:15:07 -050015 c_args: [
Sam Elliottb0a3ba52020-10-15 13:40:03 +010016 '-I' + meson.source_root() + '/sw/host/vendor/mpsse',
17 # TODO: Remove this once https://github.com/lowRISC/opentitan/issues/3182
18 # is resolved.
19 '-Wno-error=deprecated-declarations',
Miguel Young de la Sota3fbb28a2019-10-16 15:15:07 -050020 ],
Miguel Osorio03f2e232019-09-17 19:44:37 -070021 dependencies: [
22 dependency('libftdi1', native: true),
23 dependency('libusb-1.0', native: true),
24 ],
25 native: true,
26 ),
27)