This commit is contained in:
Isaac 2025-06-21 23:08:11 +02:00
parent d1e2951849
commit e57538b321
2 changed files with 1 additions and 69 deletions

View File

@ -266,15 +266,11 @@ genrule(
FFMPEG_VERSION="7.1.1" FFMPEG_VERSION="7.1.1"
if [ "$(TARGET_CPU)" == "ios_armv7" ]; then if [ "$(TARGET_CPU)" == "ios_arm64" ]; then
BUILD_ARCH="armv7"
elif [ "$(TARGET_CPU)" == "ios_arm64" ]; then
BUILD_ARCH="arm64" BUILD_ARCH="arm64"
elif [ "$(TARGET_CPU)" == "ios_sim_arm64" ]; then elif [ "$(TARGET_CPU)" == "ios_sim_arm64" ]; then
BUILD_ARCH="sim_arm64" BUILD_ARCH="sim_arm64"
VARIANT="debug" VARIANT="debug"
elif [ "$(TARGET_CPU)" == "ios_x86_64" ]; then
BUILD_ARCH="x86_64"
else else
echo "Unsupported architecture $(TARGET_CPU)" echo "Unsupported architecture $(TARGET_CPU)"
fi fi

View File

@ -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( objc_library(
name = "webrtc_objc", name = "webrtc_objc",
enable_modules = True, enable_modules = True,