summaryrefslogtreecommitdiffstats
path: root/plugins/src/sqldrivers/psql/psql.pro
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/src/sqldrivers/psql/psql.pro')
-rw-r--r--plugins/src/sqldrivers/psql/psql.pro32
1 files changed, 32 insertions, 0 deletions
diff --git a/plugins/src/sqldrivers/psql/psql.pro b/plugins/src/sqldrivers/psql/psql.pro
new file mode 100644
index 000000000..ad94ccd71
--- /dev/null
+++ b/plugins/src/sqldrivers/psql/psql.pro
@@ -0,0 +1,32 @@
+TEMPLATE = lib
+TARGET = qsqlpsql
+
+CONFIG += qt plugin
+DESTDIR = ../../../sqldrivers
+
+HEADERS = ../../../../src/sql/drivers/psql/qsql_psql.h
+SOURCES = main.cpp \
+ ../../../../src/sql/drivers/psql/qsql_psql.cpp
+unix {
+ OBJECTS_DIR = .obj
+ !contains( 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