-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathqtstalker.pro
166 lines (149 loc) · 3.79 KB
/
qtstalker.pro
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
exists(.qmake.cache) {
message("Using the existing .qmake.cache")
} else {
message("Doing automated configuration ...")
unix {
MY_OS += "unix"
exists(/usr/include/qt4/Qt) {
INCLUDEPATH += /usr/include/qt4/Qt
}
exists(/usr/include/ta-lib) {
INCLUDEPATH += /usr/include/ta-lib
}
exists(/usr/local/include/ta-lib) {
INCLUDEPATH += /usr/local/include/ta-lib
}
exists(/usr/local/lib) {
LIBS += -L/usr/local/lib
}
}
freebsd-g++ {
MY_OS += "freebsd"
INCLUDEPATH += /usr/X11R6/include
}
linux-g++ {
MY_OS += "linux"
}
macx {
MY_OS += "macx"
# For MacPorts
exists(/opt/local/include/ta-lib) {
INCLUDEPATH += /opt/local/include/ta-lib
}
exists(/opt/local/lib) {
LIBS += -L/opt/local/lib
}
# For Fink
exists(/sw/include/ta-lib) {
INCLUDEPATH += /sw/include/ta-lib
}
exists(/sw/lib) {
LIBS += -L/sw/lib
}
}
message("Initial INCLUDEPATH=$$INCLUDEPATH")
message("Initial LIBS=$$LIBS")
!exists(qtstalker.config) {
error("Missing configuration file qtstalker.config")
} else {
message("Including qtstalker.config")
include(qtstalker.config)
}
TA_LIB_VERSION = $$system(ta-lib-config --version)
contains(TA_LIB_VERSION, 0.3.0) {
LIBS += -lta_abstract
LIBS += -lta_common
LIBS += -lta_func
} else {
LIBS += -lta_lib
}
INCLUDEPATH = $$unique(INCLUDEPATH)
LIBS = $$unique(LIBS)
message("Writing .qmake.cache")
system(echo "INCLUDEPATH=$$INCLUDEPATH" > .qmake.cache)
system(echo "LIBS=$$LIBS" >> .qmake.cache)
system(echo "MY_OS=$$MY_OS" >> .qmake.cache)
}
message("Using INCLUDEPATH=$$INCLUDEPATH")
message("Using LIBS=$$LIBS")
message("Operating system: $$MY_OS")
!isEmpty(QMAKESPEC) {
message("QMAKESPEC: $$QMAKESPEC")
}
QMAKE_DISTCLEAN += .qmake.cache
TEMPLATE = subdirs
# compile app
SUBDIRS += src
# compile plugins
SUBDIRS += plugins/Accumulate
SUBDIRS += plugins/AD
SUBDIRS += plugins/ADX
SUBDIRS += plugins/ADXR
SUBDIRS += plugins/Arithmetic
SUBDIRS += plugins/AROON
SUBDIRS += plugins/ATR
SUBDIRS += plugins/BBANDS
SUBDIRS += plugins/BOP
SUBDIRS += plugins/BarLengthButton
SUBDIRS += plugins/ColorButton
SUBDIRS += plugins/CompareValues
SUBDIRS += plugins/CCI
SUBDIRS += plugins/CDL
SUBDIRS += plugins/CMO
SUBDIRS += plugins/CSV
SUBDIRS += plugins/CurveBar
SUBDIRS += plugins/CurveCandle
SUBDIRS += plugins/CurveCloud
SUBDIRS += plugins/CurveColor
SUBDIRS += plugins/CurveHistogram
SUBDIRS += plugins/CurveLine
SUBDIRS += plugins/CurveOHLC
SUBDIRS += plugins/DataBase
SUBDIRS += plugins/DateRangeButton
SUBDIRS += plugins/FI
SUBDIRS += plugins/FileButton
SUBDIRS += plugins/FontButton
SUBDIRS += plugins/Group
SUBDIRS += plugins/HT
SUBDIRS += plugins/Indicator
SUBDIRS += plugins/IndicatorInput
SUBDIRS += plugins/IndicatorPlot
SUBDIRS += plugins/LINEARREG
SUBDIRS += plugins/MA
SUBDIRS += plugins/MACD
SUBDIRS += plugins/MAMA
SUBDIRS += plugins/MarkerBuy
SUBDIRS += plugins/MarkerHLine
SUBDIRS += plugins/MarkerRetracement
SUBDIRS += plugins/MarkerSell
SUBDIRS += plugins/MarkerText
SUBDIRS += plugins/MarkerTLine
SUBDIRS += plugins/MarkerVLine
SUBDIRS += plugins/MDI
SUBDIRS += plugins/MFI
SUBDIRS += plugins/MOM
SUBDIRS += plugins/PDI
SUBDIRS += plugins/PHASOR
SUBDIRS += plugins/Plot
SUBDIRS += plugins/ROC
SUBDIRS += plugins/RSI
SUBDIRS += plugins/SAR
SUBDIRS += plugins/Scanner
SUBDIRS += plugins/SINE
SUBDIRS += plugins/STDDEV
SUBDIRS += plugins/STOCHF
SUBDIRS += plugins/STOCHRSI
SUBDIRS += plugins/STOCHS
SUBDIRS += plugins/SZ
SUBDIRS += plugins/Symbol
SUBDIRS += plugins/SymbolButton
SUBDIRS += plugins/SymbolSelect
SUBDIRS += plugins/T3
SUBDIRS += plugins/TRIX
SUBDIRS += plugins/ULTOSC
SUBDIRS += plugins/VAR
#SUBDIRS += plugins/ValuesDialog
SUBDIRS += plugins/WILLR
SUBDIRS += plugins/YahooHistory
# install docs and i18n
#SUBDIRS += docs