-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
45 lines (42 loc) · 1.21 KB
/
meson.build
File metadata and controls
45 lines (42 loc) · 1.21 KB
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
project(
'packagekit-bootc',
'c',
version: '0.1.0',
default_options: ['warning_level=2', 'c_std=c11'],
license: 'GPL-3.0-or-Later',
)
glib_dep = dependency('glib-2.0', version: '>=2. 54.0')
gobject_dep = dependency('gobject-2.0')
gmodule_dep = dependency('gmodule-2.0')
packagekit_glib2_dep = dependency('packagekit-glib2', version: '>=1.2.0')
pk_plugin_dir = join_paths(get_option('prefix'), get_option('libdir'), 'packagekit-backend')
pk_datadir = join_paths(get_option('prefix'), get_option('datadir'))
packagekit_src_include = include_directories(
'submodules/PackageKit/src',
is_system: true,
)
# Build the backend shared module
shared_module(
'pk_backend_bootc',
'src/pk-backend-bootc.c',
include_directories: packagekit_src_include,
dependencies: [
packagekit_glib2_dep,
gmodule_dep,
glib_dep,
gobject_dep,
],
c_args: [
'-DPK_COMPILATION',
'-DG_LOG_DOMAIN="PackageKit-Bootc"',
'-DDATADIR="@0@"'.format(join_paths(get_option('prefix'), get_option('datadir'))),
],
install: true,
install_dir: pk_plugin_dir,
)
# Install helper script
install_data(
'helpers/bootcBackend.py',
install_dir: pk_datadir / 'PackageKit' / 'helpers' / 'bootc',
install_mode: 'rwxr-xr-x',
)