William A. Kennington III | 48e6288 | 2019-04-03 15:36:01 -0700 | [diff] [blame] | 1 | gpioplus_headers = include_directories('.') |
| 2 | |
| 3 | gpioplus_lib = library( |
William A. Kennington III | 1565897 | 2019-03-27 19:44:36 -0700 | [diff] [blame] | 4 | 'gpioplus', |
| 5 | [ |
| 6 | 'gpioplus/chip.cpp', |
| 7 | 'gpioplus/event.cpp', |
| 8 | 'gpioplus/handle.cpp', |
| 9 | 'gpioplus/internal/fd.cpp', |
| 10 | 'gpioplus/internal/sys.cpp', |
| 11 | ], |
William A. Kennington III | 48e6288 | 2019-04-03 15:36:01 -0700 | [diff] [blame] | 12 | include_directories: gpioplus_headers, |
William A. Kennington III | 1565897 | 2019-03-27 19:44:36 -0700 | [diff] [blame] | 13 | implicit_include_directories: false, |
| 14 | version: meson.project_version(), |
| 15 | install: true) |
| 16 | |
William A. Kennington III | 48e6288 | 2019-04-03 15:36:01 -0700 | [diff] [blame] | 17 | gpioplus = declare_dependency( |
| 18 | include_directories: gpioplus_headers, |
| 19 | link_with: gpioplus_lib, |
| 20 | ) |
| 21 | |
William A. Kennington III | 1565897 | 2019-03-27 19:44:36 -0700 | [diff] [blame] | 22 | import('pkgconfig').generate( |
| 23 | name: 'gpioplus', |
| 24 | description: 'C++ systemd event wrapper', |
| 25 | version: meson.project_version(), |
William A. Kennington III | 9dd00de | 2019-04-01 17:23:25 -0700 | [diff] [blame] | 26 | libraries: gpioplus) |
William A. Kennington III | 1565897 | 2019-03-27 19:44:36 -0700 | [diff] [blame] | 27 | |
| 28 | install_headers( |
| 29 | 'gpioplus/chip.hpp', |
| 30 | 'gpioplus/event.hpp', |
| 31 | 'gpioplus/handle.hpp', |
| 32 | subdir: 'gpioplus') |
| 33 | |
| 34 | install_headers( |
| 35 | 'gpioplus/internal/fd.hpp', |
| 36 | 'gpioplus/internal/sys.hpp', |
| 37 | subdir: 'gpioplus/internal') |
| 38 | |
| 39 | install_headers( |
| 40 | 'gpioplus/test/event.hpp', |
| 41 | 'gpioplus/test/handle.hpp', |
| 42 | 'gpioplus/test/sys.hpp', |
| 43 | subdir: 'gpioplus/test') |
| 44 | |
| 45 | install_headers( |
| 46 | 'gpioplus/utility/aspeed.hpp', |
| 47 | subdir: 'gpioplus/utility') |