William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 1 | libsystemd = dependency('libsystemd') |
William A. Kennington III | e04cb03 | 2018-11-13 14:28:36 -0800 | [diff] [blame^] | 2 | stdplus = dependency('stdplus') |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 3 | |
| 4 | sdeventplus = library( |
| 5 | 'sdeventplus', |
| 6 | [ |
| 7 | 'sdeventplus/clock.cpp', |
| 8 | 'sdeventplus/event.cpp', |
| 9 | 'sdeventplus/exception.cpp', |
| 10 | 'sdeventplus/internal/sdevent.cpp', |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 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 | e04cb03 | 2018-11-13 14:28:36 -0800 | [diff] [blame^] | 22 | dependencies: [ |
| 23 | libsystemd, |
| 24 | stdplus |
| 25 | ], |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 26 | install: true) |
| 27 | |
| 28 | import('pkgconfig').generate( |
| 29 | name: 'sdeventplus', |
| 30 | description: 'C++ systemd event wrapper', |
| 31 | version: meson.project_version(), |
| 32 | libraries: [sdeventplus], |
| 33 | ) |
| 34 | |
| 35 | install_headers( |
| 36 | 'sdeventplus/clock.hpp', |
| 37 | 'sdeventplus/event.hpp', |
| 38 | 'sdeventplus/exception.hpp', |
| 39 | subdir: 'sdeventplus') |
| 40 | |
| 41 | install_headers( |
| 42 | 'sdeventplus/internal/sdevent.hpp', |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 43 | 'sdeventplus/internal/utils.hpp', |
| 44 | subdir: 'sdeventplus/internal') |
| 45 | |
| 46 | install_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 | |
| 55 | install_headers( |
| 56 | 'sdeventplus/test/sdevent.hpp', |
| 57 | subdir: 'sdeventplus/test') |
| 58 | |
| 59 | install_headers( |
| 60 | 'sdeventplus/utility/timer.hpp', |
| 61 | subdir: 'sdeventplus/utility') |