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
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"name": "default",
|
||||
"displayName": "Default configuration",
|
||||
"description": "Use this preset to build the project using PSn00bSDK.",
|
||||
"generator": "Ninja",
|
||||
"generator": "Unix Makefiles",
|
||||
"toolchainFile": "$env{PSN00BSDK_LIBS}/cmake/sdk.cmake",
|
||||
"binaryDir": "${sourceDir}/build",
|
||||
"cacheVariables": {
|
||||
|
|
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