Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
Clean up build stuff
Browse files Browse the repository at this point in the history
1. We don't need an .in for metadata.json as the info never really changes.
2. We can get rid of most of the stuff in .gitignore.
3. The extension finds the locale by it's self. It doesn't need help.
  • Loading branch information
JasonLG1979 committed Jul 27, 2017
1 parent f7affc7 commit 19ffd7d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 45 deletions.
26 changes: 0 additions & 26 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,2 @@
Makefile
Makefile.in
Makefile.in.in
configure
config.log
config.status
aclocal.m4
config/
autom4te.cache/
po/POTFILES
po/stamp-it
po/*.pot
builddir/
build/
.vscode/
config/
mediaplayer@patapon.info/

*~
*.gmo
metadata.json
*.gschema.valid
gschemas.compiled
_build
zip-files
*.zip

*.swp
17 changes: 2 additions & 15 deletions src/meson.build
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
conf = configuration_data()
conf.set('LOCALEDIR', LOCALE_DIR)
conf.set('URL', URL)
conf.set('UUID', UUID)


install_data([
'dbus.js',
'extension.js',
Expand All @@ -16,7 +10,8 @@ install_data([
'stylesheet.css',
'ui.js',
'util.js',
'widget.js'
'widget.js',
'metadata.json'
],
install_dir: EXTENSION_DIR
)
Expand All @@ -25,11 +20,3 @@ install_data(
'org.gnome.shell.extensions.mediaplayer.gschema.xml',
install_dir : SCHEMA_DIR
)

configure_file(
input: 'metadata.json.in',
output: 'metadata.json',
configuration: conf,
install: true,
install_dir: EXTENSION_DIR
)
7 changes: 3 additions & 4 deletions src/metadata.json.in → src/metadata.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"uuid": "@UUID@",
"uuid": "mediaplayer@patapon.info",
"name": "Media player indicator",
"description": "Control MPRIS version 2 capable media players.",
"original-author": "eon@patapon.info",
"shell-version": ["3.18", "3.20", "3.22", "3.24"],
"url": "@URL@",
"locale": "@LOCALEDIR@"
"locale": "/usr/local/share/locale",
"url": "https://github.com/JasonLG1979/gnome-shell-extensions-mediaplayer/"
}

0 comments on commit 19ffd7d

Please sign in to comment.