53 lines
1.5 KiB
Meson
53 lines
1.5 KiB
Meson
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
|
|
|
|
desktop_file = i18n.merge_file(
|
|
input: 'io.github.mightycreak.Diffuse.desktop.in',
|
|
output: 'io.github.mightycreak.Diffuse.desktop',
|
|
type: 'desktop',
|
|
po_dir: '../po',
|
|
install: true,
|
|
install_dir: join_paths(get_option('datadir'), 'applications')
|
|
)
|
|
|
|
desktop_utils = find_program('desktop-file-validate', required: false)
|
|
if desktop_utils.found()
|
|
test('Validate desktop file', desktop_utils,
|
|
args: [desktop_file]
|
|
)
|
|
endif
|
|
|
|
appstream_file = i18n.merge_file(
|
|
input: 'io.github.mightycreak.Diffuse.appdata.xml.in',
|
|
output: 'io.github.mightycreak.Diffuse.appdata.xml',
|
|
po_dir: '../po',
|
|
install: true,
|
|
install_dir: join_paths(get_option('datadir'), 'appdata')
|
|
)
|
|
|
|
appstream_util = find_program('appstream-util', required: false)
|
|
if appstream_util.found()
|
|
test('Validate appstream file', appstream_util,
|
|
args: ['validate', appstream_file]
|
|
)
|
|
endif
|
|
|
|
# Diffuse config file
|
|
conf = configuration_data()
|
|
conf.set('LOG_PRINT_OUTPUT', get_option('log_print_output'))
|
|
conf.set('LOG_PRINT_STACK', get_option('log_print_stack'))
|
|
conf.set('USE_FLATPAK', get_option('use_flatpak'))
|
|
conf.set('PKGDATADIR', pkgdatadir)
|
|
|
|
configure_file(
|
|
input: 'diffuserc.in',
|
|
output: 'diffuserc',
|
|
configuration: conf,
|
|
install: true,
|
|
install_dir: get_option('sysconfdir')
|
|
)
|
|
|
|
# Data files
|
|
install_subdir('usr/share', install_dir: get_option('datadir'), strip_directory: true)
|
|
|
|
subdir('icons')
|