blob: 94637a1c896f8c94b7a3fe4f2805d09ec7e35bef [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 IIIa191c672022-02-24 10:19:30 -080017 install: true)
Willy Tubaa8d402021-12-07 19:44:31 -080018
19binarystoreblob_dep = declare_dependency(
20 link_with: binarystoreblob_lib,
William A. Kennington IIIa191c672022-02-24 10:19:30 -080021 dependencies: binarystoreblob_pre)
Willy Tubaa8d402021-12-07 19:44:31 -080022
William A. Kennington IIIa191c672022-02-24 10:19:30 -080023shared_module(
Willy Tue814a0b2022-02-16 13:01:25 -080024 'binarystore',
25 'main.cpp',
26 implicit_include_directories: false,
27 dependencies: binarystoreblob_dep,
28 install: true,
William A. Kennington IIIa191c672022-02-24 10:19:30 -080029 install_dir: get_option('libdir') / 'blob-ipmid')
Willy Tue814a0b2022-02-16 13:01:25 -080030
Willy Tubaa8d402021-12-07 19:44:31 -080031if not get_option('blobtool').disabled()
32 executable(
33 'blobtool',
34 'blobtool.cpp',
35 implicit_include_directories: false,
36 dependencies: binarystoreblob_dep,
William A. Kennington IIIa191c672022-02-24 10:19:30 -080037 install: true)
Willy Tubaa8d402021-12-07 19:44:31 -080038endif