-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70cbeea
commit 00d2708
Showing
20 changed files
with
463 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
*~ | ||
build | ||
build/ | ||
builddir/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
icon_sizes = ['16', '24', '32', '48'] | ||
|
||
foreach i : icon_sizes | ||
install_data( | ||
join_paths(i, meson.project_name() + '.svg'), | ||
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i, 'apps') | ||
) | ||
endforeach | ||
|
||
install_data( | ||
join_paths('symbolic', meson.project_name() + '-symbolic.svg'), | ||
install_dir: join_paths(get_option('datadir'), 'icons/hicolor/symbolic/apps') | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
i18n.merge_file( | ||
input: meson.project_name() + '.desktop.in', | ||
output: meson.project_name() + '.desktop', | ||
po_dir: join_paths(meson.source_root(), 'po'), | ||
type: 'desktop', | ||
install: true, | ||
install_dir: join_paths(get_option('datadir'), 'applications') | ||
) | ||
|
||
i18n.merge_file( | ||
input: meson.project_name() + '.appdata.xml.in', | ||
output: meson.project_name() + '.appdata.xml', | ||
po_dir: join_paths(meson.source_root(), 'po'), | ||
install: true, | ||
install_dir: join_paths(get_option('datadir'), 'metainfo') | ||
) | ||
|
||
desktop_file_validate = find_program('desktop-file-validate', required:false) | ||
|
||
if desktop_file_validate.found() | ||
test ( | ||
'Validate desktop file', | ||
desktop_file_validate, | ||
args: join_paths(meson.current_build_dir (), meson.project_name() + '.desktop') | ||
) | ||
endif | ||
|
||
appstreamcli = find_program(['appstreamcli', 'appstream-util'], required:false) | ||
|
||
if appstreamcli.found() | ||
test ( | ||
'Validate appdata file', | ||
appstreamcli, | ||
args: ['validate', join_paths(meson.current_build_dir (), meson.project_name() + '.appdata.xml')] | ||
) | ||
endif | ||
|
||
subdir('icons') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
project('com.github.artemanufrij.playmymusic', ['vala', 'c'], version: '0.6.9') | ||
|
||
|
||
gnome = import('gnome') | ||
i18n = import('i18n') | ||
|
||
# Add vapi files | ||
add_project_arguments( | ||
[ | ||
'--vapidir', | ||
join_paths(meson.current_source_dir(), 'vapi') | ||
], | ||
language: 'vala' | ||
) | ||
|
||
|
||
# Add locale support | ||
conf = configuration_data() | ||
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name()) | ||
conf.set_quoted('PREFIX', get_option('prefix')) | ||
conf.set_quoted('VERSION', meson.project_version()) | ||
conf.set_quoted('PACKAGE', meson.project_name()) | ||
conf.set_quoted('LOCALE_DIR', join_paths(get_option('prefix'), get_option('localedir'))) | ||
conf.set_quoted('DATADIR', join_paths(get_option('prefix'), get_option('datadir'))) | ||
conf.set_quoted('PKGDATADIR', join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())) | ||
|
||
configure_file( | ||
output: 'config.h', | ||
configuration: conf | ||
) | ||
config_h_dir = include_directories('src') | ||
|
||
# Arguments C - no gcc warnings | ||
c_args = [ | ||
'-include', 'config.h', | ||
'-w', '-DGETTEXT_PACKAGE="' + meson.project_name() + '"' | ||
] | ||
|
||
|
||
subdir('data') | ||
subdir('po') | ||
subdir('schemas') | ||
subdir('src') | ||
meson.add_install_script('meson_post_install.py') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
import subprocess | ||
|
||
prefix = os.environ.get('MESON_INSTALL_PREFIX', '/usr') | ||
datadir = os.path.join(prefix, 'share') | ||
|
||
# Packaging tools define DESTDIR and this isn't needed for them | ||
if 'DESTDIR' not in os.environ: | ||
|
||
|
||
print('Compiling gsettings schemas...') | ||
schema_dir = os.path.join(datadir, 'glib-2.0/schemas') | ||
subprocess.call(['glib-compile-schemas', schema_dir]) | ||
|
||
print('Updating icon cache...') | ||
icon_cache_dir = os.path.join(datadir, 'icons', 'hicolor') | ||
|
||
subprocess.call(['gtk-update-icon-cache', '-qtf', icon_cache_dir]) | ||
|
||
print('Updating desktop database...') | ||
desktop_database_dir = os.path.join(datadir, 'applications') | ||
subprocess.call(['update-desktop-database', '-q', desktop_database_dir]) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.