aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dingux/dingux.mk
blob: f02801ea986e2f59f6bc29ed60f5503788ee3995 (plain)
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
DINGUX_EXE_STRIPPED := scummvm_stripped$(EXEEXT)

bundle_name = dingux-dist/scummvm
gcw0_bundle = gcw0-opk

all: $(DINGUX_EXE_STRIPPED)

$(DINGUX_EXE_STRIPPED): $(EXECUTABLE)
	$(STRIP) $< -o $@

dingux-distclean:
	rm -rf $(bundle_name)
	rm $(DINGUX_EXE_STRIPPED)

dingux-dist: all
	$(MKDIR) $(bundle_name)
	$(MKDIR) $(bundle_name)/saves
	$(STRIP) $(EXECUTABLE) -o $(bundle_name)/scummvm.elf
	$(CP) $(DIST_FILES_THEMES) $(bundle_name)/
ifdef DIST_FILES_ENGINEDATA
	$(CP) $(DIST_FILES_ENGINEDATA) $(bundle_name)/
endif
	$(CP) $(DIST_FILES_DOCS) $(bundle_name)/
ifdef DYNAMIC_MODULES
		$(MKDIR) $(bundle_name)/plugins
		$(CP) $(PLUGINS) $(bundle_name)/plugins
		$(STRIP) $(bundle_name)/plugins/*
endif
	$(CP) $(srcdir)/backends/vkeybd/packs/vkeybd_default.zip $(bundle_name)/
	$(CP) $(srcdir)/backends/vkeybd/packs/vkeybd_small.zip $(bundle_name)/
	$(CP) $(srcdir)/backends/platform/dingux/scummvm.gpe $(bundle_name)/
	$(CP) $(srcdir)/backends/platform/dingux/README.DINGUX $(bundle_name)/
	$(CP) $(srcdir)/backends/platform/dingux/scummvm.png $(bundle_name)/

# Special target for generationg GCW-Zero OPK bundle
gcw0-opk: all
	$(MKDIR) $(gcw0_bundle)
	$(CP) $(DIST_FILES_DOCS) $(gcw0_bundle)/
	$(MKDIR) $(gcw0_bundle)/themes
	$(CP) $(DIST_FILES_THEMES) $(gcw0_bundle)/themes/
ifdef DIST_FILES_ENGINEDATA
	$(MKDIR) $(gcw0_bundle)/engine-data
	$(CP) $(DIST_FILES_ENGINEDATA) $(gcw0_bundle)/engine-data/
endif
ifdef DYNAMIC_MODULES
	$(MKDIR) $(gcw0_bundle)/plugins
	$(CP) $(PLUGINS) $(gcw0_bundle)/plugins/
	$(STRIP) $(gcw0_bundle)/plugins/*
endif
	$(STRIP) $(EXECUTABLE) -o $(gcw0_bundle)/scummvm

	$(CP) $(srcdir)/backends/vkeybd/packs/vkeybd_default.zip $(gcw0_bundle)/
	$(CP) $(srcdir)/backends/vkeybd/packs/vkeybd_small.zip $(gcw0_bundle)/

	$(CP) $(srcdir)/dists/gcw0/scummvm.png $(gcw0_bundle)/
	$(CP) $(srcdir)/dists/gcw0/default.gcw0.desktop $(gcw0_bundle)/
	$(CP) $(srcdir)/dists/gcw0/scummvmrc $(gcw0_bundle)/
	$(CP) $(srcdir)/dists/gcw0/scummvm.sh $(gcw0_bundle)/
	./dists/gcw0/opk_make.sh -d $(gcw0_bundle) -o scummvm