summaryrefslogtreecommitdiffstats
path: root/src/sql/drivers/psql/qsql_psql.pri
blob: c282d578f96b37c5832bc68b433bf1e914fe769f (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
}