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
|
g_ir_compiler = find_program('g-ir-compiler')
girs = [
'NetworkManager',
'NMClient',
]
resource_data = []
foreach gir: girs
gir_typelib = gir + '.typelib'
resource_data += custom_target(
gir_typelib,
input: gir + '.gir',
output: gir_typelib,
command: [g_ir_compiler, '@INPUT@', '-o', '@OUTPUT@'],
)
endforeach
resource = 'typelibs'
libnm_utils_sources += gnome.compile_resources(
resource,
resource + '.gresource.xml',
source_dir: '.',
dependencies: resource_data,
extra_args: '--manual-register',
export: true,
)
|