Miguel Osorio | 03f2e23 | 2019-09-17 19:44:37 -0700 | [diff] [blame] | 1 | # Copyright lowRISC contributors. |
| 2 | # Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | |
| 5 | libmpsse = declare_dependency( |
Miguel Osorio | 03f2e23 | 2019-09-17 19:44:37 -0700 | [diff] [blame] | 6 | link_with: static_library( |
| 7 | 'mpsse', |
| 8 | sources: [ |
Miguel Young de la Sota | 1d0f8eb | 2019-11-20 14:39:40 -0600 | [diff] [blame] | 9 | 'mpsse/mpsse.c', |
| 10 | 'mpsse/support.c' |
Miguel Osorio | 03f2e23 | 2019-09-17 19:44:37 -0700 | [diff] [blame] | 11 | ], |
Miguel Young de la Sota | 1d0f8eb | 2019-11-20 14:39:40 -0600 | [diff] [blame] | 12 | # 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 Sota | 3fbb28a | 2019-10-16 15:15:07 -0500 | [diff] [blame] | 15 | c_args: [ |
Sam Elliott | b0a3ba5 | 2020-10-15 13:40:03 +0100 | [diff] [blame] | 16 | '-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 Sota | 3fbb28a | 2019-10-16 15:15:07 -0500 | [diff] [blame] | 20 | ], |
Miguel Osorio | 03f2e23 | 2019-09-17 19:44:37 -0700 | [diff] [blame] | 21 | dependencies: [ |
| 22 | dependency('libftdi1', native: true), |
| 23 | dependency('libusb-1.0', native: true), |
| 24 | ], |
| 25 | native: true, |
| 26 | ), |
| 27 | ) |