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"
|
||||
|
||||
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",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user