blob: 9ac58767c5fd7a848c3a2e702d4b888513dbd192 [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 Liufc025e12021-11-09 19:29:12 +080013 '../utils.cpp',
George Liucc742332021-10-20 16:25:55 +080014 ]
15
George Liu073a6532021-10-25 14:40:03 +080016phosphor_logging_dep = dependency(
17 'phosphor-logging',
18 fallback: ['phosphor-logging', 'phosphor_logging_dep'],
19)
20
George Liucc742332021-10-20 16:25:55 +080021executable(
22 'phosphor-usb-code-update',
23 source,
George Liu073a6532021-10-25 14:40:03 +080024 include_directories: ['..'],
George Liucc742332021-10-20 16:25:55 +080025 dependencies: [
26 CLI11_dep,
George Liu073a6532021-10-25 14:40:03 +080027 phosphor_logging_dep,
George Liufc025e12021-11-09 19:29:12 +080028 sdbusplus_dep,
George Liucc742332021-10-20 16:25:55 +080029 ],
30 install: true,
31 install_dir: get_option('bindir')
32)