Skip to content

Instantly share code, notes, and snippets.

@mikelikespie
Created October 4, 2016 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikelikespie/c439d4c953c191e32a3a185086697c85 to your computer and use it in GitHub Desktop.
Save mikelikespie/c439d4c953c191e32a3a185086697c85 to your computer and use it in GitHub Desktop.
RxSwift buiild file
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