[gnome-games] Replace pc-engine plugin by turbografx-cd plugin
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] Replace pc-engine plugin by turbografx-cd plugin
- Date: Fri, 26 May 2017 05:44:16 +0000 (UTC)
commit 96be049fe30166a9c35ee83af010dd9bbe640b2c
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu May 25 17:36:48 2017 +0200
Replace pc-engine plugin by turbografx-cd plugin
The pc-engine plugin stopped handling all TurboGrafx-16 related types in
the previous commit and was only handling the TurboGrafx-CD types. This
replacement makes the role of this plugin more clear.
https://bugzilla.gnome.org/show_bug.cgi?id=783111
configure.ac | 2 +-
plugins/Makefile.am | 8 +++---
plugins/pc-engine/configure.ac | 14 ----------
plugins/pc-engine/data/pc-engine.plugin | 6 ----
plugins/{pc-engine => turbografx-cd}/Makefile.am | 0
plugins/turbografx-cd/configure.ac | 14 ++++++++++
.../{pc-engine => turbografx-cd}/data/Makefile.am | 2 +-
plugins/turbografx-cd/data/turbografx-cd.plugin | 6 ++++
.../{pc-engine => turbografx-cd}/src/Makefile.am | 26 ++++++++++----------
.../src/turbografx-cd-error.vala} | 2 +-
.../src/turbografx-cd-plugin.vala} | 6 ++--
11 files changed, 43 insertions(+), 43 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index fce62d5..6e9210b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,12 +29,12 @@ m4_include([plugins/libretro/configure.ac])
m4_include([plugins/love/configure.ac])
m4_include([plugins/mame/configure.ac])
m4_include([plugins/nintendo-ds/configure.ac])
-m4_include([plugins/pc-engine/configure.ac])
m4_include([plugins/playstation/configure.ac])
m4_include([plugins/sega-cd/configure.ac])
m4_include([plugins/sega-saturn/configure.ac])
m4_include([plugins/snes/configure.ac])
m4_include([plugins/steam/configure.ac])
+m4_include([plugins/turbografx-cd/configure.ac])
m4_include([plugins/wii/configure.ac])
m4_include([plugins/wii-ware/configure.ac])
m4_include([plugins/wonderswan/configure.ac])
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 4bcf145..19a7011 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -28,10 +28,6 @@ if ENABLE_NINTENDO_DS_PLUGIN
SUBDIRS += nintendo-ds
endif
-if ENABLE_PC_ENGINE_PLUGIN
-SUBDIRS += pc-engine
-endif
-
if ENABLE_PLAYSTATION_PLUGIN
SUBDIRS += playstation
endif
@@ -52,6 +48,10 @@ if ENABLE_STEAM_PLUGIN
SUBDIRS += steam
endif
+if ENABLE_TURBOGRAFX_CD_PLUGIN
+SUBDIRS += turbografx-cd
+endif
+
if ENABLE_WII_PLUGIN
SUBDIRS += wii
endif
diff --git a/plugins/pc-engine/Makefile.am b/plugins/turbografx-cd/Makefile.am
similarity index 100%
rename from plugins/pc-engine/Makefile.am
rename to plugins/turbografx-cd/Makefile.am
diff --git a/plugins/turbografx-cd/configure.ac b/plugins/turbografx-cd/configure.ac
new file mode 100644
index 0000000..25d701c
--- /dev/null
+++ b/plugins/turbografx-cd/configure.ac
@@ -0,0 +1,14 @@
+PKG_CHECK_MODULES(TURBOGRAFX_CD_PLUGIN, [
+ gio-2.0
+ glib-2.0 >= $GLIB_MIN_VERSION
+ gtk+-3.0
+ retro-gtk-0.10
+], [enable_turbografx_cd_plugin=yes], [enable_turbografx_cd_plugin=no])
+
+AM_CONDITIONAL(ENABLE_TURBOGRAFX_CD_PLUGIN, test x$enable_turbografx_cd_plugin != xno)
+
+AC_CONFIG_FILES([
+ plugins/turbografx-cd/Makefile
+ plugins/turbografx-cd/data/Makefile
+ plugins/turbografx-cd/src/Makefile
+])
diff --git a/plugins/pc-engine/data/Makefile.am b/plugins/turbografx-cd/data/Makefile.am
similarity index 71%
rename from plugins/pc-engine/data/Makefile.am
rename to plugins/turbografx-cd/data/Makefile.am
index 4ff303d..7d5bc5c 100644
--- a/plugins/pc-engine/data/Makefile.am
+++ b/plugins/turbografx-cd/data/Makefile.am
@@ -1,6 +1,6 @@
EXTRA_DIST = $(plugin_DATA)
plugindir = $(libdir)/gnome-games/plugins
-dist_plugin_DATA = pc-engine.plugin
+dist_plugin_DATA = turbografx-cd.plugin
-include $(top_srcdir)/git.mk
diff --git a/plugins/turbografx-cd/data/turbografx-cd.plugin b/plugins/turbografx-cd/data/turbografx-cd.plugin
new file mode 100644
index 0000000..277cd3b
--- /dev/null
+++ b/plugins/turbografx-cd/data/turbografx-cd.plugin
@@ -0,0 +1,6 @@
+[Plugin]
+Module=libgames-turbografx-cd-plugin
+Name=TurboGrafx-CD Plugin
+Description=Provides support for TurboGrafx-CD games.
+Authors=Adrien Plazas <kekun plazas laposte net>
+Copyright=Copyright © 2017 Adrien Plazas
diff --git a/plugins/pc-engine/src/Makefile.am b/plugins/turbografx-cd/src/Makefile.am
similarity index 50%
rename from plugins/pc-engine/src/Makefile.am
rename to plugins/turbografx-cd/src/Makefile.am
index c3d0edd..ccdb9c1 100644
--- a/plugins/pc-engine/src/Makefile.am
+++ b/plugins/turbografx-cd/src/Makefile.am
@@ -1,39 +1,39 @@
plugindir = $(libdir)/gnome-games/plugins
-plugin_LTLIBRARIES = libgames-pc-engine-plugin.la
+plugin_LTLIBRARIES = libgames-turbografx-cd-plugin.la
-libgames_pc_engine_plugin_la_DEPENDENCIES = \
+libgames_turbografx_cd_plugin_la_DEPENDENCIES = \
$(top_builddir)/src/gnome-games.vapi \
$(NULL)
-libgames_pc_engine_plugin_la_SOURCES = \
- pc-engine-error.vala \
- pc-engine-plugin.vala \
+libgames_turbografx_cd_plugin_la_SOURCES = \
+ turbografx-cd-error.vala \
+ turbografx-cd-plugin.vala \
$(NULL)
-libgames_pc_engine_plugin_la_VALAFLAGS = \
+libgames_turbografx_cd_plugin_la_VALAFLAGS = \
--target-glib=@GLIB_MIN_VERSION@ \
--pkg gnome-games \
--vapidir $(top_builddir)/src \
$(NULL)
-libgames_pc_engine_plugin_la_CFLAGS = \
- $(PC_ENGINE_PLUGIN_CFLAGS) \
+libgames_turbografx_cd_plugin_la_CFLAGS = \
+ $(TURBOGRAFX_CD_PLUGIN_CFLAGS) \
$(GNOME_GAMES_CFLAGS) \
- -DG_LOG_DOMAIN=\"GamesDesktop\" \
+ -DG_LOG_DOMAIN=\"GamesTurboGrafxCD\" \
-DLOCALEDIR=\"$(localedir)\" \
$(NULL)
-libgames_pc_engine_plugin_la_CPPFLAGS = \
+libgames_turbografx_cd_plugin_la_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/src \
$(NULL)
-libgames_pc_engine_plugin_la_LIBADD = \
- $(PC_ENGINE_PLUGIN_LIBS) \
+libgames_turbografx_cd_plugin_la_LIBADD = \
+ $(TURBOGRAFX_CD_PLUGIN_LIBS) \
$(GNOME_GAMES_LIBS) \
$(NULL)
-libgames_pc_engine_plugin_la_LDFLAGS = \
+libgames_turbografx_cd_plugin_la_LDFLAGS = \
-no-undefined \
-module \
-avoid-version \
diff --git a/plugins/pc-engine/src/pc-engine-error.vala b/plugins/turbografx-cd/src/turbografx-cd-error.vala
similarity index 61%
rename from plugins/pc-engine/src/pc-engine-error.vala
rename to plugins/turbografx-cd/src/turbografx-cd-error.vala
index 06eae08..76cd8c0 100644
--- a/plugins/pc-engine/src/pc-engine-error.vala
+++ b/plugins/turbografx-cd/src/turbografx-cd-error.vala
@@ -1,5 +1,5 @@
// This file is part of GNOME Games. License: GPL-3.0+.
-private errordomain Games.PcEngineError {
+private errordomain Games.TurboGrafxCDError {
INVALID_DISC,
}
diff --git a/plugins/pc-engine/src/pc-engine-plugin.vala b/plugins/turbografx-cd/src/turbografx-cd-plugin.vala
similarity index 90%
rename from plugins/pc-engine/src/pc-engine-plugin.vala
rename to plugins/turbografx-cd/src/turbografx-cd-plugin.vala
index 42f8a3e..71258b6 100644
--- a/plugins/pc-engine/src/pc-engine-plugin.vala
+++ b/plugins/turbografx-cd/src/turbografx-cd-plugin.vala
@@ -1,6 +1,6 @@
// This file is part of GNOME Games. License: GPL-3.0+.
-private class Games.PcEnginePlugin : Object, Plugin {
+private class Games.TurboGrafxCDPlugin : Object, Plugin {
private const string FINGERPRINT_PREFIX = "pc-engine";
private const string MIME_TYPE = "application/x-pc-engine-rom";
private const string CUE_MIME_TYPE = "application/x-cue";
@@ -21,7 +21,7 @@ private class Games.PcEnginePlugin : Object, Plugin {
private static Game game_for_uri (Uri uri) throws Error {
if (!is_valid_disc (uri))
- throw new PcEngineError.INVALID_DISC ("“%s” isn’t a valid PC-Engine CD-ROM² disc.",
uri.to_string ());
+ throw new TurboGrafxCDError.INVALID_DISC ("“%s” isn’t a valid TurboGrafx-CD disc.",
uri.to_string ());
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
@@ -69,5 +69,5 @@ private class Games.PcEnginePlugin : Object, Plugin {
[ModuleInit]
public Type register_games_plugin (TypeModule module) {
- return typeof(Games.PcEnginePlugin);
+ return typeof (Games.TurboGrafxCDPlugin);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]