blob: 7cd2e92e05a3fdf0b146980e8c9f0edc91d51bd7 [file] [log] [blame]
William A. Kennington III8ec59e62019-04-03 13:38:17 -07001sdeventplus_deps = [
2 dependency('libsystemd'),
3 dependency('stdplus'),
4]
William A. Kennington IIId4b33e92018-12-04 17:22:05 -08005
William A. Kennington III8ec59e62019-04-03 13:38:17 -07006sdeventplus_headers = include_directories('.')
7
8sdeventplus_lib = library(
William A. Kennington IIId4b33e92018-12-04 17:22:05 -08009 'sdeventplus',
10 [
11 'sdeventplus/clock.cpp',
12 'sdeventplus/event.cpp',
13 'sdeventplus/exception.cpp',
14 'sdeventplus/internal/sdevent.cpp',
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080015 'sdeventplus/source/base.cpp',
16 'sdeventplus/source/child.cpp',
17 'sdeventplus/source/event.cpp',
18 'sdeventplus/source/io.cpp',
19 'sdeventplus/source/signal.cpp',
20 'sdeventplus/source/time.cpp',
William A. Kennington III5457dae2019-04-03 03:06:57 -070021 'sdeventplus/utility/timer.cpp',
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080022 ],
William A. Kennington III8ec59e62019-04-03 13:38:17 -070023 include_directories: sdeventplus_headers,
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080024 implicit_include_directories: false,
William A. Kennington III2d8f8cc2019-03-28 03:27:50 -070025 version: meson.project_version(),
William A. Kennington III8ec59e62019-04-03 13:38:17 -070026 dependencies: sdeventplus_deps,
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080027 install: true)
28
William A. Kennington III8ec59e62019-04-03 13:38:17 -070029sdeventplus = declare_dependency(
30 dependencies: sdeventplus_deps,
31 include_directories: sdeventplus_headers,
32 link_with: sdeventplus_lib)
33
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080034import('pkgconfig').generate(
35 name: 'sdeventplus',
36 description: 'C++ systemd event wrapper',
37 version: meson.project_version(),
William A. Kennington III5457dae2019-04-03 03:06:57 -070038 libraries: sdeventplus)
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080039
40install_headers(
41 'sdeventplus/clock.hpp',
42 'sdeventplus/event.hpp',
43 'sdeventplus/exception.hpp',
44 subdir: 'sdeventplus')
45
46install_headers(
47 'sdeventplus/internal/sdevent.hpp',
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080048 'sdeventplus/internal/utils.hpp',
49 subdir: 'sdeventplus/internal')
50
51install_headers(
52 'sdeventplus/source/base.hpp',
53 'sdeventplus/source/child.hpp',
54 'sdeventplus/source/event.hpp',
55 'sdeventplus/source/io.hpp',
56 'sdeventplus/source/signal.hpp',
57 'sdeventplus/source/time.hpp',
58 subdir: 'sdeventplus/source')
59
60install_headers(
61 'sdeventplus/test/sdevent.hpp',
62 subdir: 'sdeventplus/test')
63
64install_headers(
65 'sdeventplus/utility/timer.hpp',
66 subdir: 'sdeventplus/utility')