forked from ihhub/fheroes2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
845 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,3 +58,10 @@ | |
|
||
# build directory | ||
build | ||
|
||
# vita specific | ||
*.bin | ||
*.elf | ||
*.velf | ||
*.vpk | ||
*.sfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# makefile | ||
# project: Free Heroes2 | ||
# | ||
# Options: | ||
# DEBUG: build in debug mode | ||
# RELEASE: build with addons extensions | ||
# | ||
# WITHOUT_ZLIB: build without zlib (disable comressed save files) | ||
# WITHOUT_MIXER: build without SDL_mixer library | ||
# WITHOUT_AUDIOCD: disable audio cd support | ||
# WITHOUT_UNICODE: build without unicode (disable translation and ttf font) | ||
# WITHOUT_IMAGE: build without SDL_image library (disable cache image, icn2png) | ||
# WITHOUT_XML: skip build tinyxml, used for load alt. resources | ||
# WITH_TOOLS: build tools | ||
# | ||
# -DCONFIGURE_FHEROES2_LOCALEDIR: system locale dir | ||
# -DCONFIGURE_FHEROES2_DATA: system fheroes2 game dir | ||
# | ||
|
||
TARGET := fheroes2 | ||
MAKE := make | ||
|
||
PROJECT_TITLE := Free Heroes 2 | ||
PROJECT_TITLEID := FHOMM0002 | ||
PROJECT := fheroes2 | ||
|
||
all: package | ||
|
||
package: $(PROJECT).vpk | ||
|
||
$(PROJECT).vpk: eboot.bin param.sfo | ||
vita-pack-vpk -s param.sfo -b eboot.bin \ | ||
--add platforms/vita/sce_sys/icon0.png=sce_sys/icon0.png \ | ||
--add platforms/vita/sce_sys/livearea/contents/bg.png=sce_sys/livearea/contents/bg.png \ | ||
--add platforms/vita/sce_sys/livearea/contents/startup.png=sce_sys/livearea/contents/startup.png \ | ||
--add platforms/vita/sce_sys/livearea/contents/template.xml=sce_sys/livearea/contents/template.xml \ | ||
--add files/fonts/bigfonts.ttf=files/fonts/bigfonts.ttf \ | ||
--add files/fonts/dejavusans.ttf=files/fonts/dejavusans.ttf \ | ||
--add files/fonts/smallfonts.ttf=files/fonts/smallfonts.ttf \ | ||
$(PROJECT).vpk | ||
|
||
eboot.bin: $(PROJECT).velf | ||
vita-make-fself $(PROJECT).velf eboot.bin | ||
|
||
param.sfo: | ||
vita-mksfoex -s TITLE_ID="$(PROJECT_TITLEID)" "$(PROJECT_TITLE)" param.sfo | ||
|
||
$(PROJECT).velf: $(PROJECT).elf | ||
arm-vita-eabi-strip -g $< | ||
vita-elf-create $< $@ | ||
|
||
$(PROJECT).elf: | ||
$(MAKE) -f Makefile -C src VITA=true WITH_SDL2=true RELEASE=true | ||
$(MAKE) -f files/lang/Makefile | ||
@cp src/dist/$(TARGET) ./$(PROJECT).elf | ||
|
||
clean: | ||
$(MAKE) -f Makefile -C src clean | ||
$(MAKE) -f files/lang/Makefile clean | ||
@rm -rf $(TARGET).velf $(TARGET).elf $(OBJS) $(TARGET).elf.unstripped.elf $(TARGET).vpk eboot.bin sce_sys/param.sfo ./param.sfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<livearea style="a1" format-ver="01.00" content-rev="1"> | ||
<livearea-background> | ||
<image>bg.png</image> | ||
</livearea-background> | ||
|
||
<gate> | ||
<startup-image>startup.png</startup-image> | ||
</gate> | ||
</livearea> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
AR := $(VITASDK)/arm-vita-eabi/bin/ar | ||
CC := arm-vita-eabi-gcc | ||
CXX := arm-vita-eabi-g++ | ||
|
||
CFLAGS := $(CFLAGS) -DVITA -I$(VITASDK)/arm-vita-eabi/include -O1 -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard -ftree-vectorize | ||
LDFLAGS := $(LDFLAGS) -L$(VITASDK)/arm-vita-eabi/lib -L$(VITASDK)/lib -Wl,-q | ||
|
||
ifdef WITH_SDL2 | ||
SDL_LIBS := -L$(VITASDK)/arm-vita-eabi/lib -lSDL2 -lSceAudio_stub -lSceCtrl_stub -lvita2d -lSceGxm_stub -lSceHid_stub -lSceTouch_stub -lSceDisplay_stub -lSceAppMgr_stub -lSceSysmodule_stub -lSceCommonDialog_stub -lScePower_stub -lFLAC -lmikmod -lmpg123 | ||
SDL_FLAGS := -I$(VITASDK)/arm-vita-eabi/include/SDL2 -D_REENTRANT | ||
else | ||
SDL_LIBS := -L$(VITASDK)/arm-vita-eabi/lib -lSDL -lvita2d -lSceDisplay_stub -lSceCtrl_stub -lSceAudio_stub -lSceSysmodule_stub -lSceGxm_stub -lSceHid_stub -lSceAppMgr_stub -lSceCommonDialog_stub -lScePower_stub -lmikmod | ||
SDL_FLAGS := -I$(VITASDK)/arm-vita-eabi/include/SDL -D_REENTRANT | ||
endif | ||
|
||
ifndef WITHOUT_MIXER | ||
ifdef WITH_SDL2 | ||
SDL_LIBS := -lSDL2_mixer -lvorbisfile -lvorbis -logg $(SDL_LIBS) | ||
else | ||
SDL_LIBS := -lSDL_mixer -lvorbisfile -lvorbis -logg $(SDL_LIBS) | ||
endif | ||
endif | ||
|
||
ifndef WITHOUT_IMAGE | ||
ifdef WITH_SDL2 | ||
SDL_LIBS := $(SDL_LIBS) -lSDL2_image -ljpeg -lpng | ||
else | ||
SDL_LIBS := $(SDL_LIBS) -lSDL_image -ljpeg -lpng | ||
endif | ||
endif | ||
|
||
ifndef WITHOUT_UNICODE | ||
ifdef WITH_SDL2 | ||
SDL_LIBS := $(SDL_LIBS) -lSDL2_ttf -lfreetype | ||
else | ||
SDL_LIBS := $(SDL_LIBS) -lSDL_ttf -lfreetype | ||
endif | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.