-
Notifications
You must be signed in to change notification settings - Fork 0
/
helpz_install.pri
88 lines (69 loc) · 2.33 KB
/
helpz_install.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
QT -= gui
TEMPLATE = lib
TARGET = Helpz$$TARGET
INCLUDEPATH += $$PWD/include
unix : !android {
INSTALL_PREFIX = /usr/local
} else {
INSTALL_PREFIX = $$[QT_INSTALL_PREFIX]
}
linux-g++* {
#INCLUDEPATH += /usr/local/mylibs/include
#LIBS += -L/usr/local/mylibs/lib
INCLUDEPATH += /usr/local/include
LIBS += -L/usr/local/lib
}
linux-rasp-pi2-g++ {
target_rpi.path = $$[QT_INSTALL_LIBS]
INSTALLS += target_rpi
}
android {
CONFIG += c++14 staticlib
} else {
CONFIG += c++1z
}
HELPZ_INCLUDES = $$INSTALL_PREFIX/include/Helpz
header_files.files = $$HEADERS
header_files.path = $$HELPZ_INCLUDES
INSTALLS += header_files
target.path = $$INSTALL_PREFIX/lib
INSTALLS += target
DESTDIR = $${OUT_PWD}/../
# ByMsx: resolving headers, mkdir for output like /include/Helpz
MKDIR_FLAG=
win32 {
HAVE_COPY=$$system(copy /?)
!isEmpty(HAVE_COPY):LINK_METHOD=copy /Y
} else {
MKDIR_FLAG=-p
}
isEmpty(LINK_METHOD):LINK_METHOD=ln -f -s
!exists($${OUT_PWD}) {
RET=$$system(mkdir $$MKDIR_FLAG $$system_quote($$system_path($${OUT_PWD})))
}
!exists($${OUT_PWD}/../include/Helpz) {
RET=$$system(mkdir $$MKDIR_FLAG $$system_quote($$system_path($${OUT_PWD}/../include/Helpz)))
}
# ByMsx: for resolving headers by copying it to other directory.
for(f, HEADERS) {
LINK_PATH = $$system_quote($$system_path($${OUT_PWD}/../include/Helpz/$$basename(f)))
HEADER_PATH = $$system_quote($$system_path($${_PRO_FILE_PWD_}/$$f))
exists( $$HEADER_PATH ) {
RET=$$system($$LINK_METHOD $$HEADER_PATH $$LINK_PATH)
} else {
RET=$$system($$LINK_METHOD $$f $$LINK_PATH)
}
}
INCLUDEPATH += $${OUT_PWD}/../include
LIBS += -L$${OUT_PWD}/..
include(helpz_version.pri)
# ByMsx: code below is completed
# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0