summaryrefslogtreecommitdiff
path: root/gui/Makefile.am
blob: 7666dfe743255e166820a49b3b41c484ae3ddb95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
AM_CPPFLAGS = -DPACKAGE_DATA_DIR=\"${datadir}/pcsxr/\" \
	-DPIXMAPDIR=\"${datadir}/pixmaps/\" \
	-DLOCALE_DIR=\"${datadir}/locale/\" \
	$(GTK3_CFLAGS) \
	-I$(top_srcdir)/libpcsxcore -I$(top_srcdir)/include \
	-DPSEMU_DATA_DIR=\"${datadir}/psemu\" \
	-DDEF_PLUGIN_DIR=\"${libdir}/games/psemu\"

bin_PROGRAMS = pcsxr

pcsxr_SOURCES = \
	LnxMain.c	\
	Linux.h		\
	nopic.h		\
	Plugin.c	\
	Config.c	\
	GtkGui.c	\
	MemcardDlg.c	\
	MemcardDlg.h	\
	ConfDlg.c	\
	ConfDlg.h	\
	Cheat.c		\
	Cheat.h		\
	DebugMemory.c	\
	DebugMemory.h	\
	AboutDlg.c	\
	AboutDlg.h	\
	GtkResources.c	\
	GtkResources.h

# gresource.xml is dynamically generated in CMake. Mirror that here in a static way.
#define gresource_xml =
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
# FIXME
export gresource_xml

pcsxr.gresource.xml:
#	$(file >$@,$(gresource_xml))
	@echo "$$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 \
	$(GTK3_LIBS) -lpthread -lz -lm -lXext -lXtst

CLEANFILES = pcsxr.gresource.xml GtkResources.c GtkResources.h