Initial Commit
The initial commit of gnome-image-viewer. Things are in an MVP state, with image viewing and opening from the desktop functional. We also can open images externally, print them, and set them as backgrounds.
This commit is contained in:
commit
f692ab5626
38 changed files with 3807 additions and 0 deletions
66
data/meson.build
Normal file
66
data/meson.build
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
desktop_file = i18n.merge_file(
|
||||
input: configure_file(
|
||||
input: 'org.gnome.ImageViewer.desktop.in.in',
|
||||
output: 'org.gnome.ImageViewer.desktop.in',
|
||||
configuration: conf,
|
||||
),
|
||||
output: '@0@.desktop'.format(app_id),
|
||||
type: 'desktop',
|
||||
po_dir: '../po',
|
||||
install: true,
|
||||
install_dir: join_paths(iv_datadir, 'applications')
|
||||
)
|
||||
|
||||
configure_file(
|
||||
input: 'org.gnome.ImageViewer.service.in',
|
||||
output: '@0@.service'.format(app_id),
|
||||
configuration: conf,
|
||||
install: true,
|
||||
install_dir: join_paths(iv_datadir, 'dbus-1', 'services')
|
||||
)
|
||||
|
||||
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: configure_file(
|
||||
input: 'org.gnome.ImageViewer.appdata.xml.in.in',
|
||||
output: 'org.gnome.ImageViewer.appdata.xml.in',
|
||||
configuration: conf,
|
||||
),
|
||||
output: '@0@.appdata.xml'.format(app_id),
|
||||
po_dir: '../po',
|
||||
install: true,
|
||||
install_dir: join_paths(iv_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
|
||||
|
||||
install_data('org.gnome.ImageViewer.gschema.xml',
|
||||
install_dir: join_paths(iv_datadir, 'glib-2.0', 'schemas')
|
||||
)
|
||||
|
||||
compile_schemas = find_program('glib-compile-schemas', required: false)
|
||||
if compile_schemas.found()
|
||||
test('Validate schema file', compile_schemas,
|
||||
args: ['--strict', '--dry-run', meson.current_source_dir()]
|
||||
)
|
||||
endif
|
||||
|
||||
gnome.compile_resources('gnome-image-viewer',
|
||||
'gnome_image_viewer.gresource.xml',
|
||||
gresource_bundle: true,
|
||||
install: true,
|
||||
install_dir: iv_pkgdatadir,
|
||||
)
|
||||
|
||||
subdir('icons')
|
||||
Loading…
Add table
Add a link
Reference in a new issue