mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/Display git-subtree-mainline: 9bc996374ffdad37aef175427db72731c9551dcf git-subtree-split: 7bd11013ea936e3d49d937550d599f5816d32560
54 lines
1.7 KiB
Python
54 lines
1.7 KiB
Python
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 = 'DisplayPrivate',
|
|
srcs = glob([
|
|
'Display/*.m',
|
|
]),
|
|
headers = glob([
|
|
'Display/*.h',
|
|
]),
|
|
header_namespace = 'DisplayPrivate',
|
|
exported_headers = glob([
|
|
'Display/*.h',
|
|
], exclude = ['Display/Display.h']),
|
|
modular = True,
|
|
configs = configs_with_config(combined_config([SHARED_CONFIGS, EXTENSION_LIB_SPECIFIC_CONFIG])),
|
|
compiler_flags = ['-w'],
|
|
preprocessor_flags = ['-fobjc-arc'],
|
|
visibility = ['//submodules/Display:Display'],
|
|
deps = [
|
|
'//submodules/AsyncDisplayKit:AsyncDisplayKit',
|
|
],
|
|
frameworks = [
|
|
'$SDKROOT/System/Library/Frameworks/Foundation.framework',
|
|
'$SDKROOT/System/Library/Frameworks/UIKit.framework',
|
|
],
|
|
)
|
|
|
|
apple_library(
|
|
name = 'Display',
|
|
srcs = glob([
|
|
'Display/*.swift',
|
|
]),
|
|
configs = configs_with_config(combined_config([SHARED_CONFIGS, EXTENSION_LIB_SPECIFIC_CONFIG])),
|
|
swift_compiler_flags = [
|
|
'-suppress-warnings',
|
|
'-application-extension',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
deps = [
|
|
':DisplayPrivate',
|
|
'//submodules/AsyncDisplayKit:AsyncDisplayKit',
|
|
'//submodules/SSignalKit:SwiftSignalKit',
|
|
],
|
|
frameworks = [
|
|
'$SDKROOT/System/Library/Frameworks/Foundation.framework',
|
|
'$SDKROOT/System/Library/Frameworks/UIKit.framework',
|
|
'$SDKROOT/System/Library/Frameworks/QuartzCore.framework',
|
|
'$SDKROOT/System/Library/Frameworks/CoreText.framework',
|
|
'$SDKROOT/System/Library/Frameworks/CoreGraphics.framework',
|
|
],
|
|
)
|