1*dd9478ddSJohn Wedigproject( 2*dd9478ddSJohn Wedig 'host_gpio_monitor', 3*dd9478ddSJohn Wedig 'cpp', 4*dd9478ddSJohn Wedig version: '0.1', 5*dd9478ddSJohn Wedig meson_version: '>=1.1.1', 6*dd9478ddSJohn Wedig default_options: [ 7*dd9478ddSJohn Wedig 'warning_level=3', 8*dd9478ddSJohn Wedig 'werror=true', 9*dd9478ddSJohn Wedig 'cpp_std=c++23', 10*dd9478ddSJohn Wedig ], 11*dd9478ddSJohn Wedig) 12*dd9478ddSJohn Wedig 13*dd9478ddSJohn Wedigexecutable( 14*dd9478ddSJohn Wedig 'host_gpio_monitor', 15*dd9478ddSJohn Wedig 'host_gpio_monitor.cpp', 16*dd9478ddSJohn Wedig implicit_include_directories: false, 17*dd9478ddSJohn Wedig dependencies: 18*dd9478ddSJohn Wedig [ 19*dd9478ddSJohn Wedig dependency('stdplus'), 20*dd9478ddSJohn Wedig dependency('phosphor-logging'), 21*dd9478ddSJohn Wedig ], 22*dd9478ddSJohn Wedig install: true, 23*dd9478ddSJohn Wedig install_dir: get_option('libexecdir'), 24*dd9478ddSJohn Wedig) 25*dd9478ddSJohn Wedig 26*dd9478ddSJohn Wedigsystemd = dependency('systemd') 27*dd9478ddSJohn Wedigsystemunitdir = systemd.get_variable('systemdsystemunitdir') 28*dd9478ddSJohn Wedig 29*dd9478ddSJohn Wediglibexecdir = get_option('prefix') / get_option('libexecdir') 30*dd9478ddSJohn Wedig 31*dd9478ddSJohn Wedigconfigure_file( 32*dd9478ddSJohn Wedig configuration: {'BIN': libexecdir / 'host_gpio_monitor'}, 33*dd9478ddSJohn Wedig input: 'host-gpio-monitor.service.in', 34*dd9478ddSJohn Wedig output: 'host-gpio-monitor.service', 35*dd9478ddSJohn Wedig install_mode: 'rw-r--r--', 36*dd9478ddSJohn Wedig install_dir: systemunitdir) 37