mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
Wire realtime WebRTC native media into Bazel (#17145)
- Builds codex-realtime-webrtc through the normal Bazel Rust macro so native macOS WebRTC sources are included.\n- Shares the macOS -ObjC link flag with Bazel targets that can link libwebrtc. --------- Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
12
defs.bzl
12
defs.bzl
@@ -31,6 +31,18 @@ WINDOWS_RUSTC_LINK_FLAGS = select({
|
||||
"//conditions:default": [],
|
||||
})
|
||||
|
||||
# libwebrtc uses Objective-C categories from native archives. Any Bazel-linked
|
||||
# macOS binary/test that can pull it in must keep category symbols alive.
|
||||
MACOS_WEBRTC_RUSTC_LINK_FLAGS = select({
|
||||
"@platforms//os:macos": [
|
||||
"-C",
|
||||
"link-arg=-ObjC",
|
||||
"-C",
|
||||
"link-arg=-lc++",
|
||||
],
|
||||
"//conditions:default": [],
|
||||
})
|
||||
|
||||
def multiplatform_binaries(name, platforms = PLATFORMS):
|
||||
for platform in platforms:
|
||||
platform_data(
|
||||
|
||||
Reference in New Issue
Block a user