blob: 7fec5edbfe6d7888456ff38d7e8c21052a999fdd [file] [log] [blame]
Willy Tubaa8d402021-12-07 19:44:31 -08001binarystoreblob_pre = declare_dependency(
2 include_directories: [
3 include_directories('.'),
4 blobstore_includes,
5 ],
6 dependencies: [
7 protobuf_dep,
8 ipmi_blob_dep,
9 phosphor_logging_dep,
10 binaryblobproto_dep,
11 ]
12)
13
14binarystoreblob_lib = library(
15 'binarystore',
Willy Tuac0b8442022-02-15 17:16:59 -080016 'main.cpp',
Willy Tubaa8d402021-12-07 19:44:31 -080017 'binarystore.cpp',
18 'sys.cpp',
19 'sys_file_impl.cpp',
20 'handler.cpp',
21 src_pb,
22 implicit_include_directories: false,
23 dependencies: binarystoreblob_pre,
24 install: true,
25 install_dir: get_option('libdir') / 'blob-ipmid'
26)
27
28binarystoreblob_dep = declare_dependency(
29 link_with: binarystoreblob_lib,
30 dependencies: binarystoreblob_pre
31)
32
33if not get_option('blobtool').disabled()
34 executable(
35 'blobtool',
36 'blobtool.cpp',
37 implicit_include_directories: false,
38 dependencies: binarystoreblob_dep,
39 install: true
40 )
41endif