mirror of
https://github.com/linux-msm/qrtr.git
synced 2025-12-24 05:56:29 +01:00
34 lines
986 B
Meson
34 lines
986 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
project('qrtr',
|
|
'c',
|
|
license : [ 'BSD-3-Clause'],
|
|
meson_version : '>= 0.64.0', # for feature user options
|
|
default_options : [
|
|
# 'warning_level=2', # sets -Wextra
|
|
'buildtype=release',
|
|
])
|
|
|
|
prefix = get_option('prefix')
|
|
systemd = dependency('systemd')
|
|
|
|
systemd_system_unit_dir = get_option('systemd-unit-prefix')
|
|
if systemd_system_unit_dir == ''
|
|
systemd_system_unit_dir = systemd.get_variable(
|
|
pkgconfig : 'systemdsystemunitdir',
|
|
pkgconfig_define: ['prefix', prefix])
|
|
endif
|
|
|
|
inc = include_directories('include')
|
|
subdir('lib')
|
|
subdir('include')
|
|
subdir('src')
|
|
|
|
systemd_unit_conf = configuration_data()
|
|
systemd_unit_conf.set('prefix', prefix)
|
|
configure_file(
|
|
input : 'qrtr-ns.service.in',
|
|
output : 'qrtr-ns.service',
|
|
configuration : systemd_unit_conf,
|
|
install_dir : systemd_system_unit_dir)
|