Misc changes
Update gitignore + adding some agent skills and tweaking workflows. Also updated some scipts
This commit is contained in:
@@ -11,3 +11,4 @@ Functions are CamelCase.
|
|||||||
Add Assert to make sure all assumptions are good. Parameters of functions for example should be verified with Assert.
|
Add Assert to make sure all assumptions are good. Parameters of functions for example should be verified with Assert.
|
||||||
Code should be self commented using proper variable names, types and functions. No need to add comments most of the time, unless the algorithm is very complex and hard to read.
|
Code should be self commented using proper variable names, types and functions. No need to add comments most of the time, unless the algorithm is very complex and hard to read.
|
||||||
When creating a new system framework, make a unit test. To make the unit test we should not modify the framework code for special unit test case.
|
When creating a new system framework, make a unit test. To make the unit test we should not modify the framework code for special unit test case.
|
||||||
|
Always put braces for if,else,for,while etc.
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
name: C++ Game Engine Programmer
|
name: C++ Game Engine Programmer
|
||||||
description: An expert C++ systems programmer specialized in game engine architecture, memory management, and D3D12 graphics.
|
description: An expert C++ systems programmer specialized in game engine architecture, memory management, and D3D12 graphics.
|
||||||
|
trusted_commands:
|
||||||
|
- "*agent_build.bat *"
|
||||||
---
|
---
|
||||||
|
|
||||||
# C++ Game Engine Programmer Skill
|
# C++ Game Engine Programmer Skill
|
||||||
|
|||||||
@@ -3,14 +3,15 @@ description: Build the Juliet project using FastBuild
|
|||||||
---
|
---
|
||||||
|
|
||||||
// turbo-all
|
// turbo-all
|
||||||
|
// @auto-approve: true
|
||||||
|
|
||||||
This workflow sets up the Juliet build environment and runs `fbuild`.
|
This workflow sets up the Juliet build environment and runs `fbuild`.
|
||||||
|
|
||||||
1. To build a specific configuration (e.g., msvc-Debug):
|
1. To build a specific configuration (e.g., msvc-Debug):
|
||||||
`cmd /c "misc\shell.bat & fbuild msvc-Debug"`
|
`misc\agent_build.bat clang-Debug"`
|
||||||
|
|
||||||
2. To build the default clang:
|
2. To build the default clang:
|
||||||
`cmd /c "misc\shell.bat & fbuild clang"`
|
`misc\agent_build.bat clang"`
|
||||||
|
|
||||||
3. To see all available targets:
|
3. To see all available targets:
|
||||||
`cmd /c "misc\shell.bat & fbuild -showtargets"`
|
`misc\agent_build.bat -showtargets"`
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
---
|
---
|
||||||
description: Recompile shaders for the Juliet project
|
description: Recompile shaders for the Juliet project
|
||||||
---
|
---
|
||||||
|
|
||||||
// turbo-all
|
// turbo-all
|
||||||
|
|
||||||
This workflow recompiles all shaders using the `recompile_shaders.bat` script.
|
This workflow recompiles all shaders using the `recompile_shaders.bat` script.
|
||||||
|
|
||||||
1. Recompile all shaders:
|
1. Recompile all shaders:
|
||||||
`cmd /c "misc\shell.bat & misc\recompile_shaders.bat"`
|
`misc\recompile_shaders.bat"`
|
||||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -14,6 +14,10 @@
|
|||||||
.vs/
|
.vs/
|
||||||
[Ii]ntermediate/
|
[Ii]ntermediate/
|
||||||
|
|
||||||
|
# Logs
|
||||||
|
build_*.txt
|
||||||
|
launch_*.txt
|
||||||
|
|
||||||
# Prerequisites
|
# Prerequisites
|
||||||
*.d
|
*.d
|
||||||
|
|
||||||
|
|||||||
3
misc/agent_build.bat
Normal file
3
misc/agent_build.bat
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
@echo off
|
||||||
|
call misc\shell.bat
|
||||||
|
fbuild %* -cache
|
||||||
@@ -55,14 +55,8 @@ echo Config: %CONFIG%
|
|||||||
:: --- 4. Execution ---
|
:: --- 4. Execution ---
|
||||||
if exist "%APP_DIR%\%APP_EXE%" (
|
if exist "%APP_DIR%\%APP_EXE%" (
|
||||||
pushd "%APP_DIR%"
|
pushd "%APP_DIR%"
|
||||||
start "" "%APP_EXE%"
|
"%APP_EXE%" %*
|
||||||
popd
|
popd
|
||||||
|
|
||||||
if "%AUTOCLOSE%"=="1" (
|
|
||||||
echo [AUTOCLOSE] Waiting 5 seconds...
|
|
||||||
timeout /t 5 /nobreak >nul
|
|
||||||
taskkill /IM "%APP_EXE%" /F >nul 2>&1
|
|
||||||
)
|
|
||||||
) else (
|
) else (
|
||||||
echo [ERROR] Executable not found at: %APP_DIR%\%APP_EXE%
|
echo [ERROR] Executable not found at: %APP_DIR%\%APP_EXE%
|
||||||
echo Please build first: fbuild JulietApp-%PLATFORM%-%CONFIG%
|
echo Please build first: fbuild JulietApp-%PLATFORM%-%CONFIG%
|
||||||
|
|||||||
Reference in New Issue
Block a user