mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2025-09-06 00:42:05 +02:00
fix compile
This commit is contained in:
parent
49545db0dc
commit
bbfec42976
6 changed files with 48 additions and 7 deletions
|
@ -15,12 +15,17 @@
|
|||
* limitations under the License.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "LuaEngine_macro.h"
|
||||
#include "LuaEngineOS.h"
|
||||
#include <QTextStream>
|
||||
#include <QProcess>
|
||||
#include <QObject>
|
||||
|
||||
LuaEngineOS::LuaEngineOS(QObject *parent, bool loadBaseLibraries) : LuaEngine(parent, loadBaseLibraries)
|
||||
{
|
||||
L = luaState();
|
||||
pushClass(L);
|
||||
}
|
||||
|
||||
void LuaEngineOS::pushClass(lua_State *L_p)
|
||||
{
|
||||
// Process
|
||||
|
|
|
@ -20,15 +20,20 @@
|
|||
|
||||
#include "LuaEngineOS_global.h"
|
||||
#include "LuaEngine.h"
|
||||
#include <QString>
|
||||
#include <QObject>
|
||||
|
||||
class LUAENGINEOSSHARED_EXPORT LuaEngineOS
|
||||
class LUAENGINEOSSHARED_EXPORT LuaEngineOS : public LuaEngine
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
LuaEngineOS(QObject *parent = nullptr, bool loadBaseLibraries = true);
|
||||
static void pushClass(lua_State *L_p);
|
||||
static void pushClass(LuaEngine *luaEngine);
|
||||
static int executeProcess(lua_State *L_p);
|
||||
|
||||
private:
|
||||
lua_State *L;
|
||||
static QString nameForPointer(void *pointer);
|
||||
};
|
||||
|
||||
|
|
|
@ -18,7 +18,9 @@
|
|||
QT += core
|
||||
TARGET = luaengineos
|
||||
TEMPLATE = lib
|
||||
CONFIG += c++11
|
||||
CONFIG += c++11 \
|
||||
skip_target_version_ext
|
||||
VERSION = 0.1
|
||||
|
||||
DEFINES += LUAENGINEOS_LIBRARY
|
||||
static: DEFINES += LUAENGINE_STATIC
|
||||
|
@ -37,3 +39,11 @@ SOURCES += \
|
|||
HEADERS += \
|
||||
luaengine/LuaEngineOS.h \
|
||||
luaengine/LuaEngineOS_global.h
|
||||
|
||||
win32 {
|
||||
RC_LANG = 0x0
|
||||
QMAKE_TARGET_COMPANY = "Syping"
|
||||
QMAKE_TARGET_DESCRIPTION = "LuaEngine OS Library"
|
||||
QMAKE_TARGET_COPYRIGHT = "Copyright (c) 2019 Syping"
|
||||
QMAKE_TARGET_PRODUCT = "luaengineos"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue