2017-12-13 18:04:10 +01:00
|
|
|
#-------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Project created by QtCreator 2017-12-13T17:36:43
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
|
|
|
|
QT += widgets
|
|
|
|
|
|
|
|
|
|
TARGET = pglablib
|
|
|
|
|
TEMPLATE = lib
|
|
|
|
|
CONFIG += staticlib
|
|
|
|
|
|
2017-12-16 21:43:51 +01:00
|
|
|
QMAKE_CXXFLAGS += /std:c++17
|
|
|
|
|
|
2017-12-13 18:04:10 +01:00
|
|
|
# The following define makes your compiler emit warnings if you use
|
|
|
|
|
# any feature of Qt which has been marked as deprecated (the exact warnings
|
|
|
|
|
# depend on your compiler). Please consult the documentation of the
|
|
|
|
|
# deprecated API in order to know how to port your code away from it.
|
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += C:\prog\include C:\Prog\include\pgsql C:\VSproj\boost32\include\boost-1_65_1
|
|
|
|
|
|
|
|
|
|
# You can also make your code fail to compile if you use deprecated APIs.
|
|
|
|
|
# In order to do so, uncomment the following line.
|
|
|
|
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
|
|
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
|
Pglablib.cpp \
|
2017-12-29 10:21:10 +01:00
|
|
|
ASyncDBConnection.cpp \
|
|
|
|
|
ConnectionConfig.cpp \
|
|
|
|
|
PgType.cpp \
|
|
|
|
|
PgTypeContainer.cpp \
|
|
|
|
|
PgNamespace.cpp \
|
|
|
|
|
PgClass.cpp \
|
|
|
|
|
PgDatabase.cpp \
|
|
|
|
|
PgDatabaseContainer.cpp \
|
|
|
|
|
PgAuthId.cpp \
|
|
|
|
|
PgAuthIdContainer.cpp \
|
|
|
|
|
PgClassContainer.cpp \
|
|
|
|
|
PgDatabaseCatalog.cpp \
|
|
|
|
|
PgNamespaceContainer.cpp \
|
|
|
|
|
PgAttribute.cpp \
|
|
|
|
|
PgContainer.cpp \
|
|
|
|
|
PgAttributeContainer.cpp \
|
|
|
|
|
PgIndex.cpp \
|
|
|
|
|
PgIndexContainer.cpp \
|
|
|
|
|
PgConstraint.cpp \
|
|
|
|
|
PgConstraintContainer.cpp \
|
2017-12-13 18:04:10 +01:00
|
|
|
ParamListJson.cpp \
|
2017-12-29 10:21:10 +01:00
|
|
|
ParamListModel.cpp \
|
|
|
|
|
util.cpp
|
2017-12-13 18:04:10 +01:00
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
|
Pglablib.h \
|
2017-12-29 10:21:10 +01:00
|
|
|
ASyncDBConnection.h \
|
|
|
|
|
ConnectionConfig.h \
|
|
|
|
|
PgType.h \
|
|
|
|
|
PgTypeContainer.h \
|
|
|
|
|
PgNamespace.h \
|
|
|
|
|
PgClass.h \
|
|
|
|
|
PgDatabase.h \
|
|
|
|
|
PgDatabaseContainer.h \
|
|
|
|
|
PgContainer.h \
|
|
|
|
|
PgAuthId.h \
|
|
|
|
|
PgAuthIdContainer.h \
|
|
|
|
|
PgClassContainer.h \
|
|
|
|
|
PgDatabaseCatalog.h \
|
|
|
|
|
PgNamespaceContainer.h \
|
|
|
|
|
PgAttribute.h \
|
|
|
|
|
PgAttributeContainer.h \
|
|
|
|
|
PgIndex.h \
|
|
|
|
|
PgIndexContainer.h \
|
|
|
|
|
PgConstraint.h \
|
|
|
|
|
PgConstraintContainer.h \
|
2017-12-13 18:04:10 +01:00
|
|
|
ParamListJson.h \
|
2017-12-29 10:21:10 +01:00
|
|
|
ParamListModel.h \
|
|
|
|
|
util.h
|
|
|
|
|
|
2017-12-13 18:04:10 +01:00
|
|
|
unix {
|
|
|
|
|
target.path = /usr/lib
|
|
|
|
|
INSTALLS += target
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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:!macx: LIBS += -L$$OUT_PWD/../core/ -lcore
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../core
|
|
|
|
|
DEPENDPATH += $$PWD/../core
|
|
|
|
|
|
|
|
|
|
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../core/release/libcore.a
|
|
|
|
|
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../core/debug/libcore.a
|
|
|
|
|
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../core/release/core.lib
|
|
|
|
|
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../core/debug/core.lib
|
|
|
|
|
else:unix:!macx: PRE_TARGETDEPS += $$OUT_PWD/../core/libcore.a
|
|
|
|
|
|
|
|
|
|
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../pgsql/release/ -lpgsql
|
|
|
|
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../pgsql/debug/ -lpgsql
|
|
|
|
|
else:unix:!macx: LIBS += -L$$OUT_PWD/../pgsql/ -lpgsql
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../pgsql
|
|
|
|
|
DEPENDPATH += $$PWD/../pgsql
|
|
|
|
|
|
|
|
|
|
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../pgsql/release/libpgsql.a
|
|
|
|
|
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../pgsql/debug/libpgsql.a
|
|
|
|
|
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../pgsql/release/pgsql.lib
|
|
|
|
|
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../pgsql/debug/pgsql.lib
|
|
|
|
|
else:unix:!macx: PRE_TARGETDEPS += $$OUT_PWD/../pgsql/libpgsql.a
|