2020-11-01 05:26:58 +01:00
|
|
|
load("@rules_python//python:defs.bzl", "py_binary")
|
|
|
|
load("compile.bzl", "compile_all")
|
|
|
|
|
2021-10-05 05:18:43 +02:00
|
|
|
py_binary(
|
2021-10-16 00:59:09 +02:00
|
|
|
name = "build_ui",
|
|
|
|
srcs = ["build_ui.py"],
|
2021-10-05 05:18:43 +02:00
|
|
|
legacy_create_init = False,
|
2021-10-23 02:56:17 +02:00
|
|
|
deps = ["@pyqt6"],
|
2021-10-05 05:18:43 +02:00
|
|
|
)
|
|
|
|
|
2021-06-15 14:46:59 +02:00
|
|
|
compile_all(
|
2021-10-16 00:59:09 +02:00
|
|
|
name = "generated_forms",
|
2021-10-05 05:18:43 +02:00
|
|
|
srcs = glob(["*.ui"]),
|
2021-10-16 00:59:09 +02:00
|
|
|
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",
|
|
|
|
],
|
|
|
|
) + [
|
2021-10-16 00:59:09 +02:00
|
|
|
":generated_forms",
|
2021-10-05 05:18:43 +02:00
|
|
|
],
|
2021-06-15 14:46:59 +02:00
|
|
|
visibility = [
|
|
|
|
"//qt/aqt:__pkg__",
|
|
|
|
],
|
|
|
|
)
|