File: meson.build

package info (click to toggle)
openvpn3-client 25%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,276 kB
  • sloc: cpp: 190,085; python: 7,218; ansic: 1,866; sh: 1,361; java: 402; lisp: 81; makefile: 17
file content (82 lines) | stat: -rw-r--r-- 1,942 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#  OpenVPN 3 Linux - Next generation OpenVPN
#
#  SPDX-License-Identifier: AGPL-3.0-only
#
#  Copyright (C)  OpenVPN Inc <sales@openvpn.net>
#  Copyright (C)  Razvan Cojocaru <razvan.cojocaru@openvpn.com>

sysinfo_lib = static_library(
        'sysinfo',
        [
            'sysinfo/sysinfo.cpp',
        ],
        include_directories: include_dirs,
)

#  openvpn3-service-devposture
bin_devposture_start = executable(
    'openvpn3-service-devposture',
    [
        'openvpn3-service-devposture.cpp',
        'service.cpp',
        'modulehandler.cpp',
        'devposture-signals.cpp',
        'modules/platform.cpp',
        'modules/datetime.cpp',
    ],
    include_directories: [include_dirs, '../..'],
    dependencies: [
        base_dependencies,
    ],
    link_with: [
      sysinfo_lib,
      common_code,
    ],
    install: true,
    install_dir: libexec_dir
)


# Device posture protocol profiles
install_data(
    'profiles/example1.json',
    'profiles/example2.json',
    'profiles/openvpninc.json',
    install_dir: devposture_profiledir
)

# Documentation
install_data(
    'profiles/profile-format.md',
    install_dir: docdir / 'device-posture'
)

# D-Bus policy
configure_file(
    input: 'policy/net.openvpn.v3.devposture.conf.in',
    output: 'net.openvpn.v3.devposture.conf',
    configuration: configuration_data(dbus_config),
    install: true,
    install_dir: dbus_policy_dir,
)

# D-Bus service autostart config
configure_file(
    input: '../../src/service-autostart/template.service.in',
    output: 'net.openvpn.v3.devposture.service',
    configuration: configuration_data(
        dbus_config +
        {
            'BUSNAME': 'net.openvpn.v3.devposture',
            'SERVICE_BIN': bin_devposture_start.name(),
            'SERVICE_ARGS': '--profile-dir "' + devposture_profiledir + '"',
        }
    ),
    install: true,
    install_dir: dbus_service_dir,
)

#
#  Test programs
#
subdir('tests')