mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
38 lines
1.1 KiB
Python
38 lines
1.1 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([
|
|
"PublicHeaders/**/*.h",
|
|
]),
|
|
includes = [
|
|
"PublicHeaders",
|
|
],
|
|
deps = [
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
)
|