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
|