blob: b86ed9d5ad8fc231bfa16164a77f4b70144889ab [file] [log] [blame]
William A. Kennington III48e62882019-04-03 15:36:01 -07001gpioplus_headers = include_directories('.')
2
3gpioplus_lib = library(
William A. Kennington III15658972019-03-27 19:44:36 -07004 '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 III48e62882019-04-03 15:36:01 -070012 include_directories: gpioplus_headers,
William A. Kennington III15658972019-03-27 19:44:36 -070013 implicit_include_directories: false,
14 version: meson.project_version(),
15 install: true)
16
William A. Kennington III48e62882019-04-03 15:36:01 -070017gpioplus = declare_dependency(
18 include_directories: gpioplus_headers,
19 link_with: gpioplus_lib,
20)
21
William A. Kennington III15658972019-03-27 19:44:36 -070022import('pkgconfig').generate(
23 name: 'gpioplus',
24 description: 'C++ systemd event wrapper',
25 version: meson.project_version(),
William A. Kennington III9dd00de2019-04-01 17:23:25 -070026 libraries: gpioplus)
William A. Kennington III15658972019-03-27 19:44:36 -070027
28install_headers(
29 'gpioplus/chip.hpp',
30 'gpioplus/event.hpp',
31 'gpioplus/handle.hpp',
32 subdir: 'gpioplus')
33
34install_headers(
35 'gpioplus/internal/fd.hpp',
36 'gpioplus/internal/sys.hpp',
37 subdir: 'gpioplus/internal')
38
39install_headers(
40 'gpioplus/test/event.hpp',
41 'gpioplus/test/handle.hpp',
42 'gpioplus/test/sys.hpp',
43 subdir: 'gpioplus/test')
44
45install_headers(
46 'gpioplus/utility/aspeed.hpp',
47 subdir: 'gpioplus/utility')