aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/switch/switch.mk
blob: 0f5e23f15790f6b99a5432a8a1af7c21d9e03bd2 (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
scummvm.nro: $(EXECUTABLE)
	mkdir -p ./switch_release/scummvm/data
	mkdir -p ./switch_release/scummvm/doc
	nacptool --create "ScummVM" "Cpasjuste" "$(VERSION)" ./switch_release/scummvm.nacp
	elf2nro $(EXECUTABLE) ./switch_release/scummvm/scummvm.nro --icon=$(srcdir)/dists/switch/icon.jpg --nacp=./switch_release/scummvm.nacp

switch_release: scummvm.nro
	rm -f ./switch_release/scummvm.nacp
	cp $(srcdir)/backends/vkeybd/packs/vkeybd_default.zip ./switch_release/scummvm/data
	cp $(srcdir)/backends/vkeybd/packs/vkeybd_small.zip ./switch_release/scummvm/data
	cp $(DIST_FILES_THEMES) ./switch_release/scummvm/data
ifdef DIST_FILES_ENGINEDATA
	cp $(DIST_FILES_ENGINEDATA) ./switch_release/scummvm/data
endif
	cp $(DIST_FILES_DOCS) ./switch_release/scummvm/doc/

scummvm_switch.zip: scummvm.nro
	rm -f ./switch_release/scummvm.nacp
	cp $(srcdir)/backends/vkeybd/packs/vkeybd_default.zip ./switch_release/scummvm/data
	cp $(srcdir)/backends/vkeybd/packs/vkeybd_small.zip ./switch_release/scummvm/data
	cp $(DIST_FILES_THEMES) ./switch_release/scummvm/data
ifdef DIST_FILES_ENGINEDATA
	cp $(DIST_FILES_ENGINEDATA) ./switch_release/scummvm/data
endif
	cp $(DIST_FILES_DOCS) ./switch_release/scummvm/doc/
	cd ./switch_release && zip -r ../scummvm_switch.zip . && cd ..

.PHONY: scummvm.nro switch_release scummvm_switch.zip