-
Notifications
You must be signed in to change notification settings - Fork 91
/
meson.build
69 lines (62 loc) · 2.09 KB
/
meson.build
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
flatpak_builder_sources = files(
'builder-cache.c',
'builder-context.c',
'builder-extension.c',
'builder-flatpak-utils.c',
'builder-git.c',
'builder-main.c',
'builder-manifest.c',
'builder-module.c',
'builder-options.c',
'builder-post-process.c',
'builder-sdk-config.c',
'builder-source.c',
'builder-source-archive.c',
'builder-source-bzr.c',
'builder-source-dir.c',
'builder-source-extra-data.c',
'builder-source-file.c',
'builder-source-git.c',
'builder-source-inline.c',
'builder-source-patch.c',
'builder-source-script.c',
'builder-source-shell.c',
'builder-source-svn.c',
'builder-utils.c',
)
yaml_dep = dependency('yaml-0.1', required: get_option('yaml'))
config_data = configuration_data()
config_data.set('FLATPAK_BUILDER_ENABLE_YAML', yaml_dep.found())
config_data.set_quoted('DEBUGEDIT', debugedit.full_path())
config_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
config_data.set_quoted('PACKAGE_VERSION', meson.project_version())
config_data.set_quoted('PACKAGE_STRING', '@0@-@1@'.format(meson.project_name(), meson.project_version()))
config_data.set('GLIB_VERSION_MAX_ALLOWED', 'GLIB_VERSION_2_70')
config_data.set('GLIB_VERSION_MIN_REQUIRED', 'GLIB_VERSION_2_66')
# We support targeting specific fuse versions to optimize performance.
# Currently only fuse2 has optimizations but this allows for future fuse3
# optimizations.
config_data.set('ASSUME_FUSE_2', get_option('fuse') == '2')
config_h = configure_file(
configuration: config_data,
output: 'config.h',
)
glib_req = '>= 2.66'
flatpak_builder_deps = [
dependency('glib-2.0', version: glib_req),
dependency('gio-2.0', version: glib_req),
dependency('gio-unix-2.0', version: glib_req),
dependency('json-glib-1.0'),
dependency('libcurl'),
dependency('libelf', version: '>= 0.8.12'),
dependency('libglnx', default_options: ['tests=false']),
dependency('libxml-2.0', version: '>= 2.4'),
dependency('ostree-1', version: '>= 2017.14'),
yaml_dep,
]
flatpak_builder = executable(
'flatpak-builder',
flatpak_builder_sources,
dependencies: flatpak_builder_deps,
install: true,
)