mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/TelegramCore git-subtree-mainline: 971273e8f8f49a47f14b251d2f35e3445a61fc3f git-subtree-split: 9561227540acef69894e6546395ab223a6233600
45 lines
1.2 KiB
Python
45 lines
1.2 KiB
Python
load('//tools:buck_utils.bzl', 'config_with_updated_linker_flags', 'configs_with_config', 'combined_config')
|
|
load('//tools:buck_defs.bzl', 'SHARED_CONFIGS', 'EXTENSION_LIB_SPECIFIC_CONFIG')
|
|
|
|
apple_library(
|
|
name = 'TelegramCorePrivateModule',
|
|
srcs = glob([
|
|
'TelegramCore/**/*.m',
|
|
'TelegramCore/**/*.c',
|
|
'third-party/libphonenumber-iOS/*.m',
|
|
]),
|
|
headers = glob([
|
|
'TelegramCore/**/*.h',
|
|
'third-party/libphonenumber-iOS/*.h',
|
|
]),
|
|
header_namespace = 'TelegramCorePrivateModule',
|
|
exported_headers = glob([
|
|
'TelegramCore/**/*.h',
|
|
'third-party/libphonenumber-iOS/*.h',
|
|
], exclude = ['TelegramCore/TelegramCore.h']),
|
|
modular = True,
|
|
visibility = ['//submodules/TelegramCore:TelegramCore'],
|
|
deps = [
|
|
'//submodules/MtProtoKit:MtProtoKit',
|
|
],
|
|
)
|
|
|
|
apple_library(
|
|
name = 'TelegramCore',
|
|
srcs = glob([
|
|
'TelegramCore/**/*.swift'
|
|
]),
|
|
configs = configs_with_config(combined_config([SHARED_CONFIGS, EXTENSION_LIB_SPECIFIC_CONFIG])),
|
|
swift_compiler_flags = [
|
|
'-suppress-warnings',
|
|
'-application-extension',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
deps = [
|
|
':TelegramCorePrivateModule',
|
|
'//submodules/SSignalKit:SwiftSignalKit',
|
|
'//submodules/MtProtoKit:MtProtoKit',
|
|
'//submodules/Postbox:Postbox',
|
|
],
|
|
)
|