improve linking and installation

This commit is contained in:
Syping 2019-10-16 22:07:14 +02:00
parent 262533dae9
commit 40d974f804
9 changed files with 93 additions and 14 deletions

View file

@ -15,7 +15,7 @@
#* limitations under the License.
#*****************************************************************************/
QT += core
QT -= gui
TARGET = LuaEngineOS
TEMPLATE = lib
CONFIG += c++11 \
@ -25,9 +25,15 @@ VERSION = 0.1
DEFINES += LUAENGINEOS_LIBRARY
static: DEFINES += LUAENGINE_STATIC
# PROJECT PREFIX
unix {
isEmpty(LUAENGINE_PREFIX): LUAENGINE_PREFIX = /usr/local
isEmpty(LUAENGINE_LIBDIR): LUAENGINE_LIBDIR = $$LUAENGINE_PREFIX/lib
}
unix: LIBS += "-Wl,-rpath,\'$$LUAENGINE_LIBDIR\'" -L$$OUT_PWD/../luaenginecore -lLuaEngine
CONFIG(debug, debug|release): win32: LIBS += -L$$OUT_PWD/../luaenginecore/debug -lLuaEngine
CONFIG(release, debug|release): win32: LIBS += -L$$OUT_PWD/../luaenginecore/release -lLuaEngine
unix: LIBS += -L$$OUT_PWD/../luaenginecore -lLuaEngine
INCLUDEPATH += \
../luaenginecore/lua \
@ -40,6 +46,11 @@ HEADERS += \
luaengine/LuaEngineOS.h \
luaengine/LuaEngineOS_global.h
unix {
target.path = $$LUAENGINE_LIBDIR
INSTALLS += target
}
win32 {
RC_LANG = 0x0
QMAKE_TARGET_COMPANY = "Syping"