mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2024-11-05 05:26:55 +01:00
fix for static build
This commit is contained in:
parent
d8c75c11a2
commit
74d0e57ce0
4 changed files with 10 additions and 0 deletions
|
@ -24,6 +24,7 @@ TEMPLATE = lib
|
|||
DEFINES += LUAENGINE_LIBRARY
|
||||
DEFINES += LUA_COMPAT_5_2
|
||||
shared: win32: DEFINES += LUA_BUILD_AS_DLL
|
||||
static: DEFINES += LUAENGINE_STATIC
|
||||
linux: DEFINES += LUA_USE_LINUX
|
||||
linux: LIBS += -Wl,-E -ldl -lreadline
|
||||
|
||||
|
|
|
@ -20,10 +20,14 @@
|
|||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#ifndef LUAENGINE_STATIC
|
||||
#ifdef LUAENGINE_LIBRARY
|
||||
#define LUAENGINESHARED_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
#define LUAENGINESHARED_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define LUAENGINESHARED_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // LUAENGINE_GLOBAL_H
|
||||
|
|
|
@ -20,10 +20,14 @@
|
|||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#ifndef LUAENGINEGUI_STATIC
|
||||
#ifdef LUAENGINEGUI_LIBRARY
|
||||
#define LUAENGINEGUISHARED_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
#define LUAENGINEGUISHARED_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define LUAENGINEGUISHARED_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // LUAENGINEGUI_GLOBAL_H
|
||||
|
|
|
@ -22,6 +22,7 @@ TARGET = luaenginegui
|
|||
TEMPLATE = lib
|
||||
|
||||
DEFINES += LUAENGINEGUI_LIBRARY
|
||||
static: DEFINES += LUAENGINEGUI_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
|
||||
|
|
Loading…
Reference in a new issue