summaryrefslogtreecommitdiffstats
path: root/src/sql/drivers/psql/qsql_psql.pri
blob: 97db4beb598e0a4462e4e34d2c5031910c27ff39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
HEADERS += $$PWD/qsql_psql.h
SOURCES += $$PWD/qsql_psql.cpp

unix|win32-g++* {
    !static:!isEmpty(QT_LFLAGS_PSQL) {
        !contains(QT_CONFIG, system-zlib): QT_LFLAGS_PSQL -= -lz
        LIBS *= $$QT_LFLAGS_PSQL
        QMAKE_CXXFLAGS *= $$QT_CFLAGS_PSQL
    }
    !contains(LIBS, .*pq.*):LIBS += -lpq
} else {
    !contains(LIBS, .*pq.*):LIBS += -llibpq -lws2_32 -ladvapi32
}