Cleaned qmake project files. Configuration and common parts are now in config_plugin.pri and config_odb.pri.
This commit is contained in:
+2
-28
@@ -11,8 +11,7 @@ QT -= gui
|
||||
TARGET = commodity
|
||||
TEMPLATE = lib
|
||||
|
||||
DEFINES += COMMODITY_LIBRARY\
|
||||
_GLIBCXX_USE_CXX11_ABI=1
|
||||
DEFINES += COMMODITY_LIBRARY
|
||||
|
||||
SOURCES += commodity.cpp \
|
||||
data/commoditydata.cpp \
|
||||
@@ -34,38 +33,13 @@ HEADERS += commodity.h\
|
||||
commoditysettingsform.h \
|
||||
commodityservice.h
|
||||
|
||||
unix {
|
||||
target.path = /usr/lib
|
||||
INSTALLS += target
|
||||
QMAKE_CXXFLAGS += -std=c++11
|
||||
QMAKE_CXXFLAGS += -Wno-unknown-pragmas
|
||||
}
|
||||
|
||||
win32 {
|
||||
QMAKE_CXXFLAGS += -wd4995 -wd4068
|
||||
}
|
||||
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../core/release/ -lcore
|
||||
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../core/debug/ -lcore
|
||||
else:unix: LIBS += -L$$OUT_PWD/../core/ -lcore
|
||||
|
||||
INCLUDEPATH += $$PWD/../core
|
||||
DEPENDPATH += $$PWD/../core
|
||||
|
||||
DESTDIR = ../plugins
|
||||
include(../config_plugin.pri)
|
||||
|
||||
ODB_FILES = commodity/data/commodity-data.h
|
||||
H_DIR = $$PWD/data/*.h
|
||||
ODB_OTHER_INCLUDES = -I $$PWD/../shop
|
||||
include(../odb.pri)
|
||||
|
||||
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../qdecimal/lib/ -lqdecimal -ldecnumber
|
||||
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../qdecimal/lib/ -lqdecimal -ldecnumber
|
||||
else:unix: LIBS += -L$$OUT_PWD/../qdecimal/lib/ -lqdecimal -ldecnumber
|
||||
|
||||
INCLUDEPATH += $$PWD/../qdecimal/src
|
||||
INCLUDEPATH += $$PWD/../qdecimal/decnumber
|
||||
DEPENDPATH += $$PWD/../qdecimal/src
|
||||
|
||||
OTHER_FILES += \
|
||||
commodity.json
|
||||
|
||||
|
||||
Reference in New Issue
Block a user