1project( 2 'phosphor-gpio-monitor', 3 'cpp', 4 default_options: [ 5 'warning_level=3', 6 'werror=true', 7 'cpp_std=c++17' 8 ], 9 license: 'Apache-2.0', 10 version: '1.0', 11) 12 13build_tests = get_option('tests') 14 15cppfs = meson.get_compiler('cpp').find_library('stdc++fs') 16libevdev = dependency('libevdev') 17libsystemd = dependency('libsystemd') 18phosphor_dbus_interfaces = dependency('phosphor-dbus-interfaces') 19phosphor_logging = dependency('phosphor-logging') 20sdbusplus = dependency('sdbusplus') 21 22libevdev_o = static_library( 23 'libevdev_o', 24 'evdev.cpp', 25 dependencies: [ 26 libevdev, 27 phosphor_dbus_interfaces, 28 phosphor_logging, 29 sdbusplus, 30 ] 31) 32 33libmonitor_o = static_library( 34 'libmonitor_o', 35 'monitor.cpp', 36 dependencies: [ 37 libevdev, 38 libsystemd, 39 phosphor_logging, 40 ], 41 link_with: [ 42 libevdev_o, 43 ], 44) 45 46phosphor_gpio_monitor = executable( 47 'phosphor-gpio-monitor', 48 'argument.cpp', 49 'mainapp.cpp', 50 dependencies: [ 51 libevdev, 52 libsystemd, 53 phosphor_logging, 54 ], 55 install: true, 56 link_with: [ 57 libevdev_o, 58 libmonitor_o, 59 ], 60) 61 62subdir('gpio-util') 63subdir('presence') 64subdir('test') 65