blob: 52f67330da8b47db5403ef3feb4b2b69ae4f941b [file] [log] [blame]
Brandon Kim0d136632022-07-14 00:06:09 +00001ipmiblob_incs = include_directories('.')
2
3install_headers(
4 'ipmiblob/crc.hpp',
5 'ipmiblob/blob_errors.hpp',
6 'ipmiblob/blob_interface.hpp',
7 'ipmiblob/blob_handler.hpp',
8 'ipmiblob/ipmi_interface.hpp',
9 'ipmiblob/ipmi_handler.hpp',
10 subdir: 'ipmiblob')
11
12install_headers(
13 'ipmiblob/internal/sys.hpp',
14 'ipmiblob/internal/sys_interface.hpp',
15 subdir: 'ipmiblob/internal')
16
17install_headers(
18 'ipmiblob/test/blob_interface_mock.hpp',
19 'ipmiblob/test/crc_mock.hpp',
20 'ipmiblob/test/ipmi_interface_mock.hpp',
21 subdir: 'ipmiblob/test')
22
23ipmiblob_lib = library(
24 'ipmiblob',
25 'ipmiblob/blob_handler.cpp',
26 'ipmiblob/crc.cpp',
27 'ipmiblob/ipmi_handler.cpp',
28 'ipmiblob/internal/sys.cpp',
29 include_directories : ipmiblob_incs,
30 implicit_include_directories: false,
31 version: meson.project_version(),
32 install: true,
33 install_dir: get_option('libdir')
34)
35
36ipmiblob = declare_dependency(
37 include_directories: ipmiblob_incs,
38 link_with: ipmiblob_lib
39)
40
41import('pkgconfig').generate(
42 ipmiblob_lib,
43 name: 'ipmiblob',
44 version: meson.project_version(),
45 description: 'ipmiblob')