Brandon Kim | 0d13663 | 2022-07-14 00:06:09 +0000 | [diff] [blame] | 1 | ipmiblob_incs = include_directories('.') |
| 2 | |
| 3 | install_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 | |
| 12 | install_headers( |
| 13 | 'ipmiblob/internal/sys.hpp', |
| 14 | 'ipmiblob/internal/sys_interface.hpp', |
| 15 | subdir: 'ipmiblob/internal') |
| 16 | |
| 17 | install_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 | |
| 23 | ipmiblob_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 | |
| 36 | ipmiblob = declare_dependency( |
| 37 | include_directories: ipmiblob_incs, |
| 38 | link_with: ipmiblob_lib |
| 39 | ) |
| 40 | |
| 41 | import('pkgconfig').generate( |
| 42 | ipmiblob_lib, |
| 43 | name: 'ipmiblob', |
| 44 | version: meson.project_version(), |
| 45 | description: 'ipmiblob') |