mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2025-09-06 08:52:05 +02: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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue