blob: 2d8336795ab863463c5823e03fd72bc63dab3485 [file] [log] [blame] [edit]
load("@build_bazel_rules_swift//swift:swift_library.bzl", "swift_library")
package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//:__subpackages__"],
)
licenses(["notice"])
exports_files(["Info.plist"])
exports_files(
["BazelSelectionPanel.swift"],
visibility = ["//:__subpackages__"],
)
filegroup(
name = "Icon",
srcs = glob(["Assets.xcassets/AppIcon.appiconset/*"]),
)
exports_files(["en.lproj/Localizable.strings"])
filegroup(
name = "tulsi_srcs",
srcs = glob(["*.swift"]),
)
filegroup(
name = "tulsi_resources",
srcs = glob(
[
"*.lproj/*",
"Assets.xcassets/**/*",
"Config/*",
],
exclude = [
"Assets.xcassets/AppIcon.appiconset/*",
"en.lproj/Localizable.strings",
],
),
)
swift_library(
name = "tulsi_lib",
srcs = [":tulsi_srcs"],
data = [":tulsi_resources"],
module_name = "Tulsi",
tags = ["nobuilder"],
deps = ["//src/TulsiGenerator:tulsi_generator_lib"],
)