mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
Temp
This commit is contained in:
parent
81ae5e6a66
commit
f67494ad12
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -11,3 +11,6 @@
|
||||
[submodule "build-system/bazel-rules/apple_support"]
|
||||
path = build-system/bazel-rules/apple_support
|
||||
url = https://github.com/bazelbuild/apple_support.git
|
||||
[submodule "build-system/bazel-rules/rules_apple_extras"]
|
||||
path = build-system/bazel-rules/rules_apple_extras
|
||||
url = https://github.com/thii/rules_apple_extras.git
|
||||
|
@ -46,3 +46,10 @@ load(
|
||||
)
|
||||
|
||||
apple_support_dependencies()
|
||||
|
||||
local_repository(
|
||||
name = "rules_apple_extras",
|
||||
path = "build-system/bazel-rules/rules_apple_extras",
|
||||
)
|
||||
|
||||
|
||||
|
@ -47,6 +47,7 @@ swift_library(
|
||||
"//submodules/OverlayStatusController:OverlayStatusController",
|
||||
"//submodules/openssl:openssl",
|
||||
"//submodules/OpenSSLEncryptionProvider:OpenSSLEncryptionProvider",
|
||||
"//submodules/WalletCore:WalletCore",
|
||||
],
|
||||
)
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 8dc8e519df3ab06c9842a9e6396edf592104c46b
|
||||
Subproject commit 53282252b393e451634d4f410d555df3f295c00e
|
1
build-system/bazel-rules/rules_apple_extras
Submodule
1
build-system/bazel-rules/rules_apple_extras
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 5d310fe7e51be6b488fe25e014ea5dfaf115a519
|
@ -1 +1 @@
|
||||
Subproject commit 46d309a56e638830a9844e65d5531262a8afab99
|
||||
Subproject commit 657eda57a097980848dbb3c880b94faeddaa3cd1
|
@ -1,3 +1,8 @@
|
||||
load(
|
||||
"@rules_apple_extras//apple:objc_library.bzl",
|
||||
"objc_library",
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "OpenSSLEncryptionProvider",
|
||||
srcs = glob([
|
||||
|
23
submodules/TonBinding/BUILD
Normal file
23
submodules/TonBinding/BUILD
Normal file
@ -0,0 +1,23 @@
|
||||
load(
|
||||
"@rules_apple_extras//apple:objc_library.bzl",
|
||||
"objc_library",
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "TonBinding",
|
||||
srcs = glob([
|
||||
"Sources/**/*.m",
|
||||
"Sources/**/*.mm",
|
||||
]),
|
||||
hdrs = glob([
|
||||
"Sources/**/*.h",
|
||||
]),
|
||||
deps = [
|
||||
"//submodules/SSignalKit/SSignalKit:SSignalKit",
|
||||
"//submodules/openssl:openssl",
|
||||
"//submodules/ton:ton",
|
||||
],
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
],
|
||||
)
|
16
submodules/WalletCore/BUILD
Normal file
16
submodules/WalletCore/BUILD
Normal file
@ -0,0 +1,16 @@
|
||||
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
|
||||
|
||||
swift_library(
|
||||
name = "WalletCore",
|
||||
module_name = "WalletCore",
|
||||
srcs = glob([
|
||||
"Sources/**/*.swift",
|
||||
]),
|
||||
deps = [
|
||||
"//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit",
|
||||
"//submodules/TonBinding:TonBinding",
|
||||
],
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
],
|
||||
)
|
@ -1,6 +1,6 @@
|
||||
load(
|
||||
"//Config/objc_module_provider.bzl",
|
||||
"objc_module",
|
||||
"@rules_apple_extras//apple:objc_library.bzl",
|
||||
"objc_library",
|
||||
)
|
||||
|
||||
openssl_headers = [
|
||||
@ -170,13 +170,9 @@ objc_library(
|
||||
module_name = "openssl",
|
||||
enable_modules = True,
|
||||
hdrs = ["Public/openssl/" + x for x in openssl_headers],
|
||||
includes = [
|
||||
"Public/openssl",
|
||||
],
|
||||
deps = [
|
||||
":openssl_lib",
|
||||
],
|
||||
,
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
]
|
||||
|
93
submodules/ton/BUILD
Normal file
93
submodules/ton/BUILD
Normal file
@ -0,0 +1,93 @@
|
||||
load(
|
||||
"@rules_apple_extras//apple:objc_library.bzl",
|
||||
"objc_library",
|
||||
)
|
||||
|
||||
ton_headers = [
|
||||
"auto/tl/tonlib_api.h",
|
||||
"tl/TlObject.h",
|
||||
"tonlib/tonlib_client_json.h",
|
||||
"tonlib/tonlibjson_export.h",
|
||||
"tonlib/Client.h",
|
||||
"td/utils/Slice-decl.h",
|
||||
"td/utils/config.h",
|
||||
"td/utils/SharedSlice.h",
|
||||
"td/utils/Slice.h",
|
||||
"td/utils/int_types.h",
|
||||
"td/utils/common.h",
|
||||
"td/utils/check.h",
|
||||
"td/utils/unique_ptr.h",
|
||||
"td/utils/port/platform.h",
|
||||
]
|
||||
|
||||
ton_lib_names = [
|
||||
"adnllite",
|
||||
"crc32c",
|
||||
"keys",
|
||||
"lite-client-common",
|
||||
"smc-envelope",
|
||||
"tdactor",
|
||||
"tddb",
|
||||
"tdnet",
|
||||
"tdutils",
|
||||
"tl-lite-utils",
|
||||
"tl-utils",
|
||||
"tl_api",
|
||||
"tl_lite_api",
|
||||
"tl_tonlib_api",
|
||||
"ton_block",
|
||||
"ton_crypto",
|
||||
"tonlib",
|
||||
]
|
||||
|
||||
genrule(
|
||||
name = "",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "ton_build",
|
||||
srcs = [
|
||||
"build-ton.sh",
|
||||
"iOS.cmake",
|
||||
"tonlib-src.zip",
|
||||
"//submodules/openssl:openssl_include",
|
||||
],
|
||||
cmd_bash =
|
||||
"""
|
||||
cp $(location :build-ton.sh) "$(RULEDIR)/"
|
||||
cp $(location :iOS.cmake) "$(RULEDIR)/"
|
||||
unzip
|
||||
cp $(location :iOS.cmake) "$(RULEDIR)/"
|
||||
"tonlib-src.zip",
|
||||
|
||||
mkdir -p "$(RULEDIR)/openssl_headers/openssl"
|
||||
for f in $(locations //submodules/openssl:openssl_include); do
|
||||
cp -f "$$f" "$(RULEDIR)/openssl_headers/openssl/"
|
||||
done
|
||||
mkdir -p "$(RULEDIR)/Public/ton"
|
||||
|
||||
sh $(RULEDIR)/build-ton.sh "$(RULEDIR)/Public/ton" $(RULEDIR) "$(RULEDIR)/openssl_headers"
|
||||
""",
|
||||
outs = ["Public/ton/" + x for x in ton_headers],
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
]
|
||||
)
|
||||
|
||||
#ton_header_targets = gen_header_targets(ton_header_paths, "ton_header_", "", "ton_build", "build/out/include")
|
||||
|
||||
cc_library(
|
||||
name = "ton_lib",
|
||||
srcs = [":lib" + x + ".a" for x in ton_lib_names],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "ton",
|
||||
hdrs = ["Public/ton/" + x for x in ton_headers],
|
||||
deps = [
|
||||
":ton_lib",
|
||||
],
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
],
|
||||
)
|
BIN
submodules/ton/tonlib-src.zip
Normal file
BIN
submodules/ton/tonlib-src.zip
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user