William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 1 | libsystemd = dependency('libsystemd') |
| 2 | |
| 3 | sdeventplus = 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 III | 2d8f8cc | 2019-03-28 03:27:50 -0700 | [diff] [blame] | 21 | version: meson.project_version(), |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 22 | dependencies: libsystemd, |
| 23 | install: true) |
| 24 | |
| 25 | import('pkgconfig').generate( |
| 26 | name: 'sdeventplus', |
| 27 | description: 'C++ systemd event wrapper', |
| 28 | version: meson.project_version(), |
| 29 | libraries: [sdeventplus], |
| 30 | ) |
| 31 | |
| 32 | install_headers( |
| 33 | 'sdeventplus/clock.hpp', |
| 34 | 'sdeventplus/event.hpp', |
| 35 | 'sdeventplus/exception.hpp', |
| 36 | subdir: 'sdeventplus') |
| 37 | |
| 38 | install_headers( |
| 39 | 'sdeventplus/internal/sdevent.hpp', |
| 40 | 'sdeventplus/internal/sdref.hpp', |
| 41 | 'sdeventplus/internal/utils.hpp', |
| 42 | subdir: 'sdeventplus/internal') |
| 43 | |
| 44 | install_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 | |
| 53 | install_headers( |
| 54 | 'sdeventplus/test/sdevent.hpp', |
| 55 | subdir: 'sdeventplus/test') |
| 56 | |
| 57 | install_headers( |
| 58 | 'sdeventplus/utility/timer.hpp', |
| 59 | subdir: 'sdeventplus/utility') |