mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
42 lines
770 B
Python
Vendored
42 lines
770 B
Python
Vendored
load("//Config:buck_rule_macros.bzl", "static_library")
|
|
|
|
genrule(
|
|
name = "opus_lib_file",
|
|
visibility = [
|
|
"//submodules/Opus:..."
|
|
],
|
|
srcs = [
|
|
"Sources/opus/lib/libopus.a",
|
|
],
|
|
bash = "mkdir -p $OUT; cp $SRCS $OUT/",
|
|
out = "opus_lib_file",
|
|
)
|
|
|
|
apple_library(
|
|
name = "opus_lib",
|
|
visibility = [
|
|
"//submodules/Opus:..."
|
|
],
|
|
header_namespace = "opus",
|
|
exported_headers = glob([
|
|
"Sources/**/*.h",
|
|
]),
|
|
exported_linker_flags = [
|
|
"-lopus",
|
|
"-L$(location :opus_lib_file)",
|
|
],
|
|
)
|
|
|
|
static_library(
|
|
name = "opus",
|
|
srcs = glob([
|
|
"Sources/**/*.swift",
|
|
]),
|
|
exported_headers = glob([
|
|
"Public/**/*.h",
|
|
]),
|
|
deps = [
|
|
":opus_lib",
|
|
],
|
|
)
|