meson: Add build system
Change-Id: Ia57836a0f7b5287ddb490ba6de01192ce0ef6382
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 0000000..056a1cd
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,40 @@
+gpioplus = library(
+ 'gpioplus',
+ [
+ 'gpioplus/chip.cpp',
+ 'gpioplus/event.cpp',
+ 'gpioplus/handle.cpp',
+ 'gpioplus/internal/fd.cpp',
+ 'gpioplus/internal/sys.cpp',
+ ],
+ include_directories: includes,
+ implicit_include_directories: false,
+ version: meson.project_version(),
+ install: true)
+
+import('pkgconfig').generate(
+ name: 'gpioplus',
+ description: 'C++ systemd event wrapper',
+ version: meson.project_version(),
+)
+
+install_headers(
+ 'gpioplus/chip.hpp',
+ 'gpioplus/event.hpp',
+ 'gpioplus/handle.hpp',
+ subdir: 'gpioplus')
+
+install_headers(
+ 'gpioplus/internal/fd.hpp',
+ 'gpioplus/internal/sys.hpp',
+ subdir: 'gpioplus/internal')
+
+install_headers(
+ 'gpioplus/test/event.hpp',
+ 'gpioplus/test/handle.hpp',
+ 'gpioplus/test/sys.hpp',
+ subdir: 'gpioplus/test')
+
+install_headers(
+ 'gpioplus/utility/aspeed.hpp',
+ subdir: 'gpioplus/utility')