[gnome-games/wip/exalm/reorganize: 1/6] playstation: Move resources to src/
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/reorganize: 1/6] playstation: Move resources to src/
- Date: Thu, 10 Dec 2020 22:06:49 +0000 (UTC)
commit ca346ad6013736b2b473943e773d7efa36ab4c90
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu Dec 10 23:26:42 2020 +0500
playstation: Move resources to src/
plugins/playstation/data/meson.build | 18 ------------------
plugins/playstation/src/meson.build | 18 ++++++++++++++++++
.../org.gnome.Games.plugin.playstation.gresource.xml | 0
.../{data => src}/playstation.gameinfo.xml.in | 0
tools/update-gameinfo.sh | 2 +-
5 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/plugins/playstation/data/meson.build b/plugins/playstation/data/meson.build
index ebd98877..0d4b6c49 100644
--- a/plugins/playstation/data/meson.build
+++ b/plugins/playstation/data/meson.build
@@ -1,19 +1 @@
install_data (plugin_name + '.plugin', install_dir: plugins_dir)
-
-sed = find_program ('sed')
-
-# TODO Game titles in the gameinfo file are meant to be localized
-gameinfo = custom_target (
- 'playstation.gameinfo',
- output: 'playstation.gameinfo.xml',
- input: 'playstation.gameinfo.xml.in',
- command: [sed, '-e', 's|<_title>|<title>|g;s|</_title>|</title>|g', '@INPUT@'],
- capture: true
-)
-
-playstation_resources = gnome.compile_resources (
- 'org.gnome.Games.plugin.playstation',
- 'org.gnome.Games.plugin.playstation.gresource.xml',
- c_name: 'resources',
- dependencies: gameinfo
-)
diff --git a/plugins/playstation/src/meson.build b/plugins/playstation/src/meson.build
index c7d4f8bc..26eafeb6 100644
--- a/plugins/playstation/src/meson.build
+++ b/plugins/playstation/src/meson.build
@@ -16,6 +16,24 @@ c_args = [
'-DG_LOG_DOMAIN="GamesPlayStation"'
]
+sed = find_program ('sed')
+
+# TODO Game titles in the gameinfo file are meant to be localized
+gameinfo = custom_target (
+ 'playstation.gameinfo',
+ output: 'playstation.gameinfo.xml',
+ input: 'playstation.gameinfo.xml.in',
+ command: [sed, '-e', 's|<_title>|<title>|g;s|</_title>|</title>|g', '@INPUT@'],
+ capture: true
+)
+
+playstation_resources = gnome.compile_resources (
+ 'org.gnome.Games.plugin.playstation',
+ 'org.gnome.Games.plugin.playstation.gresource.xml',
+ c_name: 'resources',
+ dependencies: gameinfo
+)
+
shared_module (
'games-' + plugin_name + '-plugin',
vala_sources + c_sources + playstation_resources,
diff --git a/plugins/playstation/data/org.gnome.Games.plugin.playstation.gresource.xml
b/plugins/playstation/src/org.gnome.Games.plugin.playstation.gresource.xml
similarity index 100%
rename from plugins/playstation/data/org.gnome.Games.plugin.playstation.gresource.xml
rename to plugins/playstation/src/org.gnome.Games.plugin.playstation.gresource.xml
diff --git a/plugins/playstation/data/playstation.gameinfo.xml.in
b/plugins/playstation/src/playstation.gameinfo.xml.in
similarity index 100%
rename from plugins/playstation/data/playstation.gameinfo.xml.in
rename to plugins/playstation/src/playstation.gameinfo.xml.in
diff --git a/tools/update-gameinfo.sh b/tools/update-gameinfo.sh
index f7769a74..6ecb710b 100755
--- a/tools/update-gameinfo.sh
+++ b/tools/update-gameinfo.sh
@@ -1,7 +1,7 @@
#!/bin/bash
TMP_GAMEINFO_DOC='gameinfo/out/playstation.gameinfo.xml.in.tmp'
-GAMEINFO_DOC='../plugins/playstation/data/playstation.gameinfo.xml.in'
+GAMEINFO_DOC='../plugins/playstation/src/playstation.gameinfo.xml.in'
gameinfo/psxdatacenter-gameinfo.py
# Sort the existing document before merging the already sorted newly generated
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]