blob: 1de91ec1c31524959bbdb65ec47ef96a1fa3d9ea [file] [log] [blame]
William A. Kennington IIIe0538842021-06-11 02:01:58 -07001phosphor_logging_includes = include_directories('include')
2
3phosphor_logging_gen = []
4
5subdir('include/phosphor-logging')
6
7phosphor_logging_deps = [
8 pdi_dep,
9 sdbusplus_dep,
10 systemd_dep,
11]
12
13phosphor_logging_lib = library(
William A. Kennington IIIc28601a2021-07-29 13:05:50 -070014 'phosphor_logging',
William A. Kennington IIIe0538842021-06-11 02:01:58 -070015 'elog.cpp',
Patrick Williamsb2a3aa22021-07-27 13:30:52 -050016 'lg2_logger.cpp',
William A. Kennington IIIe0538842021-06-11 02:01:58 -070017 'sdjournal.cpp',
18 phosphor_logging_gen,
19 implicit_include_directories: false,
20 include_directories: phosphor_logging_includes,
21 dependencies: [
22 phosphor_logging_deps,
23 conf_h_dep,
24 ],
25 version: meson.project_version(),
26 install: true,
27)
28
29phosphor_logging_reqs = []
30foreach dep : phosphor_logging_deps
31 if dep.type_name() == 'pkgconfig'
32 phosphor_logging_reqs += dep
33 endif
34endforeach
35
36import('pkgconfig').generate(
37 phosphor_logging_lib,
William A. Kennington IIIc28601a2021-07-29 13:05:50 -070038 name: 'phosphor-logging',
William A. Kennington IIIe0538842021-06-11 02:01:58 -070039 version: meson.project_version(),
40 requires: phosphor_logging_reqs,
41 description: 'Phosphor logging utilities',
42)
43
44phosphor_logging_dep = declare_dependency(
45 include_directories: phosphor_logging_includes,
46 link_with: phosphor_logging_lib,
47 sources: phosphor_logging_gen,
48 dependencies: phosphor_logging_deps,
49)
50