mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-19 17:51:29 +00:00
Cleanup
This commit is contained in:
parent
d5a6cb86d2
commit
8d40ccce0f
@ -29,7 +29,7 @@
|
||||
# endif
|
||||
|
||||
# include <stdlib.h>
|
||||
# include "opusfile.h"
|
||||
# include "opusfile/opusfile.h"
|
||||
|
||||
typedef struct OggOpusLink OggOpusLink;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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
26
third-party/LibYuvBinding/BUILD
vendored
Normal 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",
|
||||
],
|
||||
)
|
40
third-party/libyuv/BUILD
vendored
40
third-party/libyuv/BUILD
vendored
@ -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",
|
||||
],
|
||||
)
|
||||
|
||||
|
3
third-party/opusfile/BUILD
vendored
3
third-party/opusfile/BUILD
vendored
@ -13,9 +13,6 @@ objc_library(
|
||||
includes = [
|
||||
"include",
|
||||
],
|
||||
copts = [
|
||||
"-Ithird-party/opusfile/include/opusfile",
|
||||
],
|
||||
deps = [
|
||||
"//third-party/ogg:ogg",
|
||||
"//third-party/opus:opus",
|
||||
|
2
third-party/opusfile/Sources/internal.h
vendored
2
third-party/opusfile/Sources/internal.h
vendored
@ -29,7 +29,7 @@
|
||||
# endif
|
||||
|
||||
# include <stdlib.h>
|
||||
# include <opusfile.h>
|
||||
# include <opusfile/opusfile.h>
|
||||
|
||||
typedef struct OggOpusLink OggOpusLink;
|
||||
|
||||
|
2
third-party/opusfile/Sources/opusfile.c
vendored
2
third-party/opusfile/Sources/opusfile.c
vendored
@ -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
|
||||
|
3
third-party/webrtc/BUILD
vendored
3
third-party/webrtc/BUILD
vendored
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user