2023-02-26 00:50
This commit is contained in:
41
hello-vala/data/meson.build
Normal file
41
hello-vala/data/meson.build
Normal file
@@ -0,0 +1,41 @@
|
||||
desktop_file = i18n.merge_file(
|
||||
input: 'org.gnome.Hello-Vala.desktop.in',
|
||||
output: 'org.gnome.Hello-Vala.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: 'org.gnome.Hello-Vala.appdata.xml.in',
|
||||
output: 'org.gnome.Hello-Vala.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
|
||||
|
||||
install_data('org.gnome.Hello-Vala.gschema.xml',
|
||||
install_dir: join_paths(get_option('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
|
||||
7
hello-vala/data/org.gnome.Hello-Vala.appdata.xml.in
Normal file
7
hello-vala/data/org.gnome.Hello-Vala.appdata.xml.in
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop">
|
||||
<id>org.gnome.Hello-Vala.desktop</id>
|
||||
<licence>CC0</licence>
|
||||
<description>
|
||||
</description>
|
||||
</component>
|
||||
7
hello-vala/data/org.gnome.Hello-Vala.desktop.in
Normal file
7
hello-vala/data/org.gnome.Hello-Vala.desktop.in
Normal file
@@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Name=hello-vala
|
||||
Exec=hello-vala
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=GTK;
|
||||
StartupNotify=true
|
||||
5
hello-vala/data/org.gnome.Hello-Vala.gschema.xml
Normal file
5
hello-vala/data/org.gnome.Hello-Vala.gschema.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schemalist gettext-domain="hello-vala">
|
||||
<schema id="org.gnome.Hello-Vala" path="/org/gnome/Hello-Vala/">
|
||||
</schema>
|
||||
</schemalist>
|
||||
Reference in New Issue
Block a user