Skip to content

Commit 1996154

Browse files
fix build error
1 parent 85de0a1 commit 1996154

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

build.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Commands:
3737
release Configure + build Release version (build-release/)
3838
release-examples Configure + build Release version with examples
3939
release-tests Configure + build Release version with tests
40+
build-all Configure + build all of the above (debug/release + examples + tests)
4041
clean Clean both Debug and Release build directories
4142
clean-all Full clean (build dirs + Rust targets)
4243
help Show this help message
@@ -60,6 +61,7 @@ Examples:
6061
./build.sh debug
6162
./build.sh debug-tests
6263
./build.sh release-tests
64+
./build.sh build-all
6365
./build.sh clean
6466
./build.sh clean-all
6567
EOF
@@ -401,6 +403,26 @@ case "${cmd}" in
401403
fi
402404
fi
403405
;;
406+
build-all)
407+
echo "==> Build-all: debug, debug-examples, debug-tests, release, release-examples, release-tests"
408+
BUILD_TYPE="Debug"
409+
BUILD_DIR="${PROJECT_ROOT}/build-debug"
410+
PRESET="${OS_TYPE}-debug"
411+
configure && build
412+
PRESET="${OS_TYPE}-debug-examples"
413+
configure && build
414+
PRESET="${OS_TYPE}-debug-tests"
415+
configure && build
416+
BUILD_TYPE="Release"
417+
BUILD_DIR="${PROJECT_ROOT}/build-release"
418+
PRESET="${OS_TYPE}-release"
419+
configure && build
420+
PRESET="${OS_TYPE}-release-examples"
421+
configure && build
422+
PRESET="${OS_TYPE}-release-tests"
423+
configure && build
424+
echo "==> Build-all complete."
425+
;;
404426
clean)
405427
clean
406428
;;

examples/common/sdl_media.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include "sdl_media.h"
1818

19+
#include "livekit/lk_log.h"
1920

2021
// ---------------------- SDLMicSource -----------------------------
2122

0 commit comments

Comments
 (0)