summaryrefslogtreecommitdiffstats
path: root/plugins/src/sqldrivers/odbc/odbc.pro
blob: ac0cf3c504a61057deb497bd6415e789e2050df2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
TEMPLATE = lib
TARGET	 = qsqlodbc

CONFIG  += qt plugin
DESTDIR	 = ../../../sqldrivers

HEADERS		= ../../../../src/sql/drivers/odbc/qsql_odbc.h
SOURCES		= main.cpp \
		  ../../../../src/sql/drivers/odbc/qsql_odbc.cpp

mac {
        !contains( LIBS, .*odbc.* ) {
            LIBS        *= -liodbc
        }
}

unix {
	OBJECTS_DIR	= .obj
	!contains( LIBS, .*odbc.* ) {
	    LIBS 	*= -liodbc
	}
}

win32 {
	OBJECTS_DIR		= obj
	!win32-borland:LIBS	*= -lodbc32
    	win32-borland:LIBS	*= $(BCB)/lib/PSDK/odbc32.lib
}

REQUIRES	= sql

target.path += $$plugins.path/sqldrivers
INSTALLS += target