-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathodbc.pri
58 lines (48 loc) · 1.36 KB
/
odbc.pri
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# \brief These bring in the core and dev stuff.
#
#
# \sa *.pri *.pro
#
#
# Lets build for this version of the ODBC specification.
#
DEFINES += ODBCVER=0x0300
#
# Define for UNICODE, but do not map calls to A/W versions as we will call W versions
# explicitly.
#
DEFINES += UNICODE \
SQL_NOUNICODEMAP
# unixODBC-Test sources must be available so we can access
# autotest.h. This is needed for, at least, ODBCTestQx.
INCLUDEPATH += $(UNIXODBC_TEST_SRC)/AutoTests/include
# #########################################################
# WIN32
# #########################################################
win32 {
# INCLUDEPATH += ../../include
#
# We use MS's Driver Manager and Installer library.
#
LIBS += odbc32.lib odbccp32.lib
}
# #########################################################
# MAC/UNIX common
# #########################################################
unix {
}
# #########################################################
# MAC/UNIX specific
# #########################################################
mac {
LIBS += -liodbc -liodbcinst
} else:unix {
#
# unixODBC-Core and unixODBC-Dev must be installed. Here we bring them into our build.
# A simple binary install of these two will do fine.
#
INCLUDEPATH += $(UNIXODBC_DIR)/include
LIBS += -L$(UNIXODBC_LIBDIR)
LIBS += -lodbc -lodbcinst
}