George Liu | cc74233 | 2021-10-20 16:25:55 +0800 | [diff] [blame] | 1 | if cpp.has_header('CLI/CLI.hpp') |
| 2 | CLI11_dep = declare_dependency() |
| 3 | else |
| 4 | CLI11_dep = dependency( |
| 5 | 'CLI11', |
| 6 | fallback: [ 'CLI11', 'CLI11_dep' ], |
| 7 | ) |
| 8 | endif |
| 9 | |
| 10 | source = [ |
| 11 | 'usb_manager_main.cpp', |
George Liu | 073a653 | 2021-10-25 14:40:03 +0800 | [diff] [blame^] | 12 | 'usb_manager.cpp', |
George Liu | cc74233 | 2021-10-20 16:25:55 +0800 | [diff] [blame] | 13 | ] |
| 14 | |
George Liu | 073a653 | 2021-10-25 14:40:03 +0800 | [diff] [blame^] | 15 | phosphor_logging_dep = dependency( |
| 16 | 'phosphor-logging', |
| 17 | fallback: ['phosphor-logging', 'phosphor_logging_dep'], |
| 18 | ) |
| 19 | |
George Liu | cc74233 | 2021-10-20 16:25:55 +0800 | [diff] [blame] | 20 | executable( |
| 21 | 'phosphor-usb-code-update', |
| 22 | source, |
George Liu | 073a653 | 2021-10-25 14:40:03 +0800 | [diff] [blame^] | 23 | include_directories: ['..'], |
George Liu | cc74233 | 2021-10-20 16:25:55 +0800 | [diff] [blame] | 24 | dependencies: [ |
| 25 | CLI11_dep, |
George Liu | 073a653 | 2021-10-25 14:40:03 +0800 | [diff] [blame^] | 26 | phosphor_logging_dep, |
George Liu | cc74233 | 2021-10-20 16:25:55 +0800 | [diff] [blame] | 27 | ], |
| 28 | install: true, |
| 29 | install_dir: get_option('bindir') |
| 30 | ) |