anki/qt/aqt/forms/BUILD.bazel

33 lines
581 B
Python
Raw Normal View History

load("@rules_python//python:defs.bzl", "py_binary")
load("compile.bzl", "compile_all")
2021-10-05 05:18:43 +02:00
py_binary(
name = "build_ui",
srcs = ["build_ui.py"],
2021-10-05 05:18:43 +02:00
legacy_create_init = False,
deps = ["@pyqt6"],
2021-10-05 05:18:43 +02:00
)
compile_all(
name = "generated_forms",
2021-10-05 05:18:43 +02:00
srcs = glob(["*.ui"]),
builder = "build_ui",
2021-10-05 05:18:43 +02:00
)
filegroup(
name = "forms",
srcs = glob(
["*.py"],
exclude = [
"*_qt5.py",
"*_qt6.py",
"build_ui*.py",
],
) + [
":generated_forms",
2021-10-05 05:18:43 +02:00
],
visibility = [
"//qt/aqt:__pkg__",
],
)