diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-08-18 23:11:29 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-08-18 23:11:29 -0400 |
commit | 8c5f06c37f3c267ecd8f867cd49765c366b5f47c (patch) | |
tree | f8ec31daa1e050c0f5205d32cebe68ce5df65f6f /build.sh | |
parent | 9062e0aae9f2f576b7a237c28028aa6b09feee5e (diff) |
many additions
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -5,6 +5,8 @@ IMGUI=0 # Compile ImGui libs. Our custom ImGui functions still compi THREADED=1 # Compile with threading. Useful to disable when stepping through the renderer. WINDOWS=0 # Compile for Windows with Mingw. ARM=0 # Compile on ARM machines. +PACKEDRGB=0 # Use 4x4 chunks for the software rasterizer. +PERF=0 # Print cycle stats. FFMPEG_LIBS=" libavdevice @@ -60,6 +62,12 @@ ADDITIONAL_FLAGS=" -march=native " fi +if [[ "$PACKEDRGB" == 1 ]]; then +WARNING_FLAGS="$WARNING_FLAGS -DPACKEDRGB=1" +fi +if [[ "$PERF" == 1 ]]; then +WARNING_FLAGS="$WARNING_FLAGS -DPERF=1" +fi if [[ "$OSTYPE" =~ ^darwin ]]; then IMGUI_FLAGS=" |