aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside-tools/project.py')
-rw-r--r--sources/pyside-tools/project.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/sources/pyside-tools/project.py b/sources/pyside-tools/project.py
index 762e76f31..fbb740c32 100644
--- a/sources/pyside-tools/project.py
+++ b/sources/pyside-tools/project.py
@@ -104,13 +104,19 @@ class Project:
"""Return path and command for a file's artifact"""
if file.suffix == ".ui": # Qt form files
py_file = f"{file.parent}/ui_{file.stem}.py"
- return [Path(py_file)], [UIC_CMD, os.fspath(file), "--rc-prefix", "-o", py_file]
+ cmd = [UIC_CMD]
+ cmd.extend(self.project.uic_options)
+ cmd.extend([os.fspath(file), "--rc-prefix", "-o", py_file])
+ return [Path(py_file)], cmd
if file.suffix == ".qrc": # Qt resources
if not output_path:
py_file = f"{file.parent}/rc_{file.stem}.py"
else:
py_file = str(output_path.resolve())
- return [Path(py_file)], [RCC_CMD, os.fspath(file), "-o", py_file]
+ cmd = [RCC_CMD]
+ cmd.extend(self.project.rcc_options)
+ cmd.extend([os.fspath(file), "-o", py_file])
+ return [Path(py_file)], cmd
# generate .qmltypes from sources with Qml decorators
if file.suffix == ".py" and file in self._qml_module_sources:
assert self._qml_module_dir