forked from qt-creator/qt-creator
Lua: Add Lua plugin to qbs build
Change-Id: I1c1f0408f0e0af3dd3b2ec9275a0d3cd8794918f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -4,23 +4,79 @@ QtcPlugin {
|
|||||||
name: "Lua"
|
name: "Lua"
|
||||||
|
|
||||||
Depends { name: "Core" }
|
Depends { name: "Core" }
|
||||||
Depends { name: "Qt"; submodules: ["widgets"] }
|
Depends { name: "Qt"; submodules: ["network", "widgets"] }
|
||||||
|
|
||||||
// TODO: Find Lua library, or disable the plugin
|
Depends { name: "lua546" }
|
||||||
Depends { name: "Lua"; }
|
Depends { name: "sol2" }
|
||||||
|
|
||||||
//cpp.defines: LUA_AVAILABLE SOL_ALL_SAFETIES_ON=1
|
|
||||||
|
|
||||||
files: [
|
files: [
|
||||||
"luaplugin.cpp",
|
// "generateqtbindings.cpp", // use this if you need to generate some code
|
||||||
"luaplugin.h",
|
"lua_global.h",
|
||||||
"luaengine.cpp",
|
"luaengine.cpp",
|
||||||
"luaengine.h",
|
"luaengine.h",
|
||||||
"luaapiregistry.cpp",
|
"luaplugin.cpp",
|
||||||
"luaapiregistry.h",
|
|
||||||
"luapluginloader.cpp",
|
"luapluginloader.cpp",
|
||||||
"luapluginloader.h",
|
"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",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ Project {
|
|||||||
"incredibuild/incredibuild.qbs",
|
"incredibuild/incredibuild.qbs",
|
||||||
"ios/ios.qbs",
|
"ios/ios.qbs",
|
||||||
"languageclient/languageclient.qbs",
|
"languageclient/languageclient.qbs",
|
||||||
|
"lua/lua.qbs",
|
||||||
"macros/macros.qbs",
|
"macros/macros.qbs",
|
||||||
"marketplace/marketplace.qbs",
|
"marketplace/marketplace.qbs",
|
||||||
"mcusupport/mcusupport.qbs",
|
"mcusupport/mcusupport.qbs",
|
||||||
|
|||||||
Reference in New Issue
Block a user