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