mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 01:32:42 +00:00
59 lines
2.1 KiB
Meson
59 lines
2.1 KiB
Meson
py_purelib_path = python3.get_path('purelib')
|
|
install_subdir('GstDebugViewer', install_dir: py_purelib_path,
|
|
exclude_files: ['__init__.py'])
|
|
message('Installing in ' + py_purelib_path)
|
|
|
|
if find_program('msgfmt', required : get_option('nls')).found()
|
|
# Desktop launcher and description file.
|
|
desktop_file = i18n.merge_file(
|
|
input: 'org.freedesktop.GstDebugViewer.desktop.in',
|
|
output: 'org.freedesktop.GstDebugViewer.desktop',
|
|
type: 'desktop',
|
|
po_dir: 'po',
|
|
install: true,
|
|
install_dir: join_paths(get_option('datadir'), 'applications'),
|
|
)
|
|
|
|
# Appdata file.
|
|
appdata_file = i18n.merge_file(
|
|
input: 'org.freedesktop.GstDebugViewer.appdata.xml.in',
|
|
output: 'org.freedesktop.GstDebugViewer.appdata.xml',
|
|
po_dir: 'po',
|
|
install: true,
|
|
install_dir: join_paths(get_option('datadir'), 'metainfo'),
|
|
)
|
|
else
|
|
install_data('org.freedesktop.GstDebugViewer.desktop.in',
|
|
rename: 'org.freedesktop.GstDebugViewer.desktop',
|
|
install_dir: join_paths(get_option('datadir'), 'applications'))
|
|
install_data('org.freedesktop.GstDebugViewer.appdata.xml.in',
|
|
rename: 'org.freedesktop.GstDebugViewer.appdata.xml',
|
|
install_dir: join_paths(get_option('datadir'), 'metainfo'))
|
|
endif
|
|
|
|
cdata = configuration_data()
|
|
cdata.set('LIBDIR', join_paths(get_option('prefix'), get_option('libdir')))
|
|
cdata.set('DATADIR', join_paths(get_option('prefix'), get_option('datadir')))
|
|
cdata.set('VERSION', meson.project_version())
|
|
|
|
configure_file(input: 'gst-debug-viewer',
|
|
output: 'gst-debug-viewer',
|
|
configuration: cdata,
|
|
install_dir: get_option('bindir'))
|
|
|
|
configure_file(input: 'GstDebugViewer/__init__.py',
|
|
output: '__init__.py',
|
|
configuration: cdata,
|
|
install_dir: join_paths(py_purelib_path, 'GstDebugViewer'))
|
|
|
|
pkgdatadir = join_paths(get_option('datadir'), meson.project_name())
|
|
icondir = join_paths(get_option('datadir'), 'icons/hicolor')
|
|
|
|
subdir('data')
|
|
|
|
|
|
if run_command(python3,
|
|
'-c', 'import gi; gi.require_version("Gtk", "3.0")').returncode() == 0
|
|
test('gst-debug-viewer', python3, args: ['-m', 'unittest'],
|
|
workdir: meson.current_source_dir())
|
|
endif
|