anki/qt/aqt/forms/BUILD.bazel
Henrik Giesel 3aebae9f13 Allow inclusion of external icons into aqt/forms/icons
+ Replace old tag icon with mdi tag and tag-off icon
2021-06-16 17:19:21 +10:00

50 lines
1.0 KiB
Python

load("@rules_python//python:defs.bzl", "py_binary")
load("compile.bzl", "compile_all")
compile_all(
srcs = glob(["*.ui"]),
group = "forms",
visibility = [
"//qt/aqt:__pkg__",
],
)
py_binary(
name = "build_ui",
srcs = ["build_ui.py"],
legacy_create_init = False,
deps = ["@pyqt5//:pkg"],
)
py_binary(
name = "build_qrc",
srcs = ["build_qrc.py"],
legacy_create_init = False,
deps = ["@pyqt5//:pkg"],
)
py_binary(
name = "build_rcc",
srcs = ["build_rcc.py"],
legacy_create_init = False,
deps = ["@pyqt5//:pkg"],
)
genrule(
name = "icons_qrc",
srcs = ["//qt/aqt/forms/icons"],
outs = ["icons.qrc"],
cmd = "$(location build_qrc) $(location icons.qrc) $(SRCS)",
tools = ["build_qrc"],
visibility = ["//qt/aqt:__pkg__"],
)
genrule(
name = "icons",
srcs = ["icons_qrc", "//qt/aqt/forms/icons"],
outs = ["icons_rc.py"],
cmd = "$(location build_rcc) $(location icons_qrc) $(location icons_rc.py)",
tools = ["build_rcc"],
visibility = ["//qt/aqt:__pkg__"],
)