mirror of
https://github.com/luksamuk/engine-psx.git
synced 2025-04-28 21:38:02 +03:00
Add Makefile and emulator support
This commit is contained in:
parent
74fe5b1750
commit
831298af17
4 changed files with 56 additions and 28 deletions
12
.gitignore
vendored
12
.gitignore
vendored
|
@ -3,3 +3,15 @@ build/
|
||||||
*~
|
*~
|
||||||
*#*#
|
*#*#
|
||||||
|
|
||||||
|
/memcard1.mcd
|
||||||
|
/memcard2.mcd
|
||||||
|
/offscreen.frag
|
||||||
|
/offscreen.lua
|
||||||
|
/offscreen.vert
|
||||||
|
/output.frag
|
||||||
|
/output.lua
|
||||||
|
/output.vert
|
||||||
|
/pcsx.json
|
||||||
|
/vram-viewer.frag
|
||||||
|
/vram-viewer.lua
|
||||||
|
/vram-viewer.vert
|
||||||
|
|
|
@ -1,26 +1,26 @@
|
||||||
{
|
{
|
||||||
"version": 3,
|
"version": 3,
|
||||||
"cmakeMinimumRequired": {
|
"cmakeMinimumRequired": {
|
||||||
"major": 3,
|
"major": 3,
|
||||||
"minor": 21,
|
"minor": 21,
|
||||||
"patch": 0
|
"patch": 0
|
||||||
},
|
},
|
||||||
"configurePresets": [
|
"configurePresets": [
|
||||||
{
|
{
|
||||||
"name": "default",
|
"name": "default",
|
||||||
"displayName": "Default configuration",
|
"displayName": "Default configuration",
|
||||||
"description": "Use this preset to build the project using PSn00bSDK.",
|
"description": "Use this preset to build the project using PSn00bSDK.",
|
||||||
"generator": "Ninja",
|
"generator": "Unix Makefiles",
|
||||||
"toolchainFile": "$env{PSN00BSDK_LIBS}/cmake/sdk.cmake",
|
"toolchainFile": "$env{PSN00BSDK_LIBS}/cmake/sdk.cmake",
|
||||||
"binaryDir": "${sourceDir}/build",
|
"binaryDir": "${sourceDir}/build",
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "Debug",
|
"CMAKE_BUILD_TYPE": "Debug",
|
||||||
"PSN00BSDK_TC": "",
|
"PSN00BSDK_TC": "",
|
||||||
"PSN00BSDK_TARGET": "mipsel-none-elf"
|
"PSN00BSDK_TARGET": "mipsel-none-elf"
|
||||||
},
|
},
|
||||||
"warnings": {
|
"warnings": {
|
||||||
"dev": false
|
"dev": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
20
Makefile
Normal file
20
Makefile
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
export PATH := /opt/psn00bsdk/bin:$(PATH)
|
||||||
|
export PSN00BSDK_LIBS := /opt/psn00bsdk/lib/libpsn00b
|
||||||
|
|
||||||
|
.PHONY: clean ./build/sonicengine.cue run
|
||||||
|
|
||||||
|
all: ./build/sonicengine.cue
|
||||||
|
dir: ./build
|
||||||
|
|
||||||
|
run: ./build/sonicengine.cue
|
||||||
|
pcsx-redux-appimage -gdb -run -interpreter \
|
||||||
|
-loadiso ./build/sonicengine.cue
|
||||||
|
|
||||||
|
./build/sonicengine.cue: ./build
|
||||||
|
cmake --build ./build
|
||||||
|
|
||||||
|
./build:
|
||||||
|
cmake --preset default .
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf ./build
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
cmake --preset default .
|
|
||||||
cmake --build ./build
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue