@@ -55,6 +55,10 @@ load("@build_bazel_rules_apple//apple:resources.bzl",
5555 "swift_intent_library" ,
5656)
5757
58+ load ("//build-system/bazel-utils:spm.bzl" ,
59+ "generate_spm" ,
60+ )
61+
5862config_setting (
5963 name = "debug" ,
6064 values = {
@@ -952,29 +956,6 @@ plist_fragment(
952956 )
953957)
954958
955- ios_framework (
956- name = "TelegramApiFramework" ,
957- bundle_id = "{telegram_bundle_id}.TelegramApi" .format (
958- telegram_bundle_id = telegram_bundle_id ,
959- ),
960- families = [
961- "iphone" ,
962- "ipad" ,
963- ],
964- infoplists = [
965- ":TelegramApiInfoPlist" ,
966- ":BuildNumberInfoPlist" ,
967- ":VersionInfoPlist" ,
968- ":RequiredDeviceCapabilitiesPlist" ,
969- ],
970- minimum_os_version = minimum_os_version ,
971- extension_safe = True ,
972- ipa_post_processor = strip_framework ,
973- deps = [
974- "//submodules/TelegramApi:TelegramApi" ,
975- ],
976- )
977-
978959plist_fragment (
979960 name = "TelegramCoreInfoPlist" ,
980961 extension = "plist" ,
@@ -2022,7 +2003,45 @@ xcodeproj(
20222003 default_xcode_configuration = "Debug"
20232004)
20242005
2025- # Temporary targets used to simplify webrtc build tests
2006+ # Temporary targets used to simplify build tests
2007+
2008+ ios_application (
2009+ name = "spm_build_app" ,
2010+ bundle_id = "{telegram_bundle_id}" .format (
2011+ telegram_bundle_id = telegram_bundle_id ,
2012+ ),
2013+ families = ["iphone" , "ipad" ],
2014+ minimum_os_version = minimum_os_version ,
2015+ provisioning_profile = select ({
2016+ ":disableProvisioningProfilesSetting" : None ,
2017+ "//conditions:default" : "@build_configuration//provisioning:Telegram.mobileprovision" ,
2018+ }),
2019+ entitlements = ":TelegramEntitlements.entitlements" ,
2020+ infoplists = [
2021+ ":TelegramInfoPlist" ,
2022+ ":BuildNumberInfoPlist" ,
2023+ ":VersionInfoPlist" ,
2024+ ":RequiredDeviceCapabilitiesPlist" ,
2025+ ":UrlTypesInfoPlist" ,
2026+ ],
2027+ deps = [
2028+ #"//submodules/MtProtoKit",
2029+ #"//submodules/SSignalKit/SwiftSignalKit",
2030+ #"//submodules/Postbox",
2031+ #"//submodules/TelegramApi",
2032+ #"//submodules/TelegramCore",
2033+ #"//submodules/FFMpegBinding",
2034+ "//submodules/Display" ,
2035+ #"//third-party/webrtc",
2036+ ],
2037+ )
2038+
2039+ generate_spm (
2040+ name = "spm_build_root" ,
2041+ deps = [
2042+ ":spm_build_app" ,
2043+ ]
2044+ )
20262045
20272046ios_application (
20282047 name = "webrtc_build_test" ,
@@ -2044,7 +2063,7 @@ ios_application(
20442063 ":UrlTypesInfoPlist" ,
20452064 ],
20462065 deps = [
2047- "//third-party/webrtc:webrtc_lib " ,
2066+ "//third-party/webrtc:webrtc " ,
20482067 ],
20492068)
20502069
0 commit comments