Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions BuildScripts~/build_libwebrtc_android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ do

for is_debug in "true" "false"
do
symbol_level=0
if [ $is_debug = "true" ]; then
symbol_level=1
fi
# generate ninja files
# use `treat_warnings_as_errors` option to avoid deprecation warnings
gn gen "$OUTPUT_DIR" --root="src" \
Expand All @@ -79,7 +83,8 @@ do
use_custom_libcxx=false \
treat_warnings_as_errors=false \
use_errorprone_java_compiler=false \
use_cxx17=true"
use_cxx17=true \
symbol_level=${symbol_level}"

# build static library
ninja -C "$OUTPUT_DIR" webrtc
Expand All @@ -98,6 +103,10 @@ pushd src

for is_debug in "true" "false"
do
symbol_level=0
if [ $is_debug = "true" ]; then
symbol_level=1
fi
# use `treat_warnings_as_errors` option to avoid deprecation warnings
"$PYTHON3_BIN" tools_webrtc/android/build_aar.py \
--build-dir $OUTPUT_DIR \
Expand All @@ -113,7 +122,8 @@ do
use_custom_libcxx=false \
treat_warnings_as_errors=false \
use_errorprone_java_compiler=false \
use_cxx17=true"
use_cxx17=true \
symbol_level=${symbol_level}"

filename="libwebrtc.aar"
if [ $is_debug = "true" ]; then
Expand Down
7 changes: 6 additions & 1 deletion BuildScripts~/build_libwebrtc_ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ mkdir -p "$ARTIFACTS_DIR/lib"

for is_debug in "true" "false"
do
symbol_level=0
if [ $is_debug = "true" ]; then
symbol_level=1
fi
for target_cpu in "arm64" "x64"
do
# generate ninja files
Expand All @@ -62,7 +66,8 @@ do
ios_enable_code_signing=false \
rtc_include_tests=false \
rtc_build_examples=false \
use_cxx17=true"
use_cxx17=true \
symbol_level=${symbol_level}"

# build static library
ninja -C "$OUTPUT_DIR" webrtc
Expand Down
7 changes: 6 additions & 1 deletion BuildScripts~/build_libwebrtc_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ do
mkdir -p "$ARTIFACTS_DIR/lib/${target_cpu}"
for is_debug in "true" "false"
do
symbol_level=0
if [ $is_debug = "true" ]; then
symbol_level=1
fi
args="is_debug=${is_debug} \
target_os=\"linux\" \
target_cpu=\"${target_cpu}\" \
Expand All @@ -48,7 +52,8 @@ do
is_component_build=false \
use_rtti=true \
rtc_use_x11=false \
use_cxx17=true"
use_cxx17=true \
symbol_level=${symbol_level}"

if [ $is_debug = "true" ]; then
args="${args} is_asan=true is_lsan=true";
Expand Down
7 changes: 6 additions & 1 deletion BuildScripts~/build_libwebrtc_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ mkdir -p "$ARTIFACTS_DIR/lib"

for is_debug in "true" "false"
do
symbol_level=0
if [ $is_debug = "true" ]; then
symbol_level=1
fi
for target_cpu in "x64" "arm64"
do

Expand All @@ -57,7 +61,8 @@ do
is_component_build=false \
use_rtti=true \
rtc_use_x11=false \
use_cxx17=true"
use_cxx17=true \
symbol_level=${symbol_level}"

# build static library
ninja -C "$OUTPUT_DIR" webrtc
Expand Down
8 changes: 7 additions & 1 deletion BuildScripts~/build_libwebrtc_win.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,15 @@ for %%i in (x64) do (
mkdir "%ARTIFACTS_DIR%/lib/%%i"
for %%j in (true false) do (

rem set symbol_level depending on is_debug
set symbol_level=0
if %%j==true (
set symbol_level=1
)

rem generate ninja for release
call gn.bat gen %OUTPUT_DIR% --root="src" ^
--args="is_debug=%%j is_clang=true target_cpu=\"%%i\" use_custom_libcxx=false rtc_include_tests=false rtc_build_examples=false rtc_use_h264=false symbol_level=0 enable_iterator_debugging=false use_cxx17=true"
--args="is_debug=%%j is_clang=true target_cpu=\"%%i\" use_custom_libcxx=false rtc_include_tests=false rtc_build_examples=false rtc_use_h264=false symbol_level=!symbol_level! enable_iterator_debugging=false use_cxx17=true"

rem build
call ninja.bat -C %OUTPUT_DIR% webrtc
Expand Down