Created
October 4, 2016 20:30
-
-
Save mikelikespie/c439d4c953c191e32a3a185086697c85 to your computer and use it in GitHub Desktop.
RxSwift buiild file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
objc_library( | |
name = "RxSwift", | |
srcs = glob([ | |
"RxSwift/**/*.swift", | |
]), | |
clang_module_name = "RxSwift", | |
enable_modules = True, | |
visibility = ["//visibility:public"], | |
) | |
public_hdrs = glob([ | |
"RxCocoa/Common/**/*.h", | |
"RxCocoa/iOS/**/*.h", | |
"RxCocoa/RxCocoa.h", | |
]) | |
genrule( | |
name = "RxSwiftUmbrella_headers", | |
srcs = public_hdrs, | |
outs = [ | |
"RxSwiftUmbrella/RxCocoa/_RX.h", | |
"RxSwiftUmbrella/RxCocoa/_RXDelegateProxy.h", | |
"RxSwiftUmbrella/RxCocoa/_RXKVOObserver.h", | |
"RxSwiftUmbrella/RxCocoa/_RXObjCRuntime.h", | |
"RxSwiftUmbrella/RxCocoa/RxCocoa.h", | |
], | |
cmd = "mkdir -p $(@D)/RxSwiftUmbrella/RxCocoa && cp $(SRCS) $(@D)/RxSwiftUmbrella/RxCocoa/", | |
) | |
objc_library( | |
name = "RxCocoa", | |
srcs = glob([ | |
"RxCocoa/Common/**/*.swift", | |
"RxCocoa/Common/**/*.m", | |
"RxCocoa/iOS/**/*.swift", | |
"RxCocoa/iOS/**/*.m", | |
]), | |
hdrs = [ | |
"RxSwiftUmbrella/RxCocoa/_RX.h", | |
"RxSwiftUmbrella/RxCocoa/_RXDelegateProxy.h", | |
"RxSwiftUmbrella/RxCocoa/_RXKVOObserver.h", | |
"RxSwiftUmbrella/RxCocoa/_RXObjCRuntime.h", | |
"RxSwiftUmbrella/RxCocoa/RxCocoa.h", | |
], | |
clang_module_name = "RxCocoa", | |
enable_modules = True, | |
includes = ["RxSwiftUmbrella"], | |
copts = [ | |
"-iquote\"$(GENDIR)/external/RxSwift/RxSwiftUmbrella/RxCocoa\"" | |
], | |
visibility = ["//visibility:public"], | |
deps = [ | |
":RxSwift", | |
], | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment