summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/plugins/src/sqldrivers/psql/psql.pro
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/plugins/src/sqldrivers/psql/psql.pro')
-rw-r--r--tqtinterface/qt4/plugins/src/sqldrivers/psql/psql.pro32
1 files changed, 32 insertions, 0 deletions
diff --git a/tqtinterface/qt4/plugins/src/sqldrivers/psql/psql.pro b/tqtinterface/qt4/plugins/src/sqldrivers/psql/psql.pro
new file mode 100644
index 0000000..1ab6808
--- /dev/null
+++ b/tqtinterface/qt4/plugins/src/sqldrivers/psql/psql.pro
@@ -0,0 +1,32 @@
+TEMPLATE = lib
+TARGET = qsqlpsql
+
+CONFIG += qt plugin
+DESTDIR = ../../../sqldrivers
+
+HEADERS = ../../../../src/sql/drivers/psql/tqsql_psql.h
+SOURCES = main.cpp \
+ ../../../../src/sql/drivers/psql/tqsql_psql.cpp
+unix {
+ OBJECTS_DIR = .obj
+ !tqcontains( LIBS, .*pq.* ) {
+ LIBS *= -lpq
+ }
+}
+
+win32 {
+ OBJECTS_DIR = obj
+ LIBS *= libpqdll.lib
+# win32-msvc: {
+# LIBS *= delayimp.lib
+# QMAKE_LFLAGS += /DELAYLOAD:libpq.dll
+# }
+# win32-borland: {
+# QMAKE_LFLAGS += /dlibpq.dll
+# }
+}
+
+REQUIRES = sql
+
+target.path += $$plugins.path/sqldrivers
+INSTALLS += target