static builds should be fixed

This commit is contained in:
Syping 2018-08-28 03:23:30 +02:00
parent 74d0e57ce0
commit 6801690c28
5 changed files with 7 additions and 7 deletions

View file

@ -16,10 +16,9 @@
#*****************************************************************************/
QT -= gui
CONFIG += c++11
TARGET = luaengine
TEMPLATE = lib
CONFIG += c++11
DEFINES += LUAENGINE_LIBRARY
DEFINES += LUA_COMPAT_5_2

View file

@ -19,6 +19,8 @@ QT += core network gui widgets
TARGET = luaengineapp
CONFIG += c++11
static: DEFINES += LUAENGINE_STATIC
CONFIG(debug, debug|release): win32: LIBS += -L$$OUT_PWD/../luaengine/debug -lluaengine -L$$OUT_PWD/../luaenginegui/debug -lluaenginegui
CONFIG(release, debug|release): win32: LIBS += -L$$OUT_PWD/../luaengine/release -lluaengine -L$$OUT_PWD/../luaenginegui/release -lluaenginegui
unix: LIBS += -L$$OUT_PWD/../luaengine -lluaengine -L$$OUT_PWD/../luaenginegui -lluaenginegui

View file

@ -58,7 +58,7 @@ int main(int argc, char *argv[])
luaEngineGui.executeLuaScript(&luaScript);
QVariantList arguments;
for (const QString argument : a.arguments()) {
for (const QString &argument : a.arguments()) {
arguments << QVariant::fromValue(argument);
}

View file

@ -20,7 +20,7 @@
#include <QtCore/qglobal.h>
#ifndef LUAENGINEGUI_STATIC
#ifndef LUAENGINE_STATIC
#ifdef LUAENGINEGUI_LIBRARY
#define LUAENGINEGUISHARED_EXPORT Q_DECL_EXPORT
#else

View file

@ -16,13 +16,12 @@
#*****************************************************************************/
QT += core network gui widgets
CONFIG += c++11
TARGET = luaenginegui
TEMPLATE = lib
CONFIG += c++11
DEFINES += LUAENGINEGUI_LIBRARY
static: DEFINES += LUAENGINEGUI_STATIC
static: DEFINES += LUAENGINE_STATIC
CONFIG(debug, debug|release): win32: LIBS += -L$$OUT_PWD/../luaengine/debug -lluaengine
CONFIG(release, debug|release): win32: LIBS += -L$$OUT_PWD/../luaengine/release -lluaengine