forked from pathmann/pyTSon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython.pri
56 lines (49 loc) · 1.4 KB
/
python.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
JENKINS = $$(JENKINS_BUILD)
unix:!mac {
equals(JENKINS, 1) {
PYTHONPATH = /home/build/libs/python/3.5.2/install
}
else {
PYTHONPATH = $$PWD/includes/python-352/install
}
INCLUDEPATH += $${PYTHONPATH}/include/python3.5m
LIBS += $${PYTHONPATH}/lib/libpython3.5m.so
LIBS += -lpthread -ldl -lutil
contains(QMAKE_HOST.arch, x86_64) {
QMAKE_POST_LINK += patchelf --replace-needed libpython3.5m.so.1.0 libpython3.5m_64.so ${DESTDIR}${TARGET} &
}
else {
QMAKE_POST_LINK += patchelf --replace-needed libpython3.5m.so.1.0 libpython3.5m_32.so ${DESTDIR}${TARGET} &
}
}
macx {
equals(JENKINS, 1) {
PYTHONPATH = /Users/build/libs/python/3.5.2/install
}
else {
PYTHONPATH = $$PWD/includes/python-352/install
}
INCLUDEPATH += $${PYTHONPATH}/include/python3.5m
LIBS += $${PYTHONPATH}/lib/libpython3.5m.dylib
LIBS += -lpthread -ldl -lutil
}
win32 {
contains(QMAKE_TARGET.arch, x86_64) {
equals(JENKINS, 1) {
PYTHONPATH = C:\libs\amd64\python\3.5.2
}
else {
PYTHONPATH = C:\python-352\64bit
}
}
else {
equals(JENKINS, 1) {
PYTHONPATH = C:\libs\x86\python\3.5.2
}
else {
PYTHONPATH = C:\python-352\32bit
}
}
LIBS += $${PYTHONPATH}\libs\python35.lib
INCLUDEPATH += $${PYTHONPATH}\include
}