e357dbf6b3
Means URLs like :/icons/foo.jpg should become icons:foo.jpg This is part of the prep work for a PyQt6 update. PyQt6 has dropped pyrcc, so we can longer generate the icons_qrc.py file we did previously. Qt Designer expects us to use the resource system, so we continue to generate the icons.qrc file to make editing the UI files easier. But at runtime, we no longer use that file.
18 lines
331 B
Python
18 lines
331 B
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"],
|
|
)
|