1version_inc = include_directories('.')
2
3version_pre = declare_dependency(
4  include_directories: [root_inc, version_inc],
5  dependencies : [
6    common_dep,
7    firmware_dep,
8  ])
9
10version_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
18version_dep = declare_dependency(
19  link_with: version_lib,
20  dependencies: common_pre)
21
22shared_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
33if not get_option('tests').disabled()
34  subdir('test')
35endif