Skip to content

Commit

Permalink
Disable trace events and metrics from webrtc build
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-signal authored Mar 19, 2024
1 parent 7c997af commit 64e9f32
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions bin/build-aar.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ def BuildArch(dry_run, project_dir, webrtc_src_dir, build_dir, arch, debug_build
'rtc_enable_sctp': 'false',
'rtc_libvpx_build_vp9': 'false',
'rtc_include_ilbc': 'false',
'rtc_disable_metrics': 'true',
'rtc_disable_trace_events': 'true',
}
if debug_build is True:
gn_args['is_debug'] = 'true'
Expand Down
2 changes: 1 addition & 1 deletion bin/build-call_sim-cli
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export MACOSX_DEPLOYMENT_TARGET="10.13"
# Build WebRTC.
(
cd src/webrtc/src
WEBRTC_ARGS="rtc_build_examples=false rtc_build_tools=false rtc_include_tests=false rtc_enable_protobuf=false rtc_use_x11=false rtc_enable_sctp=false rtc_libvpx_build_vp9=true rtc_include_ilbc=false rtc_use_dummy_audio_file_devices=true"
WEBRTC_ARGS="rtc_build_examples=false rtc_build_tools=false rtc_include_tests=false rtc_enable_protobuf=false rtc_use_x11=false rtc_enable_sctp=false rtc_libvpx_build_vp9=true rtc_include_ilbc=false rtc_disable_metrics=true rtc_disable_trace_events=true rtc_use_dummy_audio_file_devices=true"

if [ "${BUILD_TYPE}" = "debug" ]
then
Expand Down
2 changes: 1 addition & 1 deletion bin/build-cli
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export MACOSX_DEPLOYMENT_TARGET="10.13"
# Build WebRTC.
(
cd src/webrtc/src
WEBRTC_ARGS="rtc_build_examples=false rtc_build_tools=false rtc_include_tests=false rtc_enable_protobuf=false rtc_use_x11=false rtc_enable_sctp=false rtc_libvpx_build_vp9=true rtc_include_ilbc=false"
WEBRTC_ARGS="rtc_build_examples=false rtc_build_tools=false rtc_include_tests=false rtc_enable_protobuf=false rtc_use_x11=false rtc_enable_sctp=false rtc_libvpx_build_vp9=true rtc_include_ilbc=false rtc_disable_metrics=true rtc_disable_trace_events=true"

if [ "${BUILD_TYPE}" = "debug" ]
then
Expand Down
2 changes: 1 addition & 1 deletion bin/build-electron
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ if [ "${BUILD_WHAT}" = "all" ] || [ "${BUILD_WHAT}" = "webrtc" ]
then
echo "Building WebRTC for ${GN_ARCH}"

WEBRTC_ARGS="target_cpu=\"${GN_ARCH}\" rtc_build_examples=false rtc_build_tools=false rtc_include_tests=false rtc_enable_protobuf=false rtc_use_x11=false rtc_enable_sctp=false rtc_libvpx_build_vp9=true rtc_include_ilbc=false"
WEBRTC_ARGS="target_cpu=\"${GN_ARCH}\" rtc_build_examples=false rtc_build_tools=false rtc_include_tests=false rtc_enable_protobuf=false rtc_use_x11=false rtc_enable_sctp=false rtc_libvpx_build_vp9=true rtc_include_ilbc=false rtc_disable_metrics=true rtc_disable_trace_events=true"

if [ "${BUILD_TYPE}" = "release" ]
then
Expand Down
2 changes: 1 addition & 1 deletion bin/build-gctc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export MACOSX_DEPLOYMENT_TARGET="10.13"
# Build WebRTC.
(
cd src/webrtc/src
WEBRTC_ARGS="rtc_build_examples=false rtc_build_tools=false rtc_include_tests=false rtc_enable_protobuf=false rtc_use_x11=false rtc_enable_sctp=false rtc_libvpx_build_vp9=false rtc_include_ilbc=false"
WEBRTC_ARGS="rtc_build_examples=false rtc_build_tools=false rtc_include_tests=false rtc_enable_protobuf=false rtc_use_x11=false rtc_enable_sctp=false rtc_libvpx_build_vp9=false rtc_include_ilbc=false rtc_disable_metrics=true rtc_disable_trace_events=true"

if [ "${BUILD_TYPE}" = "debug" ]
then
Expand Down
2 changes: 1 addition & 1 deletion bin/build-ios
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ then
else
ARCHS=("simulator:x64" "simulator:arm64" "device:arm64")
fi
EXTRA_GN_ARGS="rtc_build_examples=false rtc_build_tools=false rtc_include_tests=false rtc_enable_protobuf=false rtc_enable_sctp=false rtc_libvpx_build_vp9=false rtc_include_ilbc=false"
EXTRA_GN_ARGS="rtc_build_examples=false rtc_build_tools=false rtc_include_tests=false rtc_enable_protobuf=false rtc_enable_sctp=false rtc_libvpx_build_vp9=false rtc_include_ilbc=false rtc_disable_metrics=true rtc_disable_trace_events=true"

(cd "${WEBRTC_SRC_DIR}" && ./tools_webrtc/ios/build_ios_libs.py -o "${OUTPUT_DIR}/${BUILD_TYPE}/" --build_config ${BUILD_TYPE} --arch "${ARCHS[@]}" --deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" --extra-gn-args "${EXTRA_GN_ARGS}")

Expand Down

0 comments on commit 64e9f32

Please sign in to comment.