File: install_cfg.pri

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 (41 lines) | stat: -rw-r--r-- 1,417 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
#--------------------------------------------------------------
# Installing configurations
# You can choose the path where the the package will be copied.
# To do so set the $DEPLOY_DIR to the path desired.
# Ex : 'qmake DEPLOY_DIR=/home/usr/terralib'(This will copy
# headers and binaries to the folder '/home/usr/terralib').
# Note: use 'install' as argument on make command.
# Note: you can choose to copy also directories. To do so add
# the option CONFIG+=copy_dir_files to qmake command.
#--------------------------------------------------------------
isEmpty(DEPLOY_DIR) {
    DEPLOY_DIR = $${TERRALIBPATH}/br.org.terralib
    unix:DEPLOY_DIR = $${DEPLOY_DIR}/linux-g++
    win32 {
        win32-g++:DEPLOY_DIR = $${DEPLOY_DIR}/win32-g++
        else:DEPLOY_DIR = $${DEPLOY_DIR}/win32-msvc
    }
}
win32 {
    win32-g++ {
        IDIR = $${DESTDIR}/$${TARGET}.dll
        ODIR = $${DEPLOY_DIR}/bin

        IDIR = $$replace(IDIR, /, \)
        ODIR = $$replace(ODIR, /, \)

        mdir.commands = $(CHK_DIR_EXISTS) $${ODIR} $(MKDIR) $${ODIR}
        dst.commands = $${QMAKE_COPY} \"$${IDIR}\" \"$${ODIR}\"

        QMAKE_EXTRA_TARGETS += mdir dst
        target.depends = mdir dst
    }
    else:DLLDESTDIR = $${DEPLOY_DIR}/bin
}
!CONFIG(copy_dir_files) {
    headers.files = $${HEADERS}
    headers.path = $${DEPLOY_DIR}/include
    INSTALLS += headers
}
target.path = $${DEPLOY_DIR}/lib
INSTALLS += target