File: PostgreSQL.pro

package info (click to toggle)
libterralib 4.3.0%2Bdfsg.2-10
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 61,560 kB
  • ctags: 37,110
  • sloc: cpp: 225,052; ansic: 31,562; makefile: 807; sh: 80; xml: 37
file content (55 lines) | stat: -rw-r--r-- 1,508 bytes parent folder | download | duplicates (8)
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
CONFIG += dll
TARGET = te_postgresql

include (../config.pri)
# Path definitions
# ----------------------------------------------------------
PGSRCPATH = $${TERRALIBPATH}/src/terralib/drivers/PostgreSQL
PGDEP = $${TERRALIBPATH}/dependencies
win32:PGDEP = $${PGDEP}/win32
unix:PGDEP = $${PGDEP}/linux
PGDEP = $${PGDEP}/PostgreSQL
# ----------------------------------------------------------

DEFINES += TLPOSTGRESQL_AS_DLL

LIBS += -lterralib 

win32 {
    win32-g++:LIBS += -L$${PGDEP}/lib -lwsock32
    else:QMAKE_LIBDIR += $${PGDEP}/lib
    LIBS += -llibpq
}
unix:LIBS += -L$${PGDEP}/lib -lpq -lcrypt

INCLUDEPATH += $${PGSRCPATH}  \
              $${PGSRCPATH}/includepg

HEADERS += $${PGSRCPATH}/TePGInterface.h \
        $${PGSRCPATH}/TePGUtils.h \
        $${PGSRCPATH}/TePostgreSQL.h \
        $${PGSRCPATH}/TePostGIS.h \
        $${PGSRCPATH}/TePostgreSQLDefines.h

SOURCES += $${PGSRCPATH}/TePGInterface.cpp \
        $${PGSRCPATH}/TePGUtils.cpp \
        $${PGSRCPATH}/TePostgreSQL.cpp \
        $${PGSRCPATH}/TePostGIS.cpp
	
include (../install_cfg.pri)

CONFIG(copy_dir_files) {
    psql.path = $${DEPLOY_DIR}/include/PostgreSQL/includepg
    psql.files = $${PGSRCPATH}/includepg/*.h

    include.path = $${DEPLOY_DIR}/include/PostgreSQL
    include.files = $${PGSRCPATH}/*.h

    INSTALLS += psql include
}
#PostgreSQL dependencies install
win32 {
    bin.files = $${PGDEP}/bin/*.dll
    bin.path = $${DEPLOY_DIR}/bin
    INSTALLS += bin
}