blob: cc1a7e988a3afa56db4643fffe25294ee89ca4bc [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 Tuca170bb2023-11-06 00:26:43 -08006 dependency('stdplus'),
Willy Tubaa8d402021-12-07 19:44:31 -08007 binaryblobproto_dep,
William A. Kennington IIIa191c672022-02-24 10:19:30 -08008 ])
Willy Tubaa8d402021-12-07 19:44:31 -08009
William A. Kennington IIIa191c672022-02-24 10:19:30 -080010binarystoreblob_lib = library(
Willy Tue814a0b2022-02-16 13:01:25 -080011 'binarystoreblob',
Willy Tubaa8d402021-12-07 19:44:31 -080012 'binarystore.cpp',
13 'sys.cpp',
14 'sys_file_impl.cpp',
15 'handler.cpp',
Willy Tubaa8d402021-12-07 19:44:31 -080016 implicit_include_directories: false,
17 dependencies: binarystoreblob_pre,
William A. Kennington IIIf3aa37a2022-02-25 09:04:33 -080018 version: meson.project_version(),
William A. Kennington IIIa191c672022-02-24 10:19:30 -080019 install: true)
Willy Tubaa8d402021-12-07 19:44:31 -080020
21binarystoreblob_dep = declare_dependency(
22 link_with: binarystoreblob_lib,
William A. Kennington IIIa191c672022-02-24 10:19:30 -080023 dependencies: binarystoreblob_pre)
Willy Tubaa8d402021-12-07 19:44:31 -080024
William A. Kennington IIIa191c672022-02-24 10:19:30 -080025shared_module(
Willy Tue814a0b2022-02-16 13:01:25 -080026 'binarystore',
27 'main.cpp',
28 implicit_include_directories: false,
29 dependencies: binarystoreblob_dep,
30 install: true,
William A. Kennington IIIa191c672022-02-24 10:19:30 -080031 install_dir: get_option('libdir') / 'blob-ipmid')
Willy Tue814a0b2022-02-16 13:01:25 -080032
Willy Tu7f107802023-11-06 23:05:25 -080033if get_option('blobtool').allowed()
Willy Tubaa8d402021-12-07 19:44:31 -080034 executable(
35 'blobtool',
36 'blobtool.cpp',
37 implicit_include_directories: false,
38 dependencies: binarystoreblob_dep,
William A. Kennington IIIa191c672022-02-24 10:19:30 -080039 install: true)
Willy Tubaa8d402021-12-07 19:44:31 -080040endif