blob: a8917acf014bba461f1e431f319dafe144b11cb4 [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',
16 'binarystore.cpp',
17 'sys.cpp',
18 'sys_file_impl.cpp',
19 'handler.cpp',
20 src_pb,
21 implicit_include_directories: false,
22 dependencies: binarystoreblob_pre,
23 install: true,
24 install_dir: get_option('libdir') / 'blob-ipmid'
25)
26
27binarystoreblob_dep = declare_dependency(
28 link_with: binarystoreblob_lib,
29 dependencies: binarystoreblob_pre
30)
31
32if not get_option('blobtool').disabled()
33 executable(
34 'blobtool',
35 'blobtool.cpp',
36 implicit_include_directories: false,
37 dependencies: binarystoreblob_dep,
38 install: true
39 )
40endif