mirror of
https://github.com/Ed94/pikuma_ps1.git
synced 2026-06-01 18:41:13 -07:00
setup graphics_hello_psyq
This commit is contained in:
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "The Usual",
|
||||
"includePath": [
|
||||
"${env:AppData}/mips/mips/include",
|
||||
"${workspaceFolder}/toolchain/pcsx-redux/src/mips",
|
||||
"${workspaceFolder}/toolchain/psyq-4_7/include"
|
||||
],
|
||||
"cStandard": "c17",
|
||||
"defines": [
|
||||
"__STDC_HOSTED__ = 0"
|
||||
],
|
||||
"defines": [
|
||||
"_DEBUG",
|
||||
"UNICODE",
|
||||
"_UNICODE"
|
||||
],
|
||||
"intelliSenseMode": "gcc-x86"
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
||||
Vendored
-24
@@ -4,30 +4,6 @@
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Debug: Spinning Cube",
|
||||
"type": "gdb",
|
||||
"request": "attach",
|
||||
"target": "localhost:3333",
|
||||
"remote": true,
|
||||
"cwd": "${workspaceRoot}/psxdev_sample/SpinningCube/build",
|
||||
"valuesFormatting": "parseText",
|
||||
"stopAtConnect": true,
|
||||
"gdbpath": "gdb-multiarch",
|
||||
"windows": {
|
||||
"gdbpath": "gdb-multiarch.exe"
|
||||
},
|
||||
"osx": {
|
||||
"gdbpath": "gdb"
|
||||
},
|
||||
"executable": "${workspaceRoot}/psxdev_sample/SpinningCube/build/SpinningCube.elf",
|
||||
"autorun": [
|
||||
"monitor reset shellhalt",
|
||||
"load SpinningCube.elf",
|
||||
"tbreak main",
|
||||
"continue"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Debug: Hello Psy-Q!",
|
||||
"type": "gdb",
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
.include "./toolchain/pcsx-redux/src/mips/common/crt0/crt0.s"
|
||||
@@ -1 +1,3 @@
|
||||
.include "./toolchain/pcsx-redux/src/mips/common/crt0/crt0.s"
|
||||
|
||||
|
||||
|
||||
+34
-2
@@ -20,7 +20,7 @@ $Compiler = "$($Prefix)-gcc"
|
||||
$Assembler = $Compiler
|
||||
$Objcopy = "$($Prefix)-objcopy"
|
||||
|
||||
# --- Abstracted GCC/MIPS Flags ---
|
||||
# --- GCC/MIPS Flags ---
|
||||
|
||||
# General Compiler Flags
|
||||
$f_compile = "-c"
|
||||
@@ -262,4 +262,36 @@ function build-hello_psyqo {
|
||||
link-modules @($module_hello_psyq, $module_hello_psyq_crt) $elf_hello_psyq $link_args
|
||||
make-binary $elf_hello_psyq $exe_hello_psyq
|
||||
}
|
||||
build-hello_psyqo
|
||||
# build-hello_psyqo
|
||||
|
||||
function build-double_buffer {
|
||||
$includes += @()
|
||||
|
||||
$path_module = join-path $path_code 'graphics_hello_psyq'
|
||||
|
||||
$src_asm = join-path $path_module 'hello_gpu.s'
|
||||
$module_asm = join-path $path_build 'hello_gpu.o'
|
||||
|
||||
$assemble_args = @()
|
||||
$assemble_args += $f_debug
|
||||
$assemble_args += $f_optimize_none
|
||||
assemble-unit $src_asm $module_asm $includes $assemble_args
|
||||
|
||||
$src_c = join-path $path_module 'hello_gpu.c'
|
||||
$module_c = join-path $path_build 'hello_gpu_c.o'
|
||||
|
||||
$compile_args = @()
|
||||
$compile_args += $f_debug
|
||||
$compile_args += $f_optimize_none
|
||||
# $compile_args += $f_optimize_size
|
||||
compile-unit $src_c $module_c $includes $compile_args
|
||||
|
||||
$elf = join-path $path_build 'hello_gpu.elf'
|
||||
$exe = join-path $path_build 'hello_gpu.ps-exe'
|
||||
|
||||
$link_args += $f_debug
|
||||
# $link_args += $f_optimize_size
|
||||
link-modules @($module_asm, $module_c) $elf $link_args
|
||||
make-binary $elf $exe
|
||||
}
|
||||
build-double_buffer
|
||||
|
||||
Reference in New Issue
Block a user