mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Temp
This commit is contained in:
parent
f15c474757
commit
0b18cddbb8
40
submodules/AsyncDisplayKit/BUILD
vendored
40
submodules/AsyncDisplayKit/BUILD
vendored
@ -7,14 +7,39 @@ ASYNCDISPLAYKIT_EXPORTED_HEADERS = glob([
|
||||
"Source/Debug/AsyncDisplayKit+Debug.h",
|
||||
"Source/TextKit/ASTextNodeTypes.h",
|
||||
"Source/TextKit/ASTextKitComponents.h"
|
||||
])
|
||||
], exclude = ["Source/AsyncDisplayKit.h"])
|
||||
|
||||
ASYNCDISPLAYKIT_PRIVATE_HEADERS = glob([
|
||||
"Source/**/*.h"
|
||||
],
|
||||
exclude = ASYNCDISPLAYKIT_EXPORTED_HEADERS,
|
||||
exclude = ASYNCDISPLAYKIT_EXPORTED_HEADERS + ["Source/AsyncDisplayKit.h"],
|
||||
)
|
||||
|
||||
exported_headers_rule_name = "AsyncDisplayKit_ExportedHeaders"
|
||||
private_headers_rule_name = "AsyncDisplayKit_PrivateHeaders"
|
||||
exported_headers_path = "includedir"
|
||||
private_headers_path = "privateincludedir"
|
||||
name = "AsyncDisplayKit"
|
||||
headers = ASYNCDISPLAYKIT_EXPORTED_HEADERS
|
||||
|
||||
genrule(
|
||||
name = exported_headers_rule_name,
|
||||
srcs = headers,
|
||||
# Headers can be nested multiple levels, so we use `x.split('/')[::-1][0] for x in headers` to get their basenames
|
||||
outs = [exported_headers_path + "/" + name + "/" + x.split('/')[::-1][0] for x in headers],
|
||||
# Finally we copy all headers to the `exported_headers_path` directory
|
||||
cmd = "cp $(SRCS) $(RULEDIR)" + "/" + exported_headers_path + "/" + name,
|
||||
)
|
||||
exported_headers = [":" + exported_headers_rule_name]
|
||||
|
||||
genrule(
|
||||
name = private_headers_rule_name,
|
||||
srcs = ASYNCDISPLAYKIT_PRIVATE_HEADERS,
|
||||
outs = [private_headers_path + "/" + name + "/" + x.split('/')[::-1][0] for x in ASYNCDISPLAYKIT_PRIVATE_HEADERS],
|
||||
cmd = "cp $(SRCS) $(RULEDIR)" + "/" + private_headers_path + "/" + name,
|
||||
)
|
||||
private_headers = [":" + private_headers_rule_name]
|
||||
|
||||
objc_library(
|
||||
name = "AsyncDisplayKit",
|
||||
enable_modules = True,
|
||||
@ -23,11 +48,18 @@ objc_library(
|
||||
"Source/**/*.m",
|
||||
"Source/**/*.mm",
|
||||
"Source/Base/*.m",
|
||||
]) + ASYNCDISPLAYKIT_PRIVATE_HEADERS,
|
||||
hdrs = ASYNCDISPLAYKIT_EXPORTED_HEADERS,
|
||||
]) + private_headers,
|
||||
hdrs = exported_headers,
|
||||
defines = [
|
||||
"MINIMAL_ASDK",
|
||||
],
|
||||
copts = [
|
||||
#"-I$(locations :AsyncDisplayKit_PrivateHeaders)",
|
||||
],
|
||||
includes = [
|
||||
exported_headers_path,
|
||||
private_headers_path,
|
||||
],
|
||||
sdk_frameworks = [
|
||||
"QuartzCore",
|
||||
"CoreMedia",
|
||||
|
@ -6,7 +6,7 @@
|
||||
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
|
||||
#import <AsyncDisplayKit/ASAvailability.h>
|
||||
#import "AsyncDisplayKit/ASAvailability.h"
|
||||
#import "ASButtonNode+Yoga.h"
|
||||
#import <AsyncDisplayKit/ASButtonNode+Private.h>
|
||||
#import <AsyncDisplayKit/ASDisplayNodeInternal.h>
|
||||
|
@ -7,7 +7,7 @@
|
||||
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
|
||||
#import "ASAvailability.h"
|
||||
#import <AsyncDisplayKit/ASAvailability.h>
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
|
@ -7,10 +7,10 @@
|
||||
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
|
||||
#import <AsyncDisplayKit/ASTip.h>
|
||||
|
||||
#if AS_ENABLE_TIPS
|
||||
|
||||
#import <AsyncDisplayKit/ASTip.h>
|
||||
|
||||
#import <AsyncDisplayKit/ASDisplayNode.h>
|
||||
|
||||
@implementation ASTip
|
||||
|
Loading…
x
Reference in New Issue
Block a user