blob: 0de8e331e3cdf87ec29f9e1713ad3d5705ffea86 [file] [log] [blame]
George Liucc742332021-10-20 16:25:55 +08001if cpp.has_header('CLI/CLI.hpp')
2 CLI11_dep = declare_dependency()
3else
4 CLI11_dep = dependency(
5 'CLI11',
6 fallback: [ 'CLI11', 'CLI11_dep' ],
7 )
8endif
9
10source = [
11 'usb_manager_main.cpp',
George Liu073a6532021-10-25 14:40:03 +080012 'usb_manager.cpp',
George Liucc742332021-10-20 16:25:55 +080013 ]
14
George Liu073a6532021-10-25 14:40:03 +080015phosphor_logging_dep = dependency(
16 'phosphor-logging',
17 fallback: ['phosphor-logging', 'phosphor_logging_dep'],
18)
19
George Liucc742332021-10-20 16:25:55 +080020executable(
21 'phosphor-usb-code-update',
22 source,
George Liu073a6532021-10-25 14:40:03 +080023 include_directories: ['..'],
George Liucc742332021-10-20 16:25:55 +080024 dependencies: [
25 CLI11_dep,
George Liu073a6532021-10-25 14:40:03 +080026 phosphor_logging_dep,
George Liucc742332021-10-20 16:25:55 +080027 ],
28 install: true,
29 install_dir: get_option('bindir')
30)