Willy Tu | bcae900 | 2021-09-12 13:58:04 -0700 | [diff] [blame] | 1 | version_inc = include_directories('.') |
| 2 | |
| 3 | version_pre = declare_dependency( |
| 4 | include_directories: [root_inc, version_inc], |
| 5 | dependencies : [ |
| 6 | common_dep, |
| 7 | firmware_dep, |
| 8 | ]) |
| 9 | |
| 10 | version_lib = static_library( |
| 11 | 'versionblob', |
| 12 | 'version_handler.cpp', |
| 13 | 'version_handlers_builder.cpp', |
| 14 | implicit_include_directories: false, |
| 15 | dependencies: version_pre) |
| 16 | |
| 17 | |
| 18 | version_dep = declare_dependency( |
| 19 | link_with: version_lib, |
| 20 | dependencies: common_pre) |
| 21 | |
| 22 | shared_module( |
| 23 | 'versionblob', |
| 24 | 'main.cpp', |
| 25 | implicit_include_directories: false, |
| 26 | dependencies: [ |
| 27 | version_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 |