File: meson.build

package info (click to toggle)
packagekit 1.3.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,824 kB
  • sloc: ansic: 56,491; cpp: 15,652; xml: 5,532; python: 4,932; sh: 316; perl: 60; makefile: 56
file content (56 lines) | stat: -rw-r--r-- 1,584 bytes parent folder | download | duplicates (2)
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
alpm_dep = dependency('libalpm', version: '>=15.0.0')

shared_module(
  'pk_backend_alpm',
  'pk-backend-alpm.c',
  'pk-backend-alpm.h',
  'pk-alpm-config.c',
  'pk-alpm-config.h',
  'pk-alpm-databases.c',
  'pk-alpm-databases.h',
  'pk-alpm-depends.c',
  'pk-alpm-environment.c',
  'pk-alpm-environment.h',
  'pk-alpm-error.c',
  'pk-alpm-error.h',
  'pk-alpm-groups.c',
  'pk-alpm-groups.h',
  'pk-alpm-install.c',
  'pk-alpm-packages.c',
  'pk-alpm-packages.h',
  'pk-alpm-remove.c',
  'pk-alpm-search.c',
  'pk-alpm-sync.c',
  'pk-alpm-transaction.c',
  'pk-alpm-transaction.h',
  'pk-alpm-update.c',
  'pk-alpm-update.h',
  include_directories: packagekit_src_include,
  dependencies: [
    packagekit_glib2_dep,
    alpm_dep,
    gmodule_dep,
  ],
  c_args: [
    '-DPK_LOG_PREFIX="PACKAGEKIT"',
    '-DG_LOG_DOMAIN="PackageKit-alpm"',
    '-DPK_BACKEND_CONFIG_FILE="@0@"'.format(join_paths(get_option('sysconfdir'), 'PackageKit', 'alpm.d', 'pacman.conf')),
    '-DPK_BACKEND_GROUP_FILE="@0@"'.format(join_paths(get_option('sysconfdir'), 'PackageKit', 'alpm.d', 'groups.list')),
    '-DPK_BACKEND_REPO_FILE="@0@"'.format(join_paths(get_option('sysconfdir'), 'PackageKit', 'alpm.d', 'repos.list')),
    '-DPK_BACKEND_DEFAULT_PATH="/bin:/usr/bin:/sbin:/usr/sbin"',
  ],
  install: true,
  install_dir: pk_plugin_dir,
)

install_data(
  '90-packagekit-refresh.hook',
  install_dir: join_paths(get_option('datadir'), 'libalpm', 'hooks')
)

install_data(
  'groups.list',
  'pacman.conf',
  'repos.list',
  install_dir: join_paths(get_option('sysconfdir'), 'PackageKit', 'alpm.d')
)