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"], )