summaryrefslogtreecommitdiff
path: root/gui/Makefile.am
diff options
context:
space:
mode:
authorStelios Tsampas <loathingkernel@gmail.com>2017-07-17 16:43:15 +0300
committerStelios Tsampas <loathingkernel@gmail.com>2017-07-17 16:43:15 +0300
commitaa295feb0d95d75f10f4ac097fdb1139428e1220 (patch)
tree5fedaaad720a1ec1f53bdb26a67bb57d21598e17 /gui/Makefile.am
parent9f2574f34ef6f010e50b17c7dc1acf18e00a2a34 (diff)
downloadpcsxr-aa295feb0d95d75f10f4ac097fdb1139428e1220.tar.gz
* Bring main Linux(gtk) UI up to date to remove deprecated warnings.
Diffstat (limited to 'gui/Makefile.am')
-rw-r--r--gui/Makefile.am50
1 files changed, 49 insertions, 1 deletions
diff --git a/gui/Makefile.am b/gui/Makefile.am
index 5feb39ea..ebae1d48 100644
--- a/gui/Makefile.am
+++ b/gui/Makefile.am
@@ -24,7 +24,55 @@ pcsxr_SOURCES = \
DebugMemory.c \
DebugMemory.h \
AboutDlg.c \
- AboutDlg.h
+ AboutDlg.h \
+ GtkResources.c \
+ GtkResources.h
+
+# gresource.xml is dynamically generated in CMake. Mirror that here in a static way.
+define gresource_xml =
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+ <gresource prefix="/org/pcsxr/gui">
+ <file>pcsxr.ui</file>
+ <file>pixmaps/pcsxr-about.png</file>
+ <file>pixmaps/pcsxr-cd-open.png</file>
+ <file>pixmaps/pcsxr-cheats-browse.png</file>
+ <file>pixmaps/pcsxr-cheats-search.png</file>
+ <file>pixmaps/pcsxr-cheats.png</file>
+ <file>pixmaps/pcsxr-cpu.png</file>
+ <file>pixmaps/pcsxr-exit.png</file>
+ <file>pixmaps/pcsxr-icon.png</file>
+ <file>pixmaps/pcsxr-iso-open.png</file>
+ <file>pixmaps/pcsxr-iso-reopen.png</file>
+ <file>pixmaps/pcsxr-load-state.png</file>
+ <file>pixmaps/pcsxr-memcard.png</file>
+ <file>pixmaps/pcsxr-memory-dump.png</file>
+ <file>pixmaps/pcsxr-play.png</file>
+ <file>pixmaps/pcsxr-plugin-cdr.png</file>
+ <file>pixmaps/pcsxr-plugin-gpu.png</file>
+ <file>pixmaps/pcsxr-plugin-netplay.png</file>
+ <file>pixmaps/pcsxr-plugin-pad.png</file>
+ <file>pixmaps/pcsxr-plugin-sio1.png</file>
+ <file>pixmaps/pcsxr-plugin-spu.png</file>
+ <file>pixmaps/pcsxr-reset.png</file>
+ <file>pixmaps/pcsxr-run-bios.png</file>
+ <file>pixmaps/pcsxr-run-exe.png</file>
+ <file>pixmaps/pcsxr-save-state.png</file>
+ <file>pixmaps/pcsxr-settings.png</file>
+ <file>pixmaps/pcsxr-shutdown.png</file>
+ <file>pixmaps/pcsxr.png</file>
+ </gresource>
+</gresources>
+endef
+
+pcsxr.gresource.xml:
+ $(file >$@,$(gresource_xml))
+pcsxr_gresource: pcsxr.gresource.xml
+ $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/data --generate-dependencies $(srcdir)/$<)
+GtkResources.c: pcsxr.gresource.xml $(pcsxr_gresource)
+ $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/data --generate-source --c-name pcsxr $<
+GtkResources.h: pcsxr.gresource.xml $(pcsxr_gresource)
+ $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/data --generate-header --c-name pcsxr $<
pcsxr_LDADD = \
../libpcsxcore/libpcsxcore.a \