1gpioplus_headers = include_directories('.') 2 3gpioplus_lib = library( 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 ], 12 include_directories: gpioplus_headers, 13 implicit_include_directories: false, 14 version: meson.project_version(), 15 install: true) 16 17gpioplus_dep = declare_dependency( 18 include_directories: gpioplus_headers, 19 link_with: gpioplus_lib, 20) 21 22import('pkgconfig').generate( 23 gpioplus_lib, 24 description: 'C++ systemd event wrapper', 25 version: meson.project_version()) 26 27install_headers( 28 'gpioplus/chip.hpp', 29 'gpioplus/event.hpp', 30 'gpioplus/handle.hpp', 31 subdir: 'gpioplus') 32 33install_headers( 34 'gpioplus/internal/fd.hpp', 35 'gpioplus/internal/sys.hpp', 36 subdir: 'gpioplus/internal') 37 38install_headers( 39 'gpioplus/test/event.hpp', 40 'gpioplus/test/handle.hpp', 41 'gpioplus/test/sys.hpp', 42 subdir: 'gpioplus/test') 43 44install_headers( 45 'gpioplus/utility/aspeed.hpp', 46 subdir: 'gpioplus/utility') 47