summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-11-22 23:02:54 -0500
committerFox Caminiti <fox@foxcam.net>2022-11-22 23:02:54 -0500
commit1da96e0dbe95f5078623e2b0469152692833a096 (patch)
tree6195b0359efbf0531b3984df2e820337edc92fd6 /build.sh
parent09c6cb9e3be2655b842e13dd68879cb10cf52acf (diff)
file io, compression
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 31a9eed..8fbf980 100755
--- a/build.sh
+++ b/build.sh
@@ -6,6 +6,7 @@ OPTIMIZATION="-O2" # Enable optimization.
DEBUG=0 # Compile with debug UI.
IMGUI=1 # Compile ImGui libs. Our custom ImGui functions still compile on zero.
PERF=0 # Print cycle stats.
+STABLE=1 # Compile experimental stable-diffusion-webui support; requires curl.
# Add flag overrides to this file (it's untracked on the tree)
if test -f build_ops; then
@@ -63,6 +64,10 @@ fi
if [[ "$PERF" == 1 ]]; then
WARNING_FLAGS="$WARNING_FLAGS -DPERF=1"
fi
+if [[ "$STABLE" == 1 ]]; then
+WARNING_FLAGS="$WARNING_FLAGS -DSTABLE=1"
+OPTIONAL_FLAGS="$OPTIONAL_FLAGS -lcurl"
+fi
if [[ "$OSTYPE" =~ ^darwin ]]; then
IMGUI_FLAGS="
@@ -104,6 +109,6 @@ clang main.cpp $WARNING_FLAGS $OPTIMIZATION $ADDITIONAL_FLAGS -o bin/real2d bin
$GLAD_FLAGS \
-std=c++11 -lstdc++ -Iimgui -Iimgui/backends \
$SDL_ARGS \
+ $OPTIONAL_FLAGS \
-I . \
-lm -I /usr/local/include $(pkg-config --cflags --libs $FFMPEG_LIBS)
-# -lcurl