This commit is contained in:
Isaac 2025-06-18 12:26:54 +04:00
parent d5a6cb86d2
commit 8d40ccce0f
12 changed files with 37 additions and 46 deletions

View File

@ -29,7 +29,7 @@
# endif
# include <stdlib.h>
# include "opusfile.h"
# include "opusfile/opusfile.h"
typedef struct OggOpusLink OggOpusLink;

View File

@ -26,7 +26,7 @@
#include <string.h>
#include <math.h>
#include "opusfile.h"
#include "opusfile/opusfile.h"
/*This implementation is largely based off of libvorbisfile.
All of the Ogg bits work roughly the same, though I have made some

View File

@ -94,7 +94,7 @@ swift_library(
"//submodules/TextFormat:TextFormat",
"//submodules/Markdown:Markdown",
"//submodules/ChatTitleActivityNode:ChatTitleActivityNode",
"//third-party/libyuv:LibYuvBinding",
"//third-party/LibYuvBinding",
"//submodules/ComponentFlow:ComponentFlow",
"//submodules/Components/LottieAnimationComponent:LottieAnimationComponent",
"//submodules/Components/ActivityIndicatorComponent:ActivityIndicatorComponent",

View File

@ -146,7 +146,6 @@ objc_library(
"-Ithird-party/webrtc/webrtc/sdk/objc/components/renderer/metal",
"-Ithird-party/webrtc/webrtc/sdk/objc/components/renderer/opengl",
"-Ithird-party/webrtc/webrtc/sdk/objc/components/video_codec",
"-Ithird-party/libyuv/third_party/libyuv/include",
"-Ithird-party/libyuv",
"-Ithird-party/webrtc/webrtc/sdk/objc/api/video_codec",
"-Ithird-party/webrtc/absl",

26
third-party/LibYuvBinding/BUILD vendored Normal file
View File

@ -0,0 +1,26 @@
objc_library(
name = "LibYuvBinding",
enable_modules = True,
module_name = "LibYuvBinding",
srcs = glob([
"Sources/**/*.m",
"Sources/**/*.c",
"Sources/**/*.h",
], allow_empty=True),
hdrs = glob([
"PublicHeaders/**/*.h",
]),
includes = [
"PublicHeaders",
],
deps = [
"//third-party/libyuv",
],
sdk_frameworks = [
"Foundation",
],
visibility = [
"//visibility:public",
],
)

View File

@ -29,7 +29,7 @@ arch_specific_cflags = select({
cc_library(
name = "libyuv",
srcs = [ "third_party/libyuv/" + path for path in [
hdrs = [ "third_party/libyuv/" + path for path in [
# Headers
"include/libyuv.h",
"include/libyuv/basic_types.h",
@ -55,7 +55,8 @@ cc_library(
"include/libyuv/scale.h",
"include/libyuv/version.h",
"include/libyuv/video_common.h",
]],
srcs = [ "third_party/libyuv/" + path for path in [
# Source Files
"source/compare.cc",
"source/compare_common.cc",
@ -102,40 +103,11 @@ cc_library(
"source/scale_neon.cc",
"source/scale_neon64.cc",
]],
includes = [
"third_party/libyuv/include",
],
copts = [
"-ffp-contract=fast",
"-Ithird-party/libyuv/third_party/libyuv/include",
] + arch_specific_cflags + optimization_flags,
visibility = ["//visibility:public"],
)
objc_library(
name = "LibYuvBinding",
enable_modules = True,
module_name = "LibYuvBinding",
srcs = glob([
"LibYuvBinding/Sources/**/*.m",
"LibYuvBinding/Sources/**/*.c",
"LibYuvBinding/Sources/**/*.h",
], allow_empty=True),
hdrs = glob([
"LibYuvBinding/PublicHeaders/**/*.h",
]),
includes = [
"LibYuvBinding/PublicHeaders",
],
copts = [
"-Ithird-party/libyuv/third_party/libyuv/include",
],
deps = [
":libyuv",
],
sdk_frameworks = [
"Foundation",
],
visibility = [
"//visibility:public",
],
)

View File

@ -13,9 +13,6 @@ objc_library(
includes = [
"include",
],
copts = [
"-Ithird-party/opusfile/include/opusfile",
],
deps = [
"//third-party/ogg:ogg",
"//third-party/opus:opus",

View File

@ -29,7 +29,7 @@
# endif
# include <stdlib.h>
# include <opusfile.h>
# include <opusfile/opusfile.h>
typedef struct OggOpusLink OggOpusLink;

View File

@ -26,7 +26,7 @@
#include <string.h>
#include <math.h>
#include "opusfile.h"
#include "opusfile/opusfile.h"
/*This implementation is largely based off of libvorbisfile.
All of the Ogg bits work roughly the same, though I have made some

View File

@ -3063,7 +3063,6 @@ objc_library(
"-Ithird-party/webrtc/webrtc/sdk/objc",
"-Ithird-party/webrtc/webrtc/sdk/objc/base",
"-Ithird-party/libyuv",
"-Ithird-party/libyuv/third_party/libyuv/include",
"-Ithird-party/webrtc/absl",
"-DBSD=1",
"-DUSE_KISS_FFT",
@ -3131,7 +3130,6 @@ objc_library(
"-Ithird-party/webrtc/webrtc/sdk/objc",
"-Ithird-party/webrtc/webrtc/sdk/objc/base",
"-Ithird-party/libyuv",
"-Ithird-party/libyuv/third_party/libyuv/include",
"-Ithird-party/webrtc/absl",
"-DBSD=1",
"-DUSE_KISS_FFT",
@ -3196,7 +3194,6 @@ objc_library(
"-Ithird-party/webrtc/libsrtp/third_party/libsrtp/crypto/include",
"-Ithird-party/webrtc/webrtc/",
"-Ithird-party/libyuv",
"-Ithird-party/libyuv/third_party/libyuv/include",
"-Ithird-party/webrtc/absl",
"-DBSD=1",
"-DUSE_KISS_FFT",