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 69 70 71 72 73
|
executable(
'pkcon',
'pk-console.c',
dependencies: packagekit_glib2_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()),
]
)
executable(
'pkmon',
'pk-monitor.c',
dependencies: packagekit_glib2_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('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
if get_option('man_pages')
xsltproc = find_program('xsltproc')
pkcon_man = custom_target(
'pkcon.1',
input: 'pkcon.xml',
output: 'pkcon.1',
command: [
xsltproc,
'--output', '@OUTPUT@',
'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl',
'@INPUT@',
],
install: true,
install_dir: join_paths(get_option('datadir'), 'man', 'man1'),
)
pkmon_man = custom_target(
'pkmon.1',
input: 'pkmon.xml',
output: 'pkmon.1',
command: [
xsltproc,
'--output', '@OUTPUT@',
'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl',
'@INPUT@',
],
install: true,
install_dir: join_paths(get_option('datadir'), 'man', 'man1'),
)
endif
|