anki/qt/aqt/forms/BUILD.bazel
Damien Elmes 2c17105a35 use string replacements to generate Qt5 forms
They are mostly compatible, and this means a Qt5 install is not required
as part of the build process.
2021-10-16 08:59:09 +10:00

33 lines
587 B
Python

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