1dffd6523SWilliam A. Kennington III# Copyright 2022 Google LLC 2dffd6523SWilliam A. Kennington III# 3dffd6523SWilliam A. Kennington III# Licensed under the Apache License, Version 2.0 (the "License"); 4dffd6523SWilliam A. Kennington III# you may not use this file except in compliance with the License. 5dffd6523SWilliam A. Kennington III# You may obtain a copy of the License at 6dffd6523SWilliam A. Kennington III# 7dffd6523SWilliam A. Kennington III# http://www.apache.org/licenses/LICENSE-2.0 8dffd6523SWilliam A. Kennington III# 9dffd6523SWilliam A. Kennington III# Unless required by applicable law or agreed to in writing, software 10dffd6523SWilliam A. Kennington III# distributed under the License is distributed on an "AS IS" BASIS, 11dffd6523SWilliam A. Kennington III# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12dffd6523SWilliam A. Kennington III# See the License for the specific language governing permissions and 13dffd6523SWilliam A. Kennington III# limitations under the License. 14dffd6523SWilliam A. Kennington III 15dffd6523SWilliam A. Kennington IIIproject( 16dffd6523SWilliam A. Kennington III 'dhcp-done', 17dffd6523SWilliam A. Kennington III 'cpp', 18dffd6523SWilliam A. Kennington III version: '0.1', 19*4c4e94f0SPatrick Williams meson_version: '>=0.58.0', 20dffd6523SWilliam A. Kennington III default_options: [ 21dffd6523SWilliam A. Kennington III 'warning_level=3', 22dffd6523SWilliam A. Kennington III 'werror=true', 23dffd6523SWilliam A. Kennington III 'cpp_std=c++20', 24dffd6523SWilliam A. Kennington III ], 25dffd6523SWilliam A. Kennington III) 26dffd6523SWilliam A. Kennington III 27dffd6523SWilliam A. Kennington IIIdeps = [ 28dffd6523SWilliam A. Kennington III dependency('sdeventplus'), 29dffd6523SWilliam A. Kennington III dependency('stdplus'), 30dffd6523SWilliam A. Kennington III] 31dffd6523SWilliam A. Kennington III 32dffd6523SWilliam A. Kennington IIIlibexecdir = get_option('prefix') / get_option('libexecdir') 33dffd6523SWilliam A. Kennington III 34dffd6523SWilliam A. Kennington IIIexecutable( 35dffd6523SWilliam A. Kennington III 'dhcp-done', 36dffd6523SWilliam A. Kennington III 'dhcp-done.cpp', 37dffd6523SWilliam A. Kennington III implicit_include_directories: false, 38dffd6523SWilliam A. Kennington III dependencies: deps, 39dffd6523SWilliam A. Kennington III install: true, 40dffd6523SWilliam A. Kennington III install_dir: libexecdir) 41dffd6523SWilliam A. Kennington III 42dffd6523SWilliam A. Kennington IIIsystemd = dependency('systemd') 43*4c4e94f0SPatrick Williamssystemunitdir = systemd.get_variable('systemdsystemunitdir') 44dffd6523SWilliam A. Kennington III 45dffd6523SWilliam A. Kennington IIIconfigure_file( 46dffd6523SWilliam A. Kennington III configuration: {'BIN': libexecdir / 'dhcp-done'}, 475ca20ffeSYuxiao Zhang input: 'dhcp-done@.service.in', 485ca20ffeSYuxiao Zhang output: 'dhcp-done@.service', 49dffd6523SWilliam A. Kennington III install_mode: 'rw-r--r--', 50dffd6523SWilliam A. Kennington III install_dir: systemunitdir) 51