Gaurav Gandhi | a49a3f7 | 2021-10-26 20:43:25 +0000 | [diff] [blame] | 1 | log_inc = include_directories('.') |
| 2 | |
| 3 | log_pre = declare_dependency( |
| 4 | include_directories: [root_inc, log_inc], |
| 5 | dependencies : [ |
| 6 | common_dep, |
| 7 | firmware_dep, |
| 8 | ]) |
| 9 | |
| 10 | log_lib = static_library( |
| 11 | 'logblob', |
| 12 | 'log_handler.cpp', |
| 13 | 'log_handlers_builder.cpp', |
| 14 | implicit_include_directories: false, |
| 15 | dependencies: log_pre) |
| 16 | |
| 17 | |
| 18 | log_dep = declare_dependency( |
| 19 | link_with: log_lib, |
| 20 | dependencies: common_pre) |
| 21 | |
| 22 | shared_module( |
| 23 | 'logblob', |
| 24 | 'main.cpp', |
| 25 | implicit_include_directories: false, |
| 26 | dependencies: [ |
| 27 | log_dep, |
| 28 | dependency('libipmid'), |
| 29 | ], |
| 30 | install: true, |
| 31 | install_dir: get_option('libdir') / 'blob-ipmid') |
| 32 | |
| 33 | if not get_option('tests').disabled() |
| 34 | subdir('test') |
| 35 | endif |