Create project

This commit is contained in:
jaby 2022-04-24 15:11:24 +02:00
commit 7dac721f10
7 changed files with 190 additions and 0 deletions

9
.gitignore vendored Normal file
View File

@ -0,0 +1,9 @@
# For now we ignore what is in root
**/bin
**/iso/Info
/iso
*.dep
*.o
*.ii
*.s

50
Code/Makefile Normal file
View File

@ -0,0 +1,50 @@
BINDIR ?= bin/
PCSX_REDUX ?= ../../../GIT/pcsx-redux/src/mips
PSYQ_PATH ?= ../../../PSYQ/Converted
TARGET = JabyEngine
TYPE = ps-exe
BUILD = Release
#OVERLAYSCRIPT ?= overlay.ld
#OVERLAYSECTION ?= .ovly0 .ovly1
rwildcard = $(wildcard $(addprefix $1/*.,$2)) $(foreach d,$(wildcard $1/*),$(call rwildcard,$d,$2))
#Source list
SRCS = $(call rwildcard, src, c cpp)
SRCS += $(PCSX_REDUX)/common/crt0/crt0.s
CPPFLAGS += -I$(PSYQ_PATH)/Include
LDFLAGS += -L$(PSYQ_PATH)/Lib
LDFLAGS += -Wl,--start-group
LDFLAGS += -lapi
LDFLAGS += -lc
LDFLAGS += -lc2
LDFLAGS += -lcard
LDFLAGS += -lcomb
LDFLAGS += -lds
LDFLAGS += -letc
LDFLAGS += -lgpu
LDFLAGS += -lgs
LDFLAGS += -lgte
LDFLAGS += -lgun
LDFLAGS += -lhmd
LDFLAGS += -lmath
LDFLAGS += -lmcrd
LDFLAGS += -lmcx
LDFLAGS += -lpad
LDFLAGS += -lpress
LDFLAGS += -lsio
LDFLAGS += -lsnd
LDFLAGS += -lspu
LDFLAGS += -ltap
LDFLAGS += -lcd
LDFLAGS += -Wl,--end-group
include $(PCSX_REDUX)/common.mk
fullclean: clean
rm -fr iso/Info/* bin/GlobalLBATable.bin
rebuild: fullclean all

4
Code/iso/JabyEngine.cnf Normal file
View File

@ -0,0 +1,4 @@
BOOT=cdrom:\SCES_003.90;1
TCB=4
EVENT=10
STACK=801FFFF0

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<iso_project image_name="iso/JabyEngine.bin" cue_sheet="iso/JabyEngine.cue" no_xa="0">
<track type="data">
<identifiers
system = "PLAYSTATION"
application = "PLAYSTATION"
volume = "MYDISC"
volume_set = "MYDISC"
publisher = "JABY"
data_preparer = "MKPSXISO"
copyright = "COPYLEFT"
/>
<license file="../../PSYQ/psyq/cdgen/LCNSFILE/LICENSEE.DAT"/>
<directory_tree>
<file name="SYSTEM.CNF" type="data" source="Code/iso/JabyEngine.cnf"/>
<file name="SCES_003.90" type="data" source="Code/bin/JabyEngine.ps-exe"/>
<dummy sectors="1024"/>
</directory_tree>
</track>
<!--<track type="audio" source="..\Ressources\fox.wav"/>-->
<!--<track type="audio" source="..\Ressources\shark.wav"/>-->
</iso_project>

View File

@ -0,0 +1,14 @@
{
"Output":"Code/bin/GlobalLBATable.bin",
"Input":"Code/iso/Info/JabyEngine.lba",
"Order": [
"BOOT/SPLASH.TIM",
"MAIN/OVERLAY.OVL",
"TILESET/START.BIN",
"TILESET/DEBUG.BIN",
"MAIN/AREA/START.ARA",
"SPRITE/TEST.BIN",
"SOUND/TEST.VAG",
"XA/NEGA.XA"
]
}

7
Code/src/JabyEngine.cpp Normal file
View File

@ -0,0 +1,7 @@
#include <stdio.h>
int main()
{
printf("Hello Planschi!\n");
return 0;
}

82
JabyEngine.code-workspace Normal file
View File

@ -0,0 +1,82 @@
{
"folders": [
{
"path": "."
}
],
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "make",
"type": "shell",
"command": "wsl make ${input:target} BUILD=${input:build}",
"options": {
"cwd": "Code"
},
"problemMatcher": []
},
{
"label": "finalize",
"type": "shell",
"command": "FinalizeCD.bat ${input:finalize} JabyEngine Code\\iso",
"options": {
"env": {
"PATH": "../../Tools/;../../Tools/mkpsxiso;${env:PATH}"
}
},
"problemMatcher": [],
},
{
"label": "make project",
"type": "shell",
"dependsOrder": "sequence",
"dependsOn": ["make", "finalize"],
"group": {
"kind": "build",
"isDefault": true
}
},
],
"inputs": [
{
"id": "build",
"type": "pickString",
"description": "Build type to use",
"options": ["Debug", "Release"],
"default": "Release"
},
{
"id": "target",
"type": "pickString",
"description": "Target to build",
"options": ["", "rebuild", "fullclean", "clean"],
"default": ""
},
{
"id": "finalize",
"type": "pickString",
"description": "Mode for FinalizeCD",
"options": ["all", "calculate", "skip"],
"default": "all"
}
],
},
"settings": {
"C_Cpp.default.name": "PSX",
"C_Cpp.default.includePath": [
"../../PSYQ/Converted/Include"
],
"C_Cpp.default.compilerPath": "",
"C_Cpp.default.cStandard": "c17",
"C_Cpp.default.cppStandard": "c++20",
"C_Cpp.default.compilerArgs": [
],
"C_Cpp.default.defines": [
],
"files.exclude": {
"**/*.o": true,
"**/*.dep": true
}
}
}