diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-07-07 11:29:51 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-07-07 18:37:32 +0200 |
commit | 011cad7cd2cd617427e939d737676394425bdc6b (patch) | |
tree | 4e8e80481c31bdce0a1a34ec869bf4009fd9099e /build_scripts | |
parent | 2cce79b0267570642c719598388db9960b0fe953 (diff) |
PySide6: Add entry points for the Qt Linguist tools
Add lupdate, lrelease, linguist.
Rewrite sources/pyside-tools/CMakeLists.txt to use lists
in case further tools need to be added.
[ChangeLog][PySide6] pyside6-lupdate and the related tools
from Qt Linguist have been re-added, enabling using the Qt
translation system.
Fixes: PYSIDE-1252
Change-Id: Ia528623f2b4fc3882a18347ed862ed910501d466
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'build_scripts')
-rw-r--r-- | build_scripts/config.py | 4 | ||||
-rw-r--r-- | build_scripts/platforms/unix.py | 6 | ||||
-rw-r--r-- | build_scripts/platforms/windows_desktop.py | 5 |
3 files changed, 12 insertions, 3 deletions
diff --git a/build_scripts/config.py b/build_scripts/config.py index 60e9eccfb..ba89d04bd 100644 --- a/build_scripts/config.py +++ b/build_scripts/config.py @@ -218,7 +218,9 @@ class Config(object): f'{PYSIDE}-rcc = {package_name}.scripts.pyside_tool:rcc', f'{PYSIDE}-assistant = {package_name}.scripts.pyside_tool:assistant', f'{PYSIDE}-designer= {package_name}.scripts.pyside_tool:designer', - f'{PYSIDE}-lupdate = {package_name}.scripts.pyside_tool:main', + f'{PYSIDE}-linguist = {package_name}.scripts.pyside_tool:linguist', + f'{PYSIDE}-lupdate = {package_name}.scripts.pyside_tool:lupdate', + f'{PYSIDE}-lrelease = {package_name}.scripts.pyside_tool:lrelease', f'{PYSIDE}-genpyi = {package_name}.scripts.pyside_tool:genpyi', ] } diff --git a/build_scripts/platforms/unix.py b/build_scripts/platforms/unix.py index 4b3ed0db0..8e5a5d584 100644 --- a/build_scripts/platforms/unix.py +++ b/build_scripts/platforms/unix.py @@ -165,9 +165,15 @@ def prepare_packages_posix(self, vars): lib_exec_filters = [] if not OPTION['NO_QT_TOOLS']: lib_exec_filters.extend(['uic', 'rcc']) + executables.extend(copydir( + "{install_dir}/bin/", + "{st_build_dir}/{st_package_name}", + filter=["lrelease", "lupdate"], + recursive=False, vars=vars)) # Copying assistant/designer executables.extend(_copy_gui_executable('assistant', vars=vars)) executables.extend(_copy_gui_executable('designer', vars=vars)) + executables.extend(_copy_gui_executable('linguist', vars=vars)) # Copy libexec built_modules = self.get_built_pyside_config(vars)['built_modules'] diff --git a/build_scripts/platforms/windows_desktop.py b/build_scripts/platforms/windows_desktop.py index 6b60aa753..70c2fbfb6 100644 --- a/build_scripts/platforms/windows_desktop.py +++ b/build_scripts/platforms/windows_desktop.py @@ -160,8 +160,9 @@ def prepare_packages_win32(self, vars): # <install>/bin/*.exe,*.dll -> {st_package_name}/ filters = ["pyside*.exe", "pyside*.dll"] if not OPTION['NO_QT_TOOLS']: - filters.extend(["uic.exe", "rcc.exe", "assistant.exe", - "designer.exe"]) + filters.extend(["lrelease.exe", "lupdate.exe", "uic.exe", + "rcc.exe", "assistant.exe", "designer.exe", + "linguist.exe"]) copydir( "{install_dir}/bin/", "{st_build_dir}/{st_package_name}", |