mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Bug fixes
This commit is contained in:
parent
a3b4b085ae
commit
002df956d2
15 changed files with 115 additions and 13 deletions
1
third-party/libyuv/BUILD
vendored
1
third-party/libyuv/BUILD
vendored
|
|
@ -25,6 +25,7 @@ arch_specific_cflags = select({
|
|||
"@build_bazel_rules_apple//apple:ios_arm64": common_flags + arm64_specific_flags,
|
||||
"//build-system:ios_sim_arm64": common_flags + arm64_specific_flags,
|
||||
"@build_bazel_rules_apple//apple:ios_x86_64": common_flags + x86_64_specific_flags,
|
||||
"//conditions:default": common_flags,
|
||||
})
|
||||
|
||||
cc_library(
|
||||
|
|
|
|||
18
third-party/opus/BUILD
vendored
18
third-party/opus/BUILD
vendored
|
|
@ -29,6 +29,10 @@ genrule(
|
|||
BUILD_ARCH="sim_arm64"
|
||||
elif [ "$(TARGET_CPU)" == "ios_x86_64" ]; then
|
||||
BUILD_ARCH="x86_64"
|
||||
elif [ "$(TARGET_CPU)" == "k8" ] || [ "$(TARGET_CPU)" == "x86_64" ]; then
|
||||
BUILD_ARCH="linux_x86_64"
|
||||
elif [ "$(TARGET_CPU)" == "aarch64" ] || [ "$(TARGET_CPU)" == "arm64" ]; then
|
||||
BUILD_ARCH="linux_arm64"
|
||||
else
|
||||
echo "Unsupported architecture $(TARGET_CPU)"
|
||||
fi
|
||||
|
|
@ -63,6 +67,20 @@ cc_library(
|
|||
srcs = [":Public/opus/lib/lib" + x + ".a" for x in libs],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "opus_cc",
|
||||
hdrs = [":Public/opus/" + x for x in headers],
|
||||
includes = [
|
||||
"Public",
|
||||
],
|
||||
deps = [
|
||||
":opus_lib",
|
||||
],
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "opus",
|
||||
module_name = "opus",
|
||||
|
|
|
|||
24
third-party/opus/build-opus-bazel.sh
vendored
24
third-party/opus/build-opus-bazel.sh
vendored
|
|
@ -12,8 +12,6 @@ OPT_CFLAGS="-Os -g"
|
|||
OPT_LDFLAGS=""
|
||||
OPT_CONFIG_ARGS=""
|
||||
|
||||
DEVELOPER=`xcode-select -print-path`
|
||||
|
||||
OUTPUTDIR="$BUILD_DIR/Public"
|
||||
|
||||
# where we will keep our sources and build from.
|
||||
|
|
@ -28,7 +26,27 @@ mkdir -p $INTERDIR
|
|||
tar zxf "$BUILD_DIR/$SOURCE_CODE_ARCHIVE" -C $SRCDIR
|
||||
cd "${SRCDIR}/opus-"*
|
||||
|
||||
if [ "${ARCH}" == "x86_64" ]; then
|
||||
if [ "${ARCH}" = "linux_x86_64" ] || [ "${ARCH}" = "linux_arm64" ]; then
|
||||
mkdir -p "${INTERDIR}"
|
||||
|
||||
# Keep it simple and portable for container builds.
|
||||
./configure \
|
||||
--disable-shared \
|
||||
--enable-static \
|
||||
--with-pic \
|
||||
--disable-extra-programs \
|
||||
--disable-doc \
|
||||
--disable-asm \
|
||||
--enable-intrinsics \
|
||||
${OPT_CONFIG_ARGS} \
|
||||
--prefix="${INTERDIR}" \
|
||||
CFLAGS="$CFLAGS ${OPT_CFLAGS} -fPIC" \
|
||||
LDFLAGS="$LDFLAGS ${OPT_LDFLAGS}"
|
||||
|
||||
make -j"$(getconf _NPROCESSORS_ONLN || echo 4)"
|
||||
make install
|
||||
exit 0
|
||||
elif [ "${ARCH}" == "x86_64" ]; then
|
||||
PLATFORM="iphonesimulator"
|
||||
EXTRA_CFLAGS="-arch ${ARCH}"
|
||||
EXTRA_CONFIG="--host=x86_64-apple-darwin"
|
||||
|
|
|
|||
8
third-party/webrtc/absl/BUILD
vendored
8
third-party/webrtc/absl/BUILD
vendored
|
|
@ -355,9 +355,15 @@ absl_sources = [
|
|||
"absl/types/bad_variant_access.cc",
|
||||
]
|
||||
|
||||
absl_inc_files = [
|
||||
f
|
||||
for f in glob(["absl/**/*.inc"])
|
||||
if f not in absl_headers
|
||||
]
|
||||
|
||||
cc_library(
|
||||
name = "absl",
|
||||
hdrs = absl_headers,
|
||||
hdrs = absl_headers + absl_inc_files,
|
||||
srcs = absl_sources,
|
||||
cxxopts = [
|
||||
"-std=c++17",
|
||||
|
|
|
|||
1
third-party/webrtc/crc32c/BUILD
vendored
1
third-party/webrtc/crc32c/BUILD
vendored
|
|
@ -6,6 +6,7 @@ arch_specific_crc32c_sources = select({
|
|||
"//build-system:ios_sim_arm64": [
|
||||
"third_party/crc32c/src/crc32c_arm64.cc",
|
||||
],
|
||||
"//conditions:default": [],
|
||||
})
|
||||
|
||||
crc32c_sources = ["third_party/crc32c/src/" + x for x in [
|
||||
|
|
|
|||
1
third-party/webrtc/libsrtp/BUILD
vendored
1
third-party/webrtc/libsrtp/BUILD
vendored
|
|
@ -37,6 +37,7 @@ arm64_specific_flags = [
|
|||
arch_specific_cflags = select({
|
||||
"@build_bazel_rules_apple//apple:ios_arm64": common_flags + arm64_specific_flags,
|
||||
"//build-system:ios_sim_arm64": common_flags + arm64_specific_flags,
|
||||
"//conditions:default": [],
|
||||
})
|
||||
|
||||
optimization_flags = select({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue