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 (63 lines) | stat: -rw-r--r-- 1,376 bytes parent folder | download
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

if get_option('offline_update')
  executable(
    'pk-offline-update',
    'pk-offline-update.c',
    dependencies: [
      packagekit_glib2_dep,
      libsystemd,
    ],
    install: true,
    install_dir: get_option('libexecdir'),
    c_args: [
      '-DPK_COMPILATION=1',
      '-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
      '-DPACKAGE_LOCALE_DIR="@0@"'.format(package_locale_dir),
    ]
  )
endif

executable(
  'pkgcli',
  [
    'pkgcli.c',
    'pkgc-context.c',
    'pkgc-manage.c',
    'pkgc-monitor.c',
    'pkgc-query.c',
    'pkgc-repo.c',
    'pkgc-util.c',
  ],
  dependencies: [
    packagekit_glib2_dep,
    jansson_dep],
  install: true,
  c_args: [
    '-DPK_COMPILATION=1',
    '-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
    '-DPACKAGE_LOCALE_DIR="@0@"'.format(package_locale_dir),
    '-DVERSION="@0@"'.format(meson.project_version()),
  ]
)

if get_option('man_pages')
  xsltproc = find_program('xsltproc')
  custom_target(
    'pkgcli.1',
    input: 'pkgcli.xml',
    output: 'pkgcli.1',
    command: [
      xsltproc,
      '--nonet',
      '--output', '@OUTPUT@',
      'http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl',
      '@INPUT@',
    ],
    install: true,
    install_dir: join_paths(get_option('datadir'), 'man', 'man1'),
  )
endif

if get_option('legacy_tools')
    subdir('pkcon')
endif