summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-08-27 15:36:23 -0400
committerFox Caminiti <fox@foxcam.net>2022-08-27 15:36:23 -0400
commit02d7df95cfc2402f0488f66f1dc5fa84cae00934 (patch)
tree60ee4f7e8260162577244bd2da1d5f604cc42042
parentb39c7374009d03d448e47e08ddabc30abeee5247 (diff)
separate build flags file to counter my laziness
-rw-r--r--.gitignore1
-rwxr-xr-xbuild.sh14
2 files changed, 11 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 5ef7aca..4edc6f9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
bin/*
compile_commands.json
+build_ops
diff --git a/build.sh b/build.sh
index 6ae9de1..1e4f865 100755
--- a/build.sh
+++ b/build.sh
@@ -1,14 +1,20 @@
#!/bin/bash
-OPTIMIZATION="-O2" # Enable optimization.
-DEBUG=0 # Compile with debug UI.
-IMGUI=0 # Compile ImGui libs. Our custom ImGui functions still compile on zero.
-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.
+
+OPTIMIZATION="-O2" # Enable optimization.
+DEBUG=0 # Compile with debug UI.
+IMGUI=1 # Compile ImGui libs. Our custom ImGui functions still compile on zero.
+THREADED=1 # Compile with threading. Useful to disable when stepping through the renderer.
PACKEDRGB=0 # Use 4x4 chunks for the software rasterizer. Isn't actually faster at the moment.
PERF=0 # Print cycle stats.
+# Add flag overrides to this file (it's untracked on the tree)
+if test -f build_ops; then
+ source build_ops
+fi
+
FFMPEG_LIBS="
libavdevice
libavformat