mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-05 19:28:46 +02:00
Squashed buildout of the tgcalls testbench: - CLI test tool with --mode p2p/reflector/group/group-churn, cross-version interop (--version, --version2), and quiet/summary output - Linux toolchain + Docker multi-stage build, AWS Fargate mass test harness, local parallel mass test harness with signaling loss simulation - SCTP writable gate, retransmission timer tuning, role-based handshake - InstanceV2CompatImpl (PeerConnection backend with V2Impl signaling) and SignalingTranslator for v14.0.0 interop - In-process Go/Pion SFU (ICE+DTLS+SRTP+SCTP per participant) with audio RTP forwarding, ActiveAudio/VideoSsrcs data channel broadcast, RTCP feedback path, and CGo c-archive integration - GroupInstanceReferenceImpl (PeerConnection group-call) and mixed-impl group mode (--reference-participants), with SDP munging for simulcast - H264 simulcast group video (FakeVideoTrackSource pattern generator, FakeVideoSink frame counting, --video flag, two-pass channel setup, reactive video setup from ActiveVideoSsrcs) - Group churn stress mode (--mode group-churn, --churn-cycles) - SFU stream-quality adaptation: BandwidthEstimator, LayerSelector state machine, RtxRingBuffer, simulcast SSRC rewrite - Transport-cc feedback generation, NetworkSimulator (delay/jitter/loss/ token-bucket bandwidth), --network-scenario step-down-up - CLAUDE.md updates throughout Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
57 lines
1.5 KiB
Text
57 lines
1.5 KiB
Text
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
|
|
|
|
filegroup(
|
|
name = "yasm_sources",
|
|
srcs = glob([
|
|
"yasm-1.3.0/**/*"
|
|
]),
|
|
)
|
|
|
|
genrule(
|
|
name = "yasm",
|
|
srcs = [
|
|
":yasm_sources",
|
|
"@cmake_tar_gz//file",
|
|
],
|
|
cmd_bash =
|
|
"""
|
|
set -x
|
|
core_count=$$(nproc 2>/dev/null || PATH="$$PATH:/usr/sbin" sysctl -n hw.logicalcpu 2>/dev/null || echo 4)
|
|
BUILD_DIR="$(RULEDIR)/build"
|
|
rm -rf "$$BUILD_DIR"
|
|
mkdir -p "$$BUILD_DIR"
|
|
|
|
CMAKE_DIR="$$(pwd)/$$BUILD_DIR/cmake"
|
|
rm -rf "$$CMAKE_DIR"
|
|
mkdir -p "$$CMAKE_DIR"
|
|
tar -xf "$(location @cmake_tar_gz//file)" -C "$$CMAKE_DIR"
|
|
|
|
# Find cmake: try system cmake first, then downloaded macOS cmake
|
|
if command -v cmake >/dev/null 2>&1; then
|
|
CMAKE_BIN="cmake"
|
|
elif [ -d "$$CMAKE_DIR/cmake-4.1.2-macos-universal/CMake.app/Contents/bin" ]; then
|
|
CMAKE_BIN="$$CMAKE_DIR/cmake-4.1.2-macos-universal/CMake.app/Contents/bin/cmake"
|
|
else
|
|
echo "cmake not found"
|
|
exit 1
|
|
fi
|
|
|
|
SOURCE_PATH="third-party/yasm/yasm-1.3.0"
|
|
cp -R "$$SOURCE_PATH" "$$BUILD_DIR/"
|
|
|
|
pushd "$$BUILD_DIR/yasm-1.3.0"
|
|
mkdir build
|
|
cd build
|
|
"$$CMAKE_BIN" .. -DYASM_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DPYTHON_EXECUTABLE="$$(which python3)"
|
|
make -j $$core_count
|
|
popd
|
|
|
|
tar -cf "$(location yasm.tar)" -C "$$BUILD_DIR/yasm-1.3.0/build" .
|
|
""",
|
|
outs = [
|
|
"yasm.tar",
|
|
],
|
|
visibility = [
|
|
"//visibility:public",
|
|
]
|
|
)
|