blob: a7d99cb45049f9015b202bc93979f53f3065aa86 [file] [log] [blame]
William A. Kennington IIId4b33e92018-12-04 17:22:05 -08001libsystemd = dependency('libsystemd')
William A. Kennington IIIe04cb032018-11-13 14:28:36 -08002stdplus = dependency('stdplus')
William A. Kennington IIId4b33e92018-12-04 17:22:05 -08003
4sdeventplus = library(
5 'sdeventplus',
6 [
7 'sdeventplus/clock.cpp',
8 'sdeventplus/event.cpp',
9 'sdeventplus/exception.cpp',
10 'sdeventplus/internal/sdevent.cpp',
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080011 'sdeventplus/source/base.cpp',
12 'sdeventplus/source/child.cpp',
13 'sdeventplus/source/event.cpp',
14 'sdeventplus/source/io.cpp',
15 'sdeventplus/source/signal.cpp',
16 'sdeventplus/source/time.cpp',
17 'sdeventplus/utility/timer.cpp'
18 ],
19 include_directories: includes,
20 implicit_include_directories: false,
William A. Kennington III2d8f8cc2019-03-28 03:27:50 -070021 version: meson.project_version(),
William A. Kennington IIIe04cb032018-11-13 14:28:36 -080022 dependencies: [
23 libsystemd,
24 stdplus
25 ],
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080026 install: true)
27
28import('pkgconfig').generate(
29 name: 'sdeventplus',
30 description: 'C++ systemd event wrapper',
31 version: meson.project_version(),
32 libraries: [sdeventplus],
33)
34
35install_headers(
36 'sdeventplus/clock.hpp',
37 'sdeventplus/event.hpp',
38 'sdeventplus/exception.hpp',
39 subdir: 'sdeventplus')
40
41install_headers(
42 'sdeventplus/internal/sdevent.hpp',
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080043 'sdeventplus/internal/utils.hpp',
44 subdir: 'sdeventplus/internal')
45
46install_headers(
47 'sdeventplus/source/base.hpp',
48 'sdeventplus/source/child.hpp',
49 'sdeventplus/source/event.hpp',
50 'sdeventplus/source/io.hpp',
51 'sdeventplus/source/signal.hpp',
52 'sdeventplus/source/time.hpp',
53 subdir: 'sdeventplus/source')
54
55install_headers(
56 'sdeventplus/test/sdevent.hpp',
57 subdir: 'sdeventplus/test')
58
59install_headers(
60 'sdeventplus/utility/timer.hpp',
61 subdir: 'sdeventplus/utility')