mirror of
https://github.com/luksamuk/engine-psx.git
synced 2025-04-28 13:28:02 +03:00
Rename internal project references to SONIC XA instead of Engine
This commit is contained in:
parent
2314fbf2f1
commit
ac420dc807
4 changed files with 21 additions and 21 deletions
|
@ -3,10 +3,10 @@ cmake_minimum_required(VERSION 3.21)
|
||||||
project(PSXEngine
|
project(PSXEngine
|
||||||
LANGUAGES C CXX ASM
|
LANGUAGES C CXX ASM
|
||||||
VERSION 0.1.0
|
VERSION 0.1.0
|
||||||
DESCRIPTION "Platformer Engine for PSX"
|
DESCRIPTION "Sonic The Hedgehog XA for PlayStation"
|
||||||
HOMEPAGE_URL "https://luksamuk.codes")
|
HOMEPAGE_URL "https://luksamuk.codes")
|
||||||
|
|
||||||
file(GLOB ENGINE_SRC
|
file(GLOB SONICXA_SRC
|
||||||
${CMAKE_CURRENT_LIST_DIR}/src/*.c
|
${CMAKE_CURRENT_LIST_DIR}/src/*.c
|
||||||
${CMAKE_CURRENT_LIST_DIR}/src/*.s)
|
${CMAKE_CURRENT_LIST_DIR}/src/*.s)
|
||||||
|
|
||||||
|
@ -31,14 +31,14 @@ endif()
|
||||||
|
|
||||||
set(CMAKE_C_FLAGS "-Wall")
|
set(CMAKE_C_FLAGS "-Wall")
|
||||||
|
|
||||||
psn00bsdk_add_executable(engine
|
psn00bsdk_add_executable(sonic
|
||||||
GPREL
|
GPREL
|
||||||
${ENGINE_SRC})
|
${SONICXA_SRC})
|
||||||
|
|
||||||
target_include_directories(engine PUBLIC
|
target_include_directories(sonic PUBLIC
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include/>)
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include/>)
|
||||||
|
|
||||||
psn00bsdk_add_cd_image(iso engine
|
psn00bsdk_add_cd_image(iso sonicxa
|
||||||
iso.xml
|
iso.xml
|
||||||
DEPENDS engine system.cnf)
|
DEPENDS sonic system.cnf)
|
||||||
|
|
||||||
|
|
24
Makefile
24
Makefile
|
@ -16,28 +16,28 @@ OMPOUT := $(addsuffix .OMP,$(basename $(LVLSRC)))
|
||||||
MDLOUT := $(addsuffix .mdl,$(basename $(MDLSRC)))
|
MDLOUT := $(addsuffix .mdl,$(basename $(MDLSRC)))
|
||||||
PRLOUT := $(addsuffix PRL.PRL,$(dir $(PRLSRC)))
|
PRLOUT := $(addsuffix PRL.PRL,$(dir $(PRLSRC)))
|
||||||
|
|
||||||
.PHONY: clean ./build/engine.cue run configure chd cook iso elf debug cooktest purge rebuild repack packrun
|
.PHONY: clean ./build/sonicxa.cue run configure chd cook iso elf debug cooktest purge rebuild repack packrun
|
||||||
|
|
||||||
# Final product is CUE+BIN files
|
# Final product is CUE+BIN files
|
||||||
all: iso
|
all: iso
|
||||||
|
|
||||||
# Targets for producing ELF, CUE+BIN and CHD files
|
# Targets for producing ELF, CUE+BIN and CHD files
|
||||||
elf: ./build/engine.elf
|
elf: ./build/sonic.elf
|
||||||
iso: ./build/engine.cue
|
iso: ./build/sonicxa.cue
|
||||||
chd: engine.chd
|
chd: sonicxa.chd
|
||||||
|
|
||||||
# Target for running the image
|
# Target for running the image
|
||||||
run: ./build/engine.cue
|
run: ./build/sonicxa.cue
|
||||||
pcsx-redux-appimage \
|
pcsx-redux-appimage \
|
||||||
-run -interpreter -fastboot -stdout \
|
-run -interpreter -fastboot -stdout \
|
||||||
-iso $<
|
-iso $<
|
||||||
|
|
||||||
# Target for running the image on Mednafen
|
# Target for running the image on Mednafen
|
||||||
run-mednafen: ./build/engine.cue
|
run-mednafen: ./build/sonicxa.cue
|
||||||
mednafen $<
|
mednafen $<
|
||||||
|
|
||||||
# Target for running the image on PCSX-ReARMed
|
# Target for running the image on PCSX-ReARMed
|
||||||
run-rearmed: ./build/engine.cue
|
run-rearmed: ./build/sonicxa.cue
|
||||||
pcsx -cdfile $<
|
pcsx -cdfile $<
|
||||||
|
|
||||||
# Run debugger
|
# Run debugger
|
||||||
|
@ -48,7 +48,7 @@ debug:
|
||||||
release: purge cook
|
release: purge cook
|
||||||
cmake --preset release .
|
cmake --preset release .
|
||||||
cd build && make iso
|
cd build && make iso
|
||||||
tochd -d . -- ./build/engine.cue
|
tochd -d . -- ./build/sonicxa.cue
|
||||||
|
|
||||||
# =======================================
|
# =======================================
|
||||||
# Targets for executable building
|
# Targets for executable building
|
||||||
|
@ -58,15 +58,15 @@ release: purge cook
|
||||||
./build: configure
|
./build: configure
|
||||||
|
|
||||||
# ELF PSX executable
|
# ELF PSX executable
|
||||||
./build/engine.elf: ./build
|
./build/sonic.elf: ./build
|
||||||
cd build && make engine
|
cd build && make sonic
|
||||||
|
|
||||||
# .CUE + .BIN (needs ELF and cooked assets)
|
# .CUE + .BIN (needs ELF and cooked assets)
|
||||||
./build/engine.cue: cook ./build/engine.elf
|
./build/sonicxa.cue: cook ./build/sonic.elf
|
||||||
cd build && make iso
|
cd build && make iso
|
||||||
|
|
||||||
# .CHD file (single-file CD image)
|
# .CHD file (single-file CD image)
|
||||||
engine.chd: ./build/engine.cue
|
sonicxa.chd: ./build/sonicxa.cue
|
||||||
tochd -d . -- $<
|
tochd -d . -- $<
|
||||||
|
|
||||||
|
|
||||||
|
|
2
iso.xml
2
iso.xml
|
@ -14,7 +14,7 @@
|
||||||
<!-- <license file="${PROJECT_SOURCE_DIR}/LCNSFILE/LICENSEJ.DAT" /> -->
|
<!-- <license file="${PROJECT_SOURCE_DIR}/LCNSFILE/LICENSEJ.DAT" /> -->
|
||||||
<directory_tree>
|
<directory_tree>
|
||||||
<file name="SYSTEM.CNF" type="data" source="${PROJECT_SOURCE_DIR}/system.cnf" />
|
<file name="SYSTEM.CNF" type="data" source="${PROJECT_SOURCE_DIR}/system.cnf" />
|
||||||
<file name="ENGINE.EXE" type="data" source="engine.exe" />
|
<file name="SONIC.EXE" type="data" source="sonic.exe" />
|
||||||
|
|
||||||
<dir name="SPRITES">
|
<dir name="SPRITES">
|
||||||
<file name="SONIC.TIM"
|
<file name="SONIC.TIM"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
BOOT=cdrom:\ENGINE.EXE;1
|
BOOT=cdrom:\SONIC.EXE;1
|
||||||
TCB=4
|
TCB=4
|
||||||
EVENT=10
|
EVENT=10
|
||||||
STACK=801FFFF0
|
STACK=801FFFF0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue