blob: eec32188e99d0510e58adde2a3dc5de482da6fd5 [file] [log] [blame]
William A. Kennington IIId4b33e92018-12-04 17:22:05 -08001libsystemd = dependency('libsystemd')
2
3sdeventplus = library(
4 'sdeventplus',
5 [
6 'sdeventplus/clock.cpp',
7 'sdeventplus/event.cpp',
8 'sdeventplus/exception.cpp',
9 'sdeventplus/internal/sdevent.cpp',
10 'sdeventplus/internal/sdref.cpp',
11 '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 IIId4b33e92018-12-04 17:22:05 -080022 dependencies: libsystemd,
23 install: true)
24
25import('pkgconfig').generate(
26 name: 'sdeventplus',
27 description: 'C++ systemd event wrapper',
28 version: meson.project_version(),
29 libraries: [sdeventplus],
30)
31
32install_headers(
33 'sdeventplus/clock.hpp',
34 'sdeventplus/event.hpp',
35 'sdeventplus/exception.hpp',
36 subdir: 'sdeventplus')
37
38install_headers(
39 'sdeventplus/internal/sdevent.hpp',
40 'sdeventplus/internal/sdref.hpp',
41 'sdeventplus/internal/utils.hpp',
42 subdir: 'sdeventplus/internal')
43
44install_headers(
45 'sdeventplus/source/base.hpp',
46 'sdeventplus/source/child.hpp',
47 'sdeventplus/source/event.hpp',
48 'sdeventplus/source/io.hpp',
49 'sdeventplus/source/signal.hpp',
50 'sdeventplus/source/time.hpp',
51 subdir: 'sdeventplus/source')
52
53install_headers(
54 'sdeventplus/test/sdevent.hpp',
55 subdir: 'sdeventplus/test')
56
57install_headers(
58 'sdeventplus/utility/timer.hpp',
59 subdir: 'sdeventplus/utility')