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
|
project('support',
['c', 'vala'],
version: '0.9.0',
meson_version: '>= 0.52.0',
license: 'GPL-3.0-or-later',
default_options: [
'warning_level=2',
'werror=false',
],
)
description = '''JaduPc Remote Support Console'''
desktop_name = 'JaduPc Remote Support Console'
if get_option('debug')
add_project_arguments('-DG_LOG_USE_STRUCTURED=1', language : 'c')
add_project_arguments('--debug', language : 'vala')
endif
maintainer_rname = 'com.jadupc'
project_name = meson.project_name ()
application_id = '@0@.@1@'.format (maintainer_rname, project_name)
application_path = '/'.join([''] + application_id.split('.'))
application_name = '@0@-@1@'.format(maintainer_rname.split('.').get(-1), project_name)
i18n = import('i18n')
gnome = import('gnome')
valac = meson.get_compiler ('vala')
conf = configuration_data ()
srcs = []
tests = []
i18n_data = []
vapi_overrides = []
conf.set_quoted ('GETTEXT_PACKAGE', application_name)
conf.set_quoted ('DATADIR', get_option ('prefix') / get_option ('datadir'))
conf.set_quoted ('LOCALEDIR', get_option ('prefix') / get_option ('localedir'))
conf.set_quoted ('APPLICATION_ID', application_id)
conf.set_quoted ('VERSION', meson.project_version ())
conf.set_quoted ('SECURE_PATH', get_option('secure-path'))
config_h = declare_dependency (
sources: configure_file (
output: 'config.h',
configuration: conf
)
)
config_h_dir = include_directories ('.')
config_dep = valac.find_library ('config', dirs: meson.current_source_dir() / 'src')
subdir('data')
subdir('src')
subdir('po')
foreach override : vapi_overrides
add_project_arguments('--vapidir=@0@'.format(meson.current_source_dir() / 'vapi' / override), language: 'vala')
endforeach
subdir('tests')
executable(application_name, srcs + resources,
include_directories: config_h_dir,
vala_args: '--target-glib=2.50', dependencies: deps,
install: true,
c_args: ['-include', 'config.h'],
)
|