summaryrefslogtreecommitdiffstats
path: root/src/sql/drivers/psql
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2010-07-07 10:05:36 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-07-07 10:05:36 (GMT)
commitd7557de99b38031906c17c54496cb76a13dec5f7 (patch)
tree975c545f8c19edb5d7ccc84c7444db7d9b1da9ac /src/sql/drivers/psql
parent42fe2bfb65c85fc630efe32aa1d62d66f2caab2a (diff)
downloadQt-d7557de99b38031906c17c54496cb76a13dec5f7.zip
Qt-d7557de99b38031906c17c54496cb76a13dec5f7.tar.gz
Qt-d7557de99b38031906c17c54496cb76a13dec5f7.tar.bz2
Consolidate sql driver configuration redundancy
Previously sql driver recipes each appeared in both the plugin pro file and src/sql/drivers/drivers.pri for building into QtSql. Split driver recipes into shared pri files. Also split bundled 3rd party sqlite code recipe into a shared pri. Merge-request: 715 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'src/sql/drivers/psql')
-rw-r--r--src/sql/drivers/psql/qsql_psql.pri13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sql/drivers/psql/qsql_psql.pri b/src/sql/drivers/psql/qsql_psql.pri
new file mode 100644
index 0000000..c282d57
--- /dev/null
+++ b/src/sql/drivers/psql/qsql_psql.pri
@@ -0,0 +1,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
+}