Skip to content

Commit

Permalink
rename libyuv symbols (not incl. windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbsp committed Dec 5, 2024
1 parent b4bb4eb commit 1768852
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions webrtc-sys/libwebrtc/build_android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ ninja -C "$OUTPUT_DIR" :default \
# make libwebrtc.a
# don't include nasm
ar -rc "$ARTIFACTS_DIR/lib/libwebrtc.a" `find "$OUTPUT_DIR/obj" -name '*.o' -not -path "*/third_party/nasm/*"`
objcopy --redefine-syms="$COMMAND_DIR/libyuv_prefix_symbols.txt" "$ARTIFACTS_DIR/lib/libwebrtc.a"

python3 "./src/tools_webrtc/libs/generate_licenses.py" \
--target :default "$OUTPUT_DIR" "$OUTPUT_DIR"
Expand Down
1 change: 1 addition & 0 deletions webrtc-sys/libwebrtc/build_ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ ninja -C "$OUTPUT_DIR" :default \
# make libwebrtc.a
# don't include nasm
ar -rc "$ARTIFACTS_DIR/lib/libwebrtc.a" `find "$OUTPUT_DIR/obj" -name '*.o' -not -path "*/third_party/nasm/*"`
objcopy --redefine-syms="$COMMAND_DIR/libyuv_prefix_symbols.txt" "$ARTIFACTS_DIR/lib/libwebrtc.a"

python3 "./src/tools_webrtc/libs/generate_licenses.py" \
--target :webrtc "$OUTPUT_DIR" "$OUTPUT_DIR"
Expand Down
1 change: 1 addition & 0 deletions webrtc-sys/libwebrtc/build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ ninja -C "$OUTPUT_DIR" :default
# don't include nasm
ar -rc "$ARTIFACTS_DIR/lib/libwebrtc.a" `find "$OUTPUT_DIR/obj" -name '*.o' -not -path "*/third_party/nasm/*"`
objcopy --redefine-syms="$COMMAND_DIR/boringssl_prefix_symbols.txt" "$ARTIFACTS_DIR/lib/libwebrtc.a"
objcopy --redefine-syms="$COMMAND_DIR/libyuv_prefix_symbols.txt" "$ARTIFACTS_DIR/lib/libwebrtc.a"

python3 "./src/tools_webrtc/libs/generate_licenses.py" \
--target :default "$OUTPUT_DIR" "$OUTPUT_DIR"
Expand Down
1 change: 1 addition & 0 deletions webrtc-sys/libwebrtc/build_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ ninja -C "$OUTPUT_DIR" :default \
# make libwebrtc.a
# don't include nasm
ar -rc "$ARTIFACTS_DIR/lib/libwebrtc.a" `find "$OUTPUT_DIR/obj" -name '*.o' -not -path "*/third_party/nasm/*"`
objcopy --redefine-syms="$COMMAND_DIR/libyuv_prefix_symbols.txt" "$ARTIFACTS_DIR/lib/libwebrtc.a"

python3 "./src/tools_webrtc/libs/generate_licenses.py" \
--target :webrtc "$OUTPUT_DIR" "$OUTPUT_DIR"
Expand Down
10 changes: 10 additions & 0 deletions webrtc-sys/libwebrtc/libyuv_prefix_symbols.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# webrtc m125_release now exports libyuv symbols, which are already handled with
# the yuv-sys crate. this reëxports them under a different name.
ARGBToABGRRow_C RTC_ARGBToABGRRow_C
ARGBToBGRARow_C RTC_ARGBToBGRARow_C
ARGBToRGBARow_C RTC_ARGBToRGBARow_C
RGBAToARGBRow_C RTC_RGBAToARGBRow_C
AR64ToAB64Row_C RTC_AR64ToAB64Row_C
YUY2ToARGBMatrix RTC_YUY2ToARGBMatrix
UYVYToARGBMatrix RTC_UYVYToARGBMatrix

0 comments on commit 1768852

Please sign in to comment.