diff options
author | Bastien Bouclet | 2019-10-13 20:58:19 +0200 |
---|---|---|
committer | Bastien Bouclet | 2019-10-14 21:22:23 +0200 |
commit | f22e07825f9dfeec96edffe8ef435ffbfb75ef84 (patch) | |
tree | b92b7e9287659d624c1d003a23bcb3dcdcc90988 /backends/platform/3ds/3ds.mk | |
parent | 904a00f4463ea4749dba8e354b8dfd8c53074a8d (diff) | |
download | scummvm-rg350-f22e07825f9dfeec96edffe8ef435ffbfb75ef84.tar.gz scummvm-rg350-f22e07825f9dfeec96edffe8ef435ffbfb75ef84.tar.bz2 scummvm-rg350-f22e07825f9dfeec96edffe8ef435ffbfb75ef84.zip |
3DS: Embed ScummVM's support files in the package
Diffstat (limited to 'backends/platform/3ds/3ds.mk')
-rw-r--r-- | backends/platform/3ds/3ds.mk | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/backends/platform/3ds/3ds.mk b/backends/platform/3ds/3ds.mk index 7cb162ff88..dcb7b5e3ab 100644 --- a/backends/platform/3ds/3ds.mk +++ b/backends/platform/3ds/3ds.mk @@ -21,21 +21,40 @@ clean: clean_3ds clean_3ds: $(RM) $(TARGET).3dsx $(RM) $(TARGET).cia + $(RM) -rf romfs + +romfs: $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA) $(DIST_FILES_NETWORKING) $(DIST_FILES_VKEYBD) + @rm -rf romfs + @mkdir -p romfs + @cp $(DIST_FILES_THEMES) romfs/ +ifdef DIST_FILES_ENGINEDATA + @cp $(DIST_FILES_ENGINEDATA) romfs/ +endif +ifdef DIST_FILES_NETWORKING + @cp $(DIST_FILES_NETWORKING) romfs/ +endif +ifdef DIST_FILES_VKEYBD + @cp $(DIST_FILES_VKEYBD) romfs/ +endif $(TARGET).smdh: $(APP_ICON) @smdhtool --create "$(APP_TITLE)" "$(APP_DESCRIPTION)" "$(APP_AUTHOR)" $(APP_ICON) $@ @echo built ... $(notdir $@) -$(TARGET).3dsx: $(EXECUTABLE) $(TARGET).smdh - @3dsxtool $< $@ --smdh=$(TARGET).smdh +$(TARGET).3dsx: $(EXECUTABLE) $(TARGET).smdh romfs + @3dsxtool $< $@ --smdh=$(TARGET).smdh --romfs=romfs @echo built ... $(notdir $@) $(TARGET).bnr: $(APP_BANNER_IMAGE) $(APP_BANNER_AUDIO) @bannertool makebanner -o $@ -i $(APP_BANNER_IMAGE) -a $(APP_BANNER_AUDIO) @echo built ... $(notdir $@) - -$(TARGET).cia: $(EXECUTABLE) $(APP_RSF) $(TARGET).smdh $(TARGET).bnr - @makerom -f cia -target t -exefslogo -o $@ -elf $(EXECUTABLE) -rsf $(APP_RSF) -banner $(TARGET).bnr -icon $(TARGET).smdh + +$(TARGET).romfs: romfs + @3dstool -cvtf romfs $(TARGET).romfs --romfs-dir romfs + @echo built ... $(notdir $@) + +$(TARGET).cia: $(EXECUTABLE) $(APP_RSF) $(TARGET).smdh $(TARGET).bnr $(TARGET).romfs + @makerom -f cia -target t -exefslogo -o $@ -elf $(EXECUTABLE) -rsf $(APP_RSF) -banner $(TARGET).bnr -icon $(TARGET).smdh -romfs $(TARGET).romfs @echo built ... $(notdir $@) #--------------------------------------------------------------------------------- |