Slide 12
Slide 12 text
Mixed Targets
> Generating module map
from Obj-C headers
> swift_library() with all
Swift source files
Ƃ
native.swift_library(
name = "LineServices",
module_name = "LineServices",
srcs = native.glob(["*.swift"]),
copts = [
"-import-underlying-module",
"-Xfrontend",
"-enable-objc-interop",
"-Xcc",
"-fmodule-map-file=$(execpath :module.modulemap)",
],
swiftc_inputs = hdrs + ["module.modulemap"],
features = ["swift.no_generated_module_map"],
)