You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
562 B
33 lines
562 B
13 years ago
|
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
|