Debian Codegraph @

meson.build

raw ◀ ▶
Source reconstructed at patch state 0 of 3 — not the installed (fully patched) source.
3 Debian patches touch this file
1 project('connman-gtk', 'c',
2 version : '1.1.1',
3 license: [
4 'GPL-2.0',
5 ],
6 default_options: [
7 'c_std=c11',
8 ])
9
10
11 am_cflags = [
12 '-fstack-protector',
13 '-pedantic',
14 '-Wstrict-prototypes',
15 '-Wundef',
16 '-Werror-implicit-function-declaration',
17 '-Wformat',
18 '-Wformat-security',
19 '-Werror=format-security',
20 '-Wconversion',
21 '-Wno-unused-parameter',
22 '-Wunreachable-code',
23 '-Wall',
24 '-W',
25 ]
26 add_global_arguments(am_cflags, language: 'c')
27
28 gtk = dependency('gtk+-3.0', version: '>=3.22')
29 glib = dependency('glib-2.0', version: '>=2.50')
30
31 conf_data = configuration_data()
32 openconnect = disabler()
33 cc = meson.get_compiler('c')
34 dl = cc.find_library('dl', required: false)
35
36 use_openconnect = get_option('use_openconnect')
37 if(use_openconnect == 'yes')
38 openconnect = dependency('openconnect', version: '>=5.99')
39 endif
40 if(use_openconnect == 'dynamic' and dl.found())
41 openconnect = dependency('openconnect', version: '>=5.99')
42 conf_data.set('USE_OPENCONNECT_DYNAMIC', true)
43 endif
44 if (use_openconnect == 'check')
45 openconnect = dependency('openconnect', version: '>=5.99', required : false)
46 endif
47
48 conf_data.set('USE_OPENCONNECT', openconnect.found())
49 conf_data.set('USE_STATUS_ICON', get_option('use_status_icon'))
50 conf_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
51 conf_data.set_quoted('CONNMAN_GTK_LOCALEDIR', get_option('localedir'))
52
53 conf_data.set('version', meson.project_version())
54 configure_file(input : 'config.h.in',
55 output : 'config.h',
56 configuration : conf_data)
57
58 extra_includes = [
59 include_directories('.'),
60 ]
61
62 readmes = [
63 'CHANGELOG.md',
64 'README.md'
65 ]
66
67
68 install_data(readmes, install_dir : join_paths(get_option('datadir'), meson.project_name(), 'doc'))
69 subdir('po')
70 subdir('src')
71 subdir('data')
72