Start working on a desktop file

This commit is contained in:
David Boddie
2019-06-26 18:17:54 +02:00
parent 664f05edba
commit 346ed453ef
4 changed files with 31 additions and 0 deletions

View File

@ -56,3 +56,13 @@ foreach symbol: symbols
)
endforeach
desktop_file = 'sm.puri.Squeekboard.desktop'
i18n.merge_file('desktop',
input: desktop_file + '.in',
output: desktop_file,
po_dir: '../po',
install: true,
install_dir: join_paths(datadir, 'applications'),
type: 'desktop'
)

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Name=Squeekboard
GenericName=Squeekboard Virtual Keyboard
Comment=Virtual Keyboard
Exec=squeekboard
Icon=squeekboard
Terminal=false
Type=Application
Categories=GTK;Utility;

View File

@ -7,6 +7,8 @@ project(
default_options: [ 'warning_level=1', 'buildtype=debugoptimized', 'c_std=gnu11' ],
)
i18n = import('i18n')
if get_option('buildtype').startswith('debug')
add_project_arguments('-DDEBUG=1', language : 'c')
endif
@ -23,3 +25,4 @@ subdir('data')
subdir('protocols')
subdir('eek')
subdir('src')
subdir('po')

9
po/meson.build Normal file
View File

@ -0,0 +1,9 @@
i18n.gettext('squeekboard',
preset: 'glib',
args: [
'--copyright-holder=Purism SPC',
'--package-name=Squeekboard',
'--package-version=' + meson.project_version(),
'--msgid-bugs-address=dorota.czaplejewicz@puri.sm'
]
)