mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-08 06:00:54 +00:00
Translate desktop file
This commit is contained in:
@ -3,9 +3,6 @@ SUBDIRS = icons
|
|||||||
mimedir = $(datadir)/mime/packages
|
mimedir = $(datadir)/mime/packages
|
||||||
mime_DATA = sysprof-mime.xml
|
mime_DATA = sysprof-mime.xml
|
||||||
|
|
||||||
desktopdir = $(datadir)/applications
|
|
||||||
desktop_DATA = org.gnome.Sysprof2.desktop
|
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = sysprof-$(API_VERSION).pc
|
pkgconfig_DATA = sysprof-$(API_VERSION).pc
|
||||||
if ENABLE_GTK
|
if ENABLE_GTK
|
||||||
@ -19,6 +16,14 @@ gsettings_SCHEMAS = org.gnome.sysprof2.gschema.xml
|
|||||||
@GSETTINGS_RULES@
|
@GSETTINGS_RULES@
|
||||||
|
|
||||||
|
|
||||||
|
%.desktop: %.desktop.in
|
||||||
|
$(AM_V_GEN)$(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
|
||||||
|
|
||||||
|
desktopdir = $(datadir)/applications
|
||||||
|
desktop_in_files = org.gnome.Sysprof2.desktop.in
|
||||||
|
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
|
||||||
|
|
||||||
|
|
||||||
%.appdata.xml: %.appdata.xml.in
|
%.appdata.xml: %.appdata.xml.in
|
||||||
$(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
|
$(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
|
||||||
|
|
||||||
@ -29,14 +34,14 @@ appstream_XML = $(appstream_in_files:.xml.in=.xml)
|
|||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
sysprof.pc.in \
|
sysprof.pc.in \
|
||||||
org.gnome.Sysprof2.desktop \
|
$(desktop_in_files) \
|
||||||
$(appstream_in_files) \
|
$(appstream_in_files) \
|
||||||
$(mime_DATA) \
|
$(mime_DATA) \
|
||||||
$(gsettings_SCHEMAS) \
|
$(gsettings_SCHEMAS) \
|
||||||
meson.build \
|
meson.build \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
DISTCLEANFILES = $(pkgconfig_DATA) $(appstream_XML)
|
DISTCLEANFILES = $(pkgconfig_DATA) $(appstream_XML) $(desktop_DATA)
|
||||||
GITIGNOREFILES = $(dbusservice_DATA)
|
GITIGNOREFILES = $(dbusservice_DATA)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -6,10 +6,6 @@ install_data('sysprof-mime.xml',
|
|||||||
install_dir: join_paths(datadir, 'mime/packages')
|
install_dir: join_paths(datadir, 'mime/packages')
|
||||||
)
|
)
|
||||||
|
|
||||||
install_data('org.gnome.Sysprof2.desktop',
|
|
||||||
install_dir: join_paths(datadir, 'applications')
|
|
||||||
)
|
|
||||||
|
|
||||||
install_data('org.gnome.sysprof2.gschema.xml',
|
install_data('org.gnome.sysprof2.gschema.xml',
|
||||||
install_dir: join_paths(datadir, 'glib-2.0/schemas')
|
install_dir: join_paths(datadir, 'glib-2.0/schemas')
|
||||||
)
|
)
|
||||||
@ -23,6 +19,14 @@ custom_target('appdata-file',
|
|||||||
install_dir: join_paths(datadir, 'appdata')
|
install_dir: join_paths(datadir, 'appdata')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
custom_target('desktop-file',
|
||||||
|
input: 'org.gnome.Sysprof2.desktop.in',
|
||||||
|
output: 'org.gnome.Sysprof2.desktop',
|
||||||
|
command: [msgfmt, '--desktop', '--template', '@INPUT@', '-d', podir, '-o', '@OUTPUT@'],
|
||||||
|
install: true,
|
||||||
|
install_dir: join_paths(datadir, 'applications')
|
||||||
|
)
|
||||||
|
|
||||||
pkgconf = configuration_data()
|
pkgconf = configuration_data()
|
||||||
pkgconf.set('VERSION', meson.project_version())
|
pkgconf.set('VERSION', meson.project_version())
|
||||||
pkgconf.set('API_VERSION', libsysprof_api_version)
|
pkgconf.set('API_VERSION', libsysprof_api_version)
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
# List of source files containing translatable strings.
|
# List of source files containing translatable strings.
|
||||||
# Please keep this file sorted alphabetically.
|
# Please keep this file sorted alphabetically.
|
||||||
data/org.gnome.Sysprof2.appdata.xml.in
|
data/org.gnome.Sysprof2.appdata.xml.in
|
||||||
data/org.gnome.Sysprof2.desktop
|
data/org.gnome.Sysprof2.desktop.in
|
||||||
data/org.gnome.sysprof2.gschema.xml
|
data/org.gnome.sysprof2.gschema.xml
|
||||||
lib/resources/ui/sp-callgraph-view.ui
|
lib/resources/ui/sp-callgraph-view.ui
|
||||||
lib/resources/ui/sp-empty-state-view.ui
|
lib/resources/ui/sp-empty-state-view.ui
|
||||||
|
|||||||
Reference in New Issue
Block a user