forked from jasp-stats/jasp-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
R_HOME.pri
53 lines (42 loc) · 1.17 KB
/
R_HOME.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
_R_HOME = $$(R_HOME)
linux {
exists(/app/lib/*) {
contains(QMAKE_HOST.arch, x86_64):{
_R_HOME = /app/lib64/R
} else {
_R_HOME = /app/lib/R
}
} else {
exists(/usr/lib64/R) {
isEmpty(_R_HOME): _R_HOME = /usr/lib64/R
} else {
isEmpty(_R_HOME): _R_HOME = /usr/lib/R
}
}
#QMAKE_CXXFLAGS += -D\'R_HOME=\"$$_R_HOME\"\'
INCLUDEPATH += $$_R_HOME/library/include \
/usr/include/R/ \
/usr/share/R/include \
$$_R_HOME/site-library/Rcpp/include
R_EXE = $$_R_HOME/bin/R
DEFINES += 'R_HOME=\\\"$$_R_HOME\\\"'
}
macx {
isEmpty(_R_HOME):_R_HOME = $$JASP_REQUIRED_FILES/Frameworks/R.framework/Versions/$$CURRENT_R_VERSION/Resources
R_EXE = $$_R_HOME/bin/R
}
windows {
isEmpty(_R_HOME):_R_HOME = $$OUT_PWD/../R
R_EXE = $$_R_HOME/bin/$$ARCH/R
}
_RLibrary = $$(JASP_R_Library)
isEmpty(_RLibrary) {
win32: _RLibrary =$$OUT_PWD/../R/library
unix: _RLibrary = $$_R_HOME/library
message(using R Library of "$$_RLibrary")
} else {
message(using custom R library of "$$_RLibrary")
}
INCLUDEPATH += \
$$_R_HOME/library/Rcpp/include \
$$_R_HOME/include