diff options
| author | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2022-07-28 14:25:17 +0200 |
|---|---|---|
| committer | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2022-08-11 15:17:52 +0000 |
| commit | 950b73510bda03c4a4096d2f6aa5daf1a377ab9e (patch) | |
| tree | 353f93fd457c73205d57b6795cdc641c95038093 | |
| parent | 39821c9265ca15373725e408b5ede19794b9e419 (diff) | |
PySideTools: Add qmlls
- added qml language server
Task-number: PYSIDE-2004
Change-Id: I79c44588c7db42c87914162a5babd4e390ff9a88
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
| -rw-r--r-- | build_scripts/config.py | 2 | ||||
| -rw-r--r-- | build_scripts/platforms/unix.py | 2 | ||||
| -rw-r--r-- | build_scripts/platforms/windows_desktop.py | 2 | ||||
| -rw-r--r-- | build_scripts/wheel_files.py | 1 | ||||
| -rw-r--r-- | create_wheels.py | 1 | ||||
| -rw-r--r-- | sources/pyside-tools/CMakeLists.txt | 3 | ||||
| -rw-r--r-- | sources/pyside-tools/pyside_tool.py | 4 |
7 files changed, 11 insertions, 4 deletions
diff --git a/build_scripts/config.py b/build_scripts/config.py index 25bbd0450..9c0c41280 100644 --- a/build_scripts/config.py +++ b/build_scripts/config.py @@ -201,7 +201,7 @@ class Config(object): ] _pyside_tools = ["uic", "rcc", "assistant", "designer", "linguist", "lupdate", "lrelease", "genpyi", "metaobjectdump", - "project", "qml", "qmltyperegistrar", "qmllint", "qmlformat"] + "project", "qml", "qmltyperegistrar", "qmllint", "qmlformat", "qmlls"] setup_kwargs['entry_points'] = { 'console_scripts': [f'{PYSIDE}-{tool} = {package_name}.scripts.pyside_tool:{tool}' for tool in _pyside_tools] diff --git a/build_scripts/platforms/unix.py b/build_scripts/platforms/unix.py index ecc41ba5c..9b1aa3552 100644 --- a/build_scripts/platforms/unix.py +++ b/build_scripts/platforms/unix.py @@ -129,7 +129,7 @@ def prepare_packages_posix(self, _vars): executables.extend(copydir( "{install_dir}/bin/", "{st_build_dir}/{st_package_name}", - _filter=["lrelease", "lupdate", "qmllint", "qmlformat"], + _filter=["lrelease", "lupdate", "qmllint", "qmlformat", "qmlls"], recursive=False, _vars=_vars)) # Copying assistant/designer executables.extend(_copy_gui_executable('assistant', _vars=_vars)) diff --git a/build_scripts/platforms/windows_desktop.py b/build_scripts/platforms/windows_desktop.py index 6ab657a64..fd65e35c4 100644 --- a/build_scripts/platforms/windows_desktop.py +++ b/build_scripts/platforms/windows_desktop.py @@ -126,7 +126,7 @@ def prepare_packages_win32(self, _vars): filters.extend(["lrelease.exe", "lupdate.exe", "uic.exe", "rcc.exe", "qmllint.exe", "qmltyperegistrar.exe" "assistant.exe", "designer.exe", - "linguist.exe", "qmlformat.exe"]) + "linguist.exe", "qmlformat.exe", "qmlls.exe"]) copydir( "{install_dir}/bin/", "{st_build_dir}/{st_package_name}", diff --git a/build_scripts/wheel_files.py b/build_scripts/wheel_files.py index 3b1914ff9..e5e15f218 100644 --- a/build_scripts/wheel_files.py +++ b/build_scripts/wheel_files.py @@ -258,6 +258,7 @@ def module_QtCore() -> ModuleData: data.extra_files.append("lupdate*") data.extra_files.append("qmllint*") data.extra_files.append("qmlformat*") + data.extra_files.append("qmlls*") # General translations data.translations.append("qtbase_*") diff --git a/create_wheels.py b/create_wheels.py index 902232fd5..5b307df72 100644 --- a/create_wheels.py +++ b/create_wheels.py @@ -208,6 +208,7 @@ def wheel_pyside6_essentials() -> Tuple[SetupData, List[ModuleData]]: "pyside6-qmllint = PySide6.scripts.pyside_tool:qmllint", "pyside6-qml = PySide6.scripts.pyside_tool:qml", "pyside6-qmlformat = PySide6.scripts.pyside_tool:qmlformat", + "pyside6-qmlls = PySide6.scripts.pyside_tool:qmlls" ], ) diff --git a/sources/pyside-tools/CMakeLists.txt b/sources/pyside-tools/CMakeLists.txt index 487228764..3b11a5056 100644 --- a/sources/pyside-tools/CMakeLists.txt +++ b/sources/pyside-tools/CMakeLists.txt @@ -19,7 +19,8 @@ if(NOT NO_QT_TOOLS STREQUAL "yes") "${TOOLS_PATH}/lrelease${CMAKE_EXECUTABLE_SUFFIX}" "${TOOLS_PATH}/lupdate${CMAKE_EXECUTABLE_SUFFIX}" "${TOOLS_PATH}/qmllint${CMAKE_EXECUTABLE_SUFFIX}" - "${TOOLS_PATH}/qmlformat${CMAKE_EXECUTABLE_SUFFIX}") + "${TOOLS_PATH}/qmlformat${CMAKE_EXECUTABLE_SUFFIX}" + "${TOOLS_PATH}/qmlls${CMAKE_EXECUTABLE_SUFFIX}") if (APPLE) list(APPEND directories "${TOOLS_PATH}/Assistant.app" diff --git a/sources/pyside-tools/pyside_tool.py b/sources/pyside-tools/pyside_tool.py index ad6e2b0a7..8deed8cf1 100644 --- a/sources/pyside-tools/pyside_tool.py +++ b/sources/pyside-tools/pyside_tool.py @@ -82,6 +82,10 @@ def qmlformat(): qt_tool_wrapper("qmlformat", sys.argv[1:]) +def qmlls(): + qt_tool_wrapper("qmlls", sys.argv[1:]) + + def assistant(): qt_tool_wrapper(ui_tool_binary("assistant"), sys.argv[1:]) |
