blob: 877ef83b03ab0631106a4e9166be0bc3a79195f2 [file] [log] [blame]
Willy Tubaa8d402021-12-07 19:44:31 -08001binarystoreblob_pre = declare_dependency(
William A. Kennington IIIa191c672022-02-24 10:19:30 -08002 include_directories: blobstore_includes,
Willy Tubaa8d402021-12-07 19:44:31 -08003 dependencies: [
William A. Kennington IIIa191c672022-02-24 10:19:30 -08004 dependency('phosphor-ipmi-blobs'),
5 dependency('phosphor-logging'),
Willy Tubaa8d402021-12-07 19:44:31 -08006 binaryblobproto_dep,
William A. Kennington IIIa191c672022-02-24 10:19:30 -08007 ])
Willy Tubaa8d402021-12-07 19:44:31 -08008
William A. Kennington IIIa191c672022-02-24 10:19:30 -08009binarystoreblob_lib = library(
Willy Tue814a0b2022-02-16 13:01:25 -080010 'binarystoreblob',
Willy Tubaa8d402021-12-07 19:44:31 -080011 'binarystore.cpp',
12 'sys.cpp',
13 'sys_file_impl.cpp',
14 'handler.cpp',
Willy Tubaa8d402021-12-07 19:44:31 -080015 implicit_include_directories: false,
16 dependencies: binarystoreblob_pre,
William A. Kennington IIIf3aa37a2022-02-25 09:04:33 -080017 version: meson.project_version(),
William A. Kennington IIIa191c672022-02-24 10:19:30 -080018 install: true)
Willy Tubaa8d402021-12-07 19:44:31 -080019
20binarystoreblob_dep = declare_dependency(
21 link_with: binarystoreblob_lib,
William A. Kennington IIIa191c672022-02-24 10:19:30 -080022 dependencies: binarystoreblob_pre)
Willy Tubaa8d402021-12-07 19:44:31 -080023
William A. Kennington IIIa191c672022-02-24 10:19:30 -080024shared_module(
Willy Tue814a0b2022-02-16 13:01:25 -080025 'binarystore',
26 'main.cpp',
27 implicit_include_directories: false,
28 dependencies: binarystoreblob_dep,
29 install: true,
William A. Kennington IIIa191c672022-02-24 10:19:30 -080030 install_dir: get_option('libdir') / 'blob-ipmid')
Willy Tue814a0b2022-02-16 13:01:25 -080031
Willy Tubaa8d402021-12-07 19:44:31 -080032if not get_option('blobtool').disabled()
33 executable(
34 'blobtool',
35 'blobtool.cpp',
36 implicit_include_directories: false,
37 dependencies: binarystoreblob_dep,
William A. Kennington IIIa191c672022-02-24 10:19:30 -080038 install: true)
Willy Tubaa8d402021-12-07 19:44:31 -080039endif