mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-15 07:49:27 +00:00
35 lines
1.0 KiB
Python
35 lines
1.0 KiB
Python
load(
|
|
"//build-input/data:variables.bzl",
|
|
"telegram_api_id",
|
|
"telegram_api_hash",
|
|
"telegram_app_center_id",
|
|
"telegram_is_internal_build",
|
|
"telegram_is_appstore_build",
|
|
"telegram_appstore_id",
|
|
"telegram_app_specific_url_scheme",
|
|
)
|
|
|
|
objc_library(
|
|
name = "BuildConfig",
|
|
module_name = "BuildConfig",
|
|
enable_modules = True,
|
|
srcs = glob([
|
|
"Sources/*.m",
|
|
]),
|
|
copts = [
|
|
"-DAPP_CONFIG_API_ID={}".format(telegram_api_id),
|
|
"-DAPP_CONFIG_API_HASH=\\\"{}\\\"".format(telegram_api_hash),
|
|
"-DAPP_CONFIG_APP_CENTER_ID=\\\"{}\\\"".format(telegram_app_center_id),
|
|
"-DAPP_CONFIG_IS_INTERNAL_BUILD={}".format(telegram_is_internal_build),
|
|
"-DAPP_CONFIG_IS_APPSTORE_BUILD={}".format(telegram_is_appstore_build),
|
|
"-DAPP_CONFIG_APPSTORE_ID={}".format(telegram_appstore_id),
|
|
"-DAPP_SPECIFIC_URL_SCHEME=\\\"{}\\\"".format(telegram_app_specific_url_scheme),
|
|
],
|
|
hdrs = glob([
|
|
"Sources/*.h",
|
|
]),
|
|
deps = [
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
)
|