Lua: Add Lua plugin to qbs build

Change-Id: I1c1f0408f0e0af3dd3b2ec9275a0d3cd8794918f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Christian Stenger
2024-04-16 09:55:19 +02:00
parent 1f16237736
commit 4fcc003668
2 changed files with 68 additions and 11 deletions

View File

@@ -4,23 +4,79 @@ QtcPlugin {
name: "Lua"
Depends { name: "Core" }
Depends { name: "Qt"; submodules: ["widgets"] }
Depends { name: "Qt"; submodules: ["network", "widgets"] }
// TODO: Find Lua library, or disable the plugin
Depends { name: "Lua"; }
//cpp.defines: LUA_AVAILABLE SOL_ALL_SAFETIES_ON=1
Depends { name: "lua546" }
Depends { name: "sol2" }
files: [
"luaplugin.cpp",
"luaplugin.h",
// "generateqtbindings.cpp", // use this if you need to generate some code
"lua_global.h",
"luaengine.cpp",
"luaengine.h",
"luaapiregistry.cpp",
"luaapiregistry.h",
"luaplugin.cpp",
"luapluginloader.cpp",
"luapluginloader.h",
"luatr.h"
"luapluginspec.cpp",
"luapluginspec.h",
"luaqttypes.cpp",
"luaqttypes.h",
"luatr.h",
"luauibindings.cpp",
]
}
Group {
name: "Bindings"
prefix: "bindings/"
files: [
"action.cpp",
"async.cpp",
"core.cpp",
"fetch.cpp",
"hook.cpp",
"inheritance.h",
"layout.cpp",
"messagemanager.cpp",
"qtcprocess.cpp",
"settings.cpp",
"utils.cpp",
]
Properties {
condition: qbs.toolchain.contains("msvc")
cpp.cxxFlags: "/bigobj"
}
}
Group {
name: "Meta"
prefix: "meta/"
files: [
"action.lua",
"async.lua",
"core.lua",
"fetch.lua",
"layout.lua",
"lsp.lua",
"messagemanager.lua",
"process.lua",
"qt.lua",
"qtc.lua",
"settings.lua",
"simpletypes.lua",
"utils.lua",
"widgets.lua",
"wizard.lua",
]
}
Group {
name: "Meta-Backup"
prefix: "metabackup/"
files: [
"qobject.lua",
]
}
}

View File

@@ -52,6 +52,7 @@ Project {
"incredibuild/incredibuild.qbs",
"ios/ios.qbs",
"languageclient/languageclient.qbs",
"lua/lua.qbs",
"macros/macros.qbs",
"marketplace/marketplace.qbs",
"mcusupport/mcusupport.qbs",