summaryrefslogtreecommitdiff
path: root/macros/findDeps/getAllHeaders.sci
blob: 9e633f6e9a724e2330fb715b625f109c03b931d0 (plain)
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
//
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2009-2009 - DIGITEO - Bruno JOFRET
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution.  The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
//
//

function allHeaders = getAllHeaders(SharedInfo)
      Target = SharedInfo.Target;

  //Header files common to all types of output format.
  Standalone_headers = [
      "includes/blas.h"
      "includes/lapack.h"
      "includes/constant.h"
      "includes/f2c.h"
      "includes/notFound.h"
      "includes/sci2clib.h"
      "src/c/auxiliaryFunctions/includes/abs.h"
      "src/c/auxiliaryFunctions/includes/max.h"
      "src/c/auxiliaryFunctions/includes/min.h"
      "src/c/auxiliaryFunctions/includes/dynlib_auxiliaryfunctions.h"
      "src/c/auxiliaryFunctions/includes/find2d.h"
      "src/c/auxiliaryFunctions/includes/length.h"
      "src/c/auxiliaryFunctions/includes/conj.h"
      "src/c/auxiliaryFunctions/includes/find.h"
      "src/c/auxiliaryFunctions/includes/frexp.h"
      "src/c/auxiliaryFunctions/includes/rand.h"
      "src/c/auxiliaryFunctions/includes/sign.h"
      "src/c/auxiliaryFunctions/includes/size.h"
      "src/c/auxiliaryFunctions/includes/type.h"
      "src/c/auxiliaryFunctions/includes/pythag.h"
      "src/c/auxiliaryFunctions/includes/isempty.h"
      "src/c/auxiliaryFunctions/includes/isnan.h"
      "src/c/type/doubleComplex.h"
      "src/c/type/dynlib_type.h"
      "src/c/type/floatComplex.h"
      "src/c/type/types.h"
      "src/c/matrixOperations/includes/cat.h"
      "src/c/matrixOperations/includes/hilb.h"
      "src/c/matrixOperations/includes/eye.h"
      "src/c/matrixOperations/includes/matrixTrace.h"
      "src/c/matrixOperations/includes/matrixExponential.h"
      "src/c/matrixOperations/includes/matrixInversion.h"
      "src/c/matrixOperations/includes/infiniteNorm.h"
      "src/c/matrixOperations/includes/zeros.h"
      "src/c/matrixOperations/includes/matrixMagnitude.h"
      "src/c/matrixOperations/includes/chol.h"
      "src/c/matrixOperations/includes/dist.h"
      "src/c/matrixOperations/includes/fill.h"
      "src/c/matrixOperations/includes/dynlib_matrixoperations.h"
      "src/c/matrixOperations/includes/matrixPow.h"
      "src/c/matrixOperations/includes/matrixDivision.h"
      "src/c/matrixOperations/includes/jmat.h"
      "src/c/matrixOperations/includes/logm.h"
      "src/c/matrixOperations/includes/ones.h"
      "src/c/matrixOperations/includes/matrixSquaredMagnitude.h"
      "src/c/matrixOperations/includes/spec.h"
      "src/c/matrixOperations/includes/matrixTranspose.h"
      "src/c/matrixOperations/includes/determ.h"
      "src/c/matrixOperations/includes/matrixMultiplication.h"
      "src/c/matrixOperations/includes/diag.h"
      "src/c/matrixOperations/includes/cumsum.h"
      "src/c/matrixOperations/includes/cumprod.h"
      "src/c/matrixOperations/includes/triu.h"
      "src/c/matrixOperations/includes/tril.h"
      "src/c/matrixOperations/includes/kron.h"
      "src/c/matrixOperations/includes/flipdim.h"
      "src/c/matrixOperations/includes/norm.h"
      "src/c/interpolation/includes/interp1.h"
      "src/c/elementaryFunctions/includes/nextpow2.h"
      "src/c/elementaryFunctions/includes/gcd.h"
      "src/c/elementaryFunctions/includes/isreal.h"
      "src/c/elementaryFunctions/includes/cos.h"
      "src/c/elementaryFunctions/includes/fix.h"
      "src/c/elementaryFunctions/includes/exp.h"
      "src/c/elementaryFunctions/includes/int.h"
      "src/c/elementaryFunctions/includes/log.h"
      "src/c/elementaryFunctions/includes/pow.h"
      "src/c/elementaryFunctions/includes/sin.h"
      "src/c/elementaryFunctions/includes/tan.h"
      "src/c/elementaryFunctions/includes/round.h"
      "src/c/elementaryFunctions/includes/log10.h"
      "src/c/elementaryFunctions/includes/log1p.h"
      "src/c/elementaryFunctions/includes/acos.h"
      "src/c/elementaryFunctions/includes/asin.h"
      "src/c/elementaryFunctions/includes/atan.h"
      "src/c/elementaryFunctions/includes/floor.h"
      "src/c/elementaryFunctions/includes/ceil.h"
      "src/c/elementaryFunctions/includes/exp10.h"
      "src/c/elementaryFunctions/includes/cosh.h"
      "src/c/elementaryFunctions/includes/dynlib_elementaryfunctions.h"
      "src/c/elementaryFunctions/includes/acosh.h"
      "src/c/elementaryFunctions/includes/sinh.h"
      "src/c/elementaryFunctions/includes/lnp1m1.h"
      "src/c/elementaryFunctions/includes/tanh.h"
      "src/c/elementaryFunctions/includes/sqrt.h"
      "src/c/elementaryFunctions/includes/bitand.h"
      "src/c/elementaryFunctions/includes/bitor.h"
      "src/c/elementaryFunctions/includes/bitxor.h"
      "src/c/elementaryFunctions/includes/bitcmp.h"
      "src/c/elementaryFunctions/includes/bitset.h"
      "src/c/elementaryFunctions/includes/bitget.h"
      "src/c/elementaryFunctions/includes/linspace.h"
      "src/c/elementaryFunctions/includes/logspace.h"
      "src/c/elementaryFunctions/includes/asinh.h"
      "src/c/elementaryFunctions/includes/atan2.h"
      "src/c/elementaryFunctions/includes/atanh.h"
      "src/c/elementaryFunctions/includes/uint8.h"
      "src/c/elementaryFunctions/includes/int8.h"
      "src/c/elementaryFunctions/includes/uint16.h"
      "src/c/elementaryFunctions/includes/int16.h"
      "src/c/elementaryFunctions/includes/acosd.h"
      "src/c/elementaryFunctions/includes/acot.h"
      "src/c/elementaryFunctions/includes/acotd.h"
      "src/c/elementaryFunctions/includes/acoth.h"
      "src/c/elementaryFunctions/includes/acsc.h"
      "src/c/elementaryFunctions/includes/acscd.h"
      "src/c/elementaryFunctions/includes/acsch.h"
      "src/c/elementaryFunctions/includes/asec.h"
      "src/c/elementaryFunctions/includes/asecd.h"
      "src/c/elementaryFunctions/includes/asech.h"
      "src/c/elementaryFunctions/includes/asind.h"
      "src/c/elementaryFunctions/includes/atand.h"
      "src/c/statisticsFunctions/includes/variance.h"
      "src/c/statisticsFunctions/includes/sum.h"
      "src/c/statisticsFunctions/includes/mean.h"
      "src/c/statisticsFunctions/includes/meanf.h"
      "src/c/statisticsFunctions/includes/stdevf.h"
      "src/c/statisticsFunctions/includes/prod.h"
      "src/c/statisticsFunctions/includes/dynlib_statisticsfunctions.h"
      "src/c/statisticsFunctions/includes/statMax.h"
      "src/c/statisticsFunctions/includes/statMin.h"
      "src/c/operations/includes/subtraction.h"
      "src/c/operations/includes/addition.h"
      "src/c/operations/includes/dynlib_operations.h"
      "src/c/operations/includes/division.h"
      "src/c/operations/includes/multiplication.h"
      "src/c/string/includes/dynlib_string.h"
      "src/c/string/includes/disp.h"
      "src/c/string/includes/str.h"
      "src/c/signalProcessing/includes/modk.h"
      "src/c/signalProcessing/includes/idct.h"
      "src/c/signalProcessing/includes/dct.h"
      "src/c/signalProcessing/fft/fft_internal.h"
      "src/c/signalProcessing/ifft/ifft_internal.h"
      "src/c/signalProcessing/levin/levinUtils.h"
      "src/c/signalProcessing/includes/hilbert.h"
      "src/c/signalProcessing/includes/fft.h"
      "src/c/signalProcessing/includes/lev.h"
      "src/c/signalProcessing/includes/levin.h"
      "src/c/signalProcessing/includes/conv.h"
      "src/c/signalProcessing/includes/conv2d.h"
      "src/c/signalProcessing/includes/ifft.h"
      "src/c/signalProcessing/includes/fftshift.h"
      "src/c/signalProcessing/includes/lpc2cep.h"
      "src/c/signalProcessing/includes/dynlib_signalprocessing.h"
      "src/c/signalProcessing/includes/crossCorr.h"
      "src/c/implicitList/dynlib_implicitlist.h"
      "src/c/implicitList/implicitList.h"
      "src/c/differential_calculus/includes/ode.h"
      "src/c/differential_calculus/includes/diffc.h"
      "src/c/Files/includes/files.h"
      "src/c/string/includes/convstr.h"
      "src/c/string/includes/strsubst.h"
	//"src/c/string/includes/strcmp.h"
	"src/c/string/includes/strrev.h"
	"src/c/string/includes/strrchr.h"
	"src/c/elementaryFunctions/includes/dec2bin.h"
	"src/c/elementaryFunctions/includes/dec2hex.h"
	"src/c/elementaryFunctions/includes/dec2oct.h"
	"src/c/elementaryFunctions/includes/oct2dec.h"
	"src/c/elementaryFunctions/includes/hex2dec.h"
	"src/c/elementaryFunctions/includes/bin2dec.h"
	"src/c/elementaryFunctions/includes/dec2base.h"
	"src/c/elementaryFunctions/includes/base2dec.h"
	"src/c/elementaryFunctions/includes/cosd.h"
	"src/c/elementaryFunctions/includes/cotd.h"
	"src/c/elementaryFunctions/includes/coth.h"
	"src/c/elementaryFunctions/includes/csc.h"
	"src/c/elementaryFunctions/includes/cscd.h"
	"src/c/elementaryFunctions/includes/csch.h"
	"src/c/elementaryFunctions/includes/sec.h"
	"src/c/elementaryFunctions/includes/secd.h"
	"src/c/elementaryFunctions/includes/sech.h"
	"src/c/elementaryFunctions/includes/get_float.h"
	"src/c/elementaryFunctions/includes/factorial.h"
	"src/c/elementaryFunctions/includes/primes.h"
	"src/c/elementaryFunctions/includes/factor.h"
      "src/c/CACSD/includes/syslin.h"
      "src/c/CACSD/includes/lqr.h"
      "src/c/CACSD/includes/lqe.h"
      "src/c/CACSD/includes/obscont.h"
      "src/c/linearAlgebra/includes/schur.h"
      "src/c/linearAlgebra/includes/balanc.h"
      "src/c/linearAlgebra/includes/rcond.h"];
      

  //Header files required for "Arduino" output
  Arduino_headers = [
      "src/c/scilab-arduino/includes/cmd_digital_out.h"
      "src/c/scilab-arduino/includes/cmd_digital_in.h"
      "src/c/scilab-arduino/includes/cmd_analog_out.h"
      "src/c/scilab-arduino/includes/cmd_analog_in.h"
      "src/c/scilab-arduino/includes/cmd_dcmotor_setup.h"
      "src/c/scilab-arduino/includes/cmd_dcmotor_run.h"
      //"src/c/scilab-arduino/includes/cmd_servo_attach.h"
      //"src/c/scilab-arduino/includes/cmd_servo_detach.h"
      //"src/c/scilab-arduino/includes/cmd_servo_move.h"
      "src/c/scilab-arduino/includes/sleep.h"];

  AVR_headers = [
      "src/c/hardware/avr/includes/AVRPeripheralGPIO.h"
      "src/c/hardware/avr/includes/AVRPeripheralADC.h"
      "src/c/hardware/avr/includes/AVRPeripheralPWM.h"
      "src/c/hardware/avr/includes/AVRUtil.h"
      "src/c/hardware/avr/includes/AVRPeripheralTimer.h"
      "src/c/hardware/avr/includes/AVRPeripheralUART.h"
	    ]; 
 
  RPi_headers = [
      "thirdparty/includes/WiringPi/wiringPi.h"
      "thirdparty/includes/WiringPi/wiringSerial.h"
      "src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h"
      "src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h"
      "src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h"
      "src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h"
      "src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h"
      "src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h"
		];

  OpenCV_headers = [
      "src/c/imageProcessing/includes/cvcore.hpp"
      "src/c/imageProcessing/includes/cvhighgui.hpp"
      "src/c/imageProcessing/includes/cvimgproc.hpp"
      "thirdparty/includes/OpenCV/"];

  if Target == "StandAlone"
  allHeaders = Standalone_headers;
  elseif Target == "Arduino"
  allHeaders = cat(1,Standalone_headers, Arduino_headers);
  elseif Target == "AVR"
  allHeaders = cat(1,Standalone_headers, AVR_headers);
  elseif Target == "RPi"
  allHeaders = cat(1,Standalone_headers, RPi_headers);
  end

  if (SharedInfo.OpenCVUsed == %T)
      allHeaders = cat(1,allHeaders,OpenCV_headers);
  end

endfunction