mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
41 lines
1.3 KiB
Python
41 lines
1.3 KiB
Python
load(
|
|
"@build_configuration//: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",
|
|
"telegram_premium_iap_product_id",
|
|
)
|
|
|
|
objc_library(
|
|
name = "BuildConfig",
|
|
module_name = "BuildConfig",
|
|
enable_modules = True,
|
|
srcs = glob([
|
|
"Sources/*.m",
|
|
]),
|
|
copts = [
|
|
"-Werror",
|
|
"-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),
|
|
"-DAPP_CONFIG_PREMIUM_IAP_PRODUCT_ID=\\\"{}\\\"".format(telegram_premium_iap_product_id),
|
|
],
|
|
hdrs = glob([
|
|
"PublicHeaders/**/*.h",
|
|
]),
|
|
includes = [
|
|
"PublicHeaders",
|
|
],
|
|
deps = [
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
)
|