William A. Kennington III | 8ec59e6 | 2019-04-03 13:38:17 -0700 | [diff] [blame^] | 1 | sdeventplus_deps = [ |
| 2 | dependency('libsystemd'), |
| 3 | dependency('stdplus'), |
| 4 | ] |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 5 | |
William A. Kennington III | 8ec59e6 | 2019-04-03 13:38:17 -0700 | [diff] [blame^] | 6 | sdeventplus_headers = include_directories('.') |
| 7 | |
| 8 | sdeventplus_lib = library( |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 9 | 'sdeventplus', |
| 10 | [ |
| 11 | 'sdeventplus/clock.cpp', |
| 12 | 'sdeventplus/event.cpp', |
| 13 | 'sdeventplus/exception.cpp', |
| 14 | 'sdeventplus/internal/sdevent.cpp', |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 15 | '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 III | 5457dae | 2019-04-03 03:06:57 -0700 | [diff] [blame] | 21 | 'sdeventplus/utility/timer.cpp', |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 22 | ], |
William A. Kennington III | 8ec59e6 | 2019-04-03 13:38:17 -0700 | [diff] [blame^] | 23 | include_directories: sdeventplus_headers, |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 24 | implicit_include_directories: false, |
William A. Kennington III | 2d8f8cc | 2019-03-28 03:27:50 -0700 | [diff] [blame] | 25 | version: meson.project_version(), |
William A. Kennington III | 8ec59e6 | 2019-04-03 13:38:17 -0700 | [diff] [blame^] | 26 | dependencies: sdeventplus_deps, |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 27 | install: true) |
| 28 | |
William A. Kennington III | 8ec59e6 | 2019-04-03 13:38:17 -0700 | [diff] [blame^] | 29 | sdeventplus = declare_dependency( |
| 30 | dependencies: sdeventplus_deps, |
| 31 | include_directories: sdeventplus_headers, |
| 32 | link_with: sdeventplus_lib) |
| 33 | |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 34 | import('pkgconfig').generate( |
| 35 | name: 'sdeventplus', |
| 36 | description: 'C++ systemd event wrapper', |
| 37 | version: meson.project_version(), |
William A. Kennington III | 5457dae | 2019-04-03 03:06:57 -0700 | [diff] [blame] | 38 | libraries: sdeventplus) |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 39 | |
| 40 | install_headers( |
| 41 | 'sdeventplus/clock.hpp', |
| 42 | 'sdeventplus/event.hpp', |
| 43 | 'sdeventplus/exception.hpp', |
| 44 | subdir: 'sdeventplus') |
| 45 | |
| 46 | install_headers( |
| 47 | 'sdeventplus/internal/sdevent.hpp', |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 48 | 'sdeventplus/internal/utils.hpp', |
| 49 | subdir: 'sdeventplus/internal') |
| 50 | |
| 51 | install_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 | |
| 60 | install_headers( |
| 61 | 'sdeventplus/test/sdevent.hpp', |
| 62 | subdir: 'sdeventplus/test') |
| 63 | |
| 64 | install_headers( |
| 65 | 'sdeventplus/utility/timer.hpp', |
| 66 | subdir: 'sdeventplus/utility') |