blob: 29fd3b488a57c13e4c15fd27e69de33fcb3448dc [file] [log] [blame]
Willy Tubcae9002021-09-12 13:58:04 -07001tools_inc = include_directories('.')
2
3updater_pre = [
4 dependency('ipmiblob'),
5 dependency('pciaccess', fallback: ['pciaccess', 'dep_pciaccess']),
6 dependency('stdplus', fallback: ['stdplus', 'stdplus_dep']),
7 blobs_dep,
Patrick Williams41dedad2023-07-13 18:25:19 -05008 sys_dep]
Willy Tubcae9002021-09-12 13:58:04 -07009
10updater_lib = static_library(
11 'updater_lib',
12 'updater.cpp',
13 'handler.cpp',
14 'helper.cpp',
15 'bt.cpp',
16 'lpc.cpp',
17 'io.cpp',
18 'net.cpp',
19 'pci.cpp',
20 'pciaccess.cpp',
21 'p2a.cpp',
22 'progress.cpp',
Tim Lee2d57d522023-09-18 11:47:53 +080023 conf_h,
Willy Tubcae9002021-09-12 13:58:04 -070024 dependencies: updater_pre,
25 include_directories: root_inc)
26
27updater_dep = declare_dependency(
28 dependencies: updater_pre,
29 include_directories: root_inc,
30 link_with: updater_lib)
31
32executable(
33 'burn_my_bmc',
34 'main.cpp',
35 implicit_include_directories: false,
36 dependencies: updater_dep,
37 include_directories: root_inc,
38 install: true,
39 install_dir: get_option('bindir'))
40
41if not get_option('tests').disabled()
42 subdir('test')
43endif