Lua: Add Install module

Allows plugins to install packages they might need.

Change-Id: I4948dd0a6568e093fc35e4486d2e2a084090e103
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-05-14 13:47:50 +02:00
parent f54a83ff45
commit eec48b8f8e
9 changed files with 482 additions and 25 deletions

View File

@@ -32,6 +32,7 @@ void addLayoutModule();
void addQtModule();
void addCoreModule();
void addHookModule();
void addInstallModule();
class LuaJsExtension : public QObject
{
@@ -75,6 +76,7 @@ public:
addQtModule();
addCoreModule();
addHookModule();
addInstallModule();
Core::JsExpander::registerGlobalObject("Lua", [] { return new LuaJsExtension(); });
}