blob: 8c477adaf9b4b8d5e43ce2af3799156c02899126 [file] [log] [blame]
William A. Kennington IIIe0538842021-06-11 02:01:58 -07001phosphor_logging_gen += custom_target(
2 'elog-errors.hpp'.underscorify(),
3 input: [elog_gen, template_elog_gen],
4 output: 'elog-errors.hpp',
5 command: [
6 python_prog, '@INPUT0@',
7 '-t', '',
8 '-m', '@INPUT1@',
9 '-y', yamldir,
10 '-u', tool_dir + '/',
11 '-o', '@OUTPUT0@',
12 ],
13 install: true,
14 install_dir: get_option('includedir') / 'phosphor-logging',
15)
16
17install_headers(
18 'elog.hpp',
Patrick Williamsb2a3aa22021-07-27 13:30:52 -050019 'lg2.hpp',
William A. Kennington IIIe0538842021-06-11 02:01:58 -070020 'log.hpp',
21 'sdjournal.hpp',
22 subdir: 'phosphor-logging',
23)
24
25install_headers(
Patrick Williamsb2a3aa22021-07-27 13:30:52 -050026 'lg2/concepts.hpp',
27 'lg2/conversion.hpp',
28 'lg2/flags.hpp',
Patrick Williamscbdc2832021-08-02 16:31:04 -050029 'lg2/header.hpp',
Patrick Williamsb2a3aa22021-07-27 13:30:52 -050030 'lg2/level.hpp',
31 'lg2/logger.hpp',
Patrick Williamsa91a62b2021-08-28 14:17:55 -050032 'lg2/source_location.hpp',
Patrick Williamsb2a3aa22021-07-27 13:30:52 -050033 subdir: 'phosphor-logging/lg2',
34)
35
36install_headers(
William A. Kennington IIIe0538842021-06-11 02:01:58 -070037 'test/sdjournal_mock.hpp',
38 subdir: 'phosphor-logging/test',
39)