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 = 'WatchUtils', srcs = [ 'Bridge/TGBridgeCommon.m', 'Bridge/TGBridgeContactMediaAttachment.m', 'Bridge/TGBridgeVideoMediaAttachment.m', 'Bridge/TGBridgeSubscriptions.m', 'Bridge/TGBridgeLocationVenue.m', 'Bridge/TGBridgeImageMediaAttachment.m', 'Bridge/TGBridgeBotInfo.m', 'Bridge/TGBridgeChatMessages.m', 'Bridge/TGBridgeMessage.m', 'Bridge/TGBridgeUnsupportedMediaAttachment.m', 'Bridge/TGBridgeChat.m', 'Bridge/TGBridgeForwardedMessageMediaAttachment.m', 'Bridge/TGBridgeMessageEntities.m', 'Bridge/TGBridgeLocationMediaAttachment.m', 'Bridge/TGBridgeMessageEntitiesAttachment.m', 'Bridge/TGBridgeReplyMarkupMediaAttachment.m', 'Bridge/TGBridgeWebPageMediaAttachment.m', 'Bridge/TGBridgeDocumentMediaAttachment.m', 'Bridge/TGBridgeActionMediaAttachment.m', 'Bridge/TGBridgeContext.m', 'Bridge/TGBridgeMediaAttachment.m', 'Bridge/TGBridgeUser.m', 'Bridge/TGBridgeBotCommandInfo.m', 'Bridge/TGBridgeAudioMediaAttachment.m', 'Bridge/TGBridgeReplyMessageMediaAttachment.m', ], headers = glob([ 'Bridge/*.h', 'Extension/*.h', ]), header_namespace = 'WatchUtils', exported_headers = [ 'Bridge/TGBridgeCommon.h', 'Bridge/TGBridgeContactMediaAttachment.h', 'Bridge/TGBridgeVideoMediaAttachment.h', 'Bridge/TGBridgeSubscriptions.h', 'Bridge/TGBridgeLocationVenue.h', 'Bridge/TGBridgeImageMediaAttachment.h', 'Bridge/TGBridgeBotInfo.h', 'Bridge/TGBridgeChatMessages.h', 'Bridge/TGBridgeMessage.h', 'Bridge/TGBridgeUnsupportedMediaAttachment.h', 'Bridge/TGBridgeChat.h', 'Bridge/TGBridgeForwardedMessageMediaAttachment.h', 'Bridge/TGBridgeMessageEntities.h', 'Bridge/TGBridgeLocationMediaAttachment.h', 'Bridge/TGBridgeMessageEntitiesAttachment.h', 'Bridge/TGBridgeReplyMarkupMediaAttachment.h', 'Bridge/TGBridgeWebPageMediaAttachment.h', 'Bridge/TGBridgeDocumentMediaAttachment.h', 'Bridge/TGBridgeActionMediaAttachment.h', 'Bridge/TGBridgeContext.h', 'Bridge/TGBridgeMediaAttachment.h', 'Bridge/TGBridgeUser.h', 'Bridge/TGBridgeBotCommandInfo.h', 'Bridge/TGBridgeAudioMediaAttachment.h', 'Bridge/TGBridgeReplyMessageMediaAttachment.h', ], modular = True, configs = configs_with_config(combined_config([SHARED_CONFIGS, EXTENSION_LIB_SPECIFIC_CONFIG])), compiler_flags = [ '-w', ], preprocessor_flags = ['-fobjc-arc'], visibility = ['PUBLIC'], frameworks = [ '$SDKROOT/System/Library/Frameworks/Foundation.framework', '$SDKROOT/System/Library/Frameworks/UIKit.framework', ], )