blob: e9eccbd93ca159a02cbb26383bc700425661a51b [file] [log] [blame]
Willy Tubcae9002021-09-12 13:58:04 -07001tools_inc = include_directories('.')
2
3updater_pre = [
Patrick Williams32e9ea12025-02-01 08:37:51 -05004 dependency('ipmiblob'),
5 dependency('pciaccess', fallback: ['pciaccess', 'dep_pciaccess']),
6 dependency('stdplus', fallback: ['stdplus', 'stdplus_dep']),
7 blobs_dep,
8 sys_dep,
9]
Willy Tubcae9002021-09-12 13:58:04 -070010
11updater_lib = static_library(
Patrick Williams32e9ea12025-02-01 08:37:51 -050012 'updater_lib',
13 'updater.cpp',
14 'handler.cpp',
15 'helper.cpp',
16 'bt.cpp',
17 'lpc.cpp',
18 'io.cpp',
19 'net.cpp',
20 'pci.cpp',
21 'pciaccess.cpp',
22 'p2a.cpp',
23 'progress.cpp',
24 conf_h,
25 dependencies: updater_pre,
26 include_directories: root_inc,
27)
Willy Tubcae9002021-09-12 13:58:04 -070028
29updater_dep = declare_dependency(
Patrick Williams32e9ea12025-02-01 08:37:51 -050030 dependencies: updater_pre,
31 include_directories: root_inc,
32 link_with: updater_lib,
33)
Willy Tubcae9002021-09-12 13:58:04 -070034
35executable(
Patrick Williams32e9ea12025-02-01 08:37:51 -050036 'burn_my_bmc',
37 'main.cpp',
38 implicit_include_directories: false,
39 dependencies: updater_dep,
40 include_directories: root_inc,
41 install: true,
42 install_dir: get_option('bindir'),
43)
Willy Tubcae9002021-09-12 13:58:04 -070044
Patrick Williamsacbf8752025-01-30 17:48:00 -050045if get_option('tests').allowed()
Patrick Williams32e9ea12025-02-01 08:37:51 -050046 subdir('test')
Willy Tubcae9002021-09-12 13:58:04 -070047endif