From e57538b321078b8804198394857fed13ce7c8762 Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Sat, 21 Jun 2025 23:08:11 +0200 Subject: [PATCH] Cleanup --- submodules/ffmpeg/BUILD | 6 +--- third-party/webrtc/BUILD | 64 ---------------------------------------- 2 files changed, 1 insertion(+), 69 deletions(-) diff --git a/submodules/ffmpeg/BUILD b/submodules/ffmpeg/BUILD index 3b2358a4c4..ee50f16866 100644 --- a/submodules/ffmpeg/BUILD +++ b/submodules/ffmpeg/BUILD @@ -266,15 +266,11 @@ genrule( FFMPEG_VERSION="7.1.1" - if [ "$(TARGET_CPU)" == "ios_armv7" ]; then - BUILD_ARCH="armv7" - elif [ "$(TARGET_CPU)" == "ios_arm64" ]; then + if [ "$(TARGET_CPU)" == "ios_arm64" ]; then BUILD_ARCH="arm64" elif [ "$(TARGET_CPU)" == "ios_sim_arm64" ]; then BUILD_ARCH="sim_arm64" VARIANT="debug" - elif [ "$(TARGET_CPU)" == "ios_x86_64" ]; then - BUILD_ARCH="x86_64" else echo "Unsupported architecture $(TARGET_CPU)" fi diff --git a/third-party/webrtc/BUILD b/third-party/webrtc/BUILD index ad80d7abab..e74c7ba0ff 100644 --- a/third-party/webrtc/BUILD +++ b/third-party/webrtc/BUILD @@ -3052,70 +3052,6 @@ cc_library( ], ) -objc_library( - name = "webrtc_objcpp", - enable_modules = True, - module_name = "webrtc_objcpp", - srcs = [ "webrtc/sdk/" + path for path in ios_objcpp_sources ], - copts = [ - "-Wno-all", - "-Ithird-party/webrtc/webrtc/", - "-Ithird-party/webrtc/webrtc/sdk/objc", - "-Ithird-party/webrtc/webrtc/sdk/objc/base", - "-Ithird-party/libyuv", - "-Ithird-party/webrtc/absl", - "-DBSD=1", - "-DUSE_KISS_FFT", - "-DHAVE_PTHREAD", - "-DWEBRTC_APM_DEBUG_DUMP=0", - "-DWEBRTC_USE_BUILTIN_ISAC_FLOAT", - "-DWEBRTC_OPUS_VARIABLE_COMPLEXITY=0", - "-DHAVE_NETINET_IN_H", - "-DSCTP_SIMPLE_ALLOCATOR", - "-DSCTP_PROCESS_LEVEL_LOCKS", - "-D__Userspace__", - "-D__Userspace_os_Darwin", - "-DPACKAGE_VERSION='\"\"'", - "-DHAVE_SCTP", - "-DWEBRTC_HAVE_DCSCTP", - "-DWEBRTC_HAVE_SCTP", - "-DNO_MAIN_THREAD_WRAPPING", - "-DRTC_DISABLE_TRACE_EVENTS", - "-DRTC_DISABLE_METRICS", - ] + arch_specific_cflags + optimization_flags, - deps = [ - "//third-party/boringssl:crypto", - "//third-party/boringssl:ssl", - "//third-party/opus", - ":opus_headers", - "//third-party/webrtc/libsrtp", - "//third-party/libyuv", - "//third-party/libvpx:vpx", - "//submodules/ffmpeg", - "//third-party/openh264", - ":field_trials_header", - "//third-party/webrtc/absl", - ], - cxxopts = [ - "-std=c++17", - ], - sdk_frameworks = [ - "AVFoundation", - "AudioToolbox", - "VideoToolbox", - "UIKit", - "CoreMedia", - "CoreVideo", - "CoreGraphics", - "QuartzCore", - ], - weak_sdk_frameworks = [ - "Network", - "Metal", - ], - visibility = ["//visibility:public"], -) - objc_library( name = "webrtc_objc", enable_modules = True,