blob: 62308262ceb01436b97f9794b59cc3f4c328c98d [file] [log] [blame]
Gaurav Gandhia49a3f72021-10-26 20:43:25 +00001log_inc = include_directories('.')
2
3log_pre = declare_dependency(
Patrick Williams32e9ea12025-02-01 08:37:51 -05004 include_directories: [root_inc, log_inc],
5 dependencies: [common_dep, firmware_dep],
6)
Gaurav Gandhia49a3f72021-10-26 20:43:25 +00007
8log_lib = static_library(
Patrick Williams32e9ea12025-02-01 08:37:51 -05009 'logblob',
10 'log_handler.cpp',
11 'log_handlers_builder.cpp',
12 implicit_include_directories: false,
13 dependencies: log_pre,
14)
Gaurav Gandhia49a3f72021-10-26 20:43:25 +000015
16
Patrick Williams32e9ea12025-02-01 08:37:51 -050017log_dep = declare_dependency(link_with: log_lib, dependencies: common_pre)
Gaurav Gandhia49a3f72021-10-26 20:43:25 +000018
19shared_module(
Patrick Williams32e9ea12025-02-01 08:37:51 -050020 'logblob',
21 'main.cpp',
22 implicit_include_directories: false,
23 dependencies: [log_dep, dependency('libipmid')],
24 install: true,
25 install_dir: get_option('libdir') / 'blob-ipmid',
26)
Gaurav Gandhia49a3f72021-10-26 20:43:25 +000027
Patrick Williamsacbf8752025-01-30 17:48:00 -050028if get_option('tests').allowed()
Patrick Williams32e9ea12025-02-01 08:37:51 -050029 subdir('test')
30endif