diff options
author | Sandeep Gupta | 2017-06-18 23:55:40 +0530 |
---|---|---|
committer | Sandeep Gupta | 2017-06-18 23:55:40 +0530 |
commit | 277d1edfa17bf3719d90ddbac8e31f6181e952c3 (patch) | |
tree | 0661f1f52af0a0fd654edd4984c30e57037303c6 /macros/findDeps/getAllInterfaces.sci | |
download | Scilab2C_fossee_old-277d1edfa17bf3719d90ddbac8e31f6181e952c3.tar.gz Scilab2C_fossee_old-277d1edfa17bf3719d90ddbac8e31f6181e952c3.tar.bz2 Scilab2C_fossee_old-277d1edfa17bf3719d90ddbac8e31f6181e952c3.zip |
First commit
Diffstat (limited to 'macros/findDeps/getAllInterfaces.sci')
-rw-r--r-- | macros/findDeps/getAllInterfaces.sci | 243 |
1 files changed, 243 insertions, 0 deletions
diff --git a/macros/findDeps/getAllInterfaces.sci b/macros/findDeps/getAllInterfaces.sci new file mode 100644 index 0000000..c985212 --- /dev/null +++ b/macros/findDeps/getAllInterfaces.sci @@ -0,0 +1,243 @@ +// +// 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 allInterfaces = getAllInterfaces(SharedInfo) + Target = SharedInfo.Target; + //Interface files common to all types of output format + Standalone_interfaces = [ + "src/c/auxiliaryFunctions/interfaces/int_rand.h" + "src/c/auxiliaryFunctions/interfaces/int_sign.h" + "src/c/auxiliaryFunctions/interfaces/int_size.h" + "src/c/auxiliaryFunctions/interfaces/int_length.h" + "src/c/auxiliaryFunctions/interfaces/int_type.h" + "src/c/auxiliaryFunctions/interfaces/int_isempty.h" + "src/c/auxiliaryFunctions/interfaces/int_isnan.h" + "src/c/auxiliaryFunctions/interfaces/int_pythag.h" + "src/c/auxiliaryFunctions/interfaces/int_frexp.h" + "src/c/auxiliaryFunctions/interfaces/int_abs.h" + "src/c/auxiliaryFunctions/interfaces/int_max.h" + "src/c/auxiliaryFunctions/interfaces/int_min.h" + "src/c/auxiliaryFunctions/interfaces/int_conj.h" + "src/c/auxiliaryFunctions/interfaces/int_find.h" + "src/c/type/int_imag.h" + "src/c/type/int_real.h" + "src/c/matrixOperations/interfaces/int_vmagn.h" + "src/c/matrixOperations/interfaces/int_ones.h" + "src/c/matrixOperations/interfaces/int_spec.h" + "src/c/matrixOperations/interfaces/int_cat.h" + "src/c/matrixOperations/interfaces/int_zeros.h" + "src/c/matrixOperations/interfaces/int_OpBackSlash.h" + "src/c/matrixOperations/interfaces/int_OpApex.h" + "src/c/matrixOperations/interfaces/int_OpCc.h" + "src/c/matrixOperations/interfaces/int_OpRc.h" + "src/c/matrixOperations/interfaces/int_transpose.h" + "src/c/matrixOperations/interfaces/int_v2magn.h" + "src/c/matrixOperations/interfaces/int_invert.h" + "src/c/matrixOperations/interfaces/int_OpSlash.h" + "src/c/matrixOperations/interfaces/int_OpDotApex.h" + "src/c/matrixOperations/interfaces/int_trace.h" + "src/c/matrixOperations/interfaces/int_det.h" + "src/c/matrixOperations/interfaces/int_eye.h" + "src/c/matrixOperations/interfaces/int_OpStar.h" + "src/c/matrixOperations/interfaces/int_chol.h" + "src/c/matrixOperations/interfaces/int_dist.h" + "src/c/matrixOperations/interfaces/int_fill.h" + "src/c/matrixOperations/interfaces/int_expm.h" + "src/c/matrixOperations/interfaces/int_diag.h" + "src/c/matrixOperations/interfaces/int_cumsum.h" + "src/c/matrixOperations/interfaces/int_cumprod.h" + "src/c/matrixOperations/interfaces/int_triu.h" + "src/c/matrixOperations/interfaces/int_tril.h" + "src/c/matrixOperations/interfaces/int_kron.h" + "src/c/matrixOperations/interfaces/int_flipdim.h" + "src/c/matrixOperations/interfaces/int_permute.h" + "src/c/matrixOperations/interfaces/int_norm.h" + "src/c/elementaryFunctions/interfaces/int_asinh.h" + "src/c/elementaryFunctions/interfaces/int_atanh.h" + "src/c/elementaryFunctions/interfaces/int_sinh.h" + "src/c/elementaryFunctions/interfaces/int_tanh.h" + "src/c/elementaryFunctions/interfaces/int_sqrt.h" + "src/c/elementaryFunctions/interfaces/int_OpDotHat.h" + "src/c/elementaryFunctions/interfaces/int_OpHat.h" + "src/c/elementaryFunctions/interfaces/int_lnp1m1.h" + "src/c/elementaryFunctions/interfaces/int_round.h" + "src/c/elementaryFunctions/interfaces/int_log10.h" + "src/c/elementaryFunctions/interfaces/int_log1p.h" + "src/c/elementaryFunctions/interfaces/int_floor.h" + "src/c/elementaryFunctions/interfaces/int_exp10.h" + "src/c/elementaryFunctions/interfaces/int_cos.h" + "src/c/elementaryFunctions/interfaces/int_fix.h" + "src/c/elementaryFunctions/interfaces/int_exp.h" + "src/c/elementaryFunctions/interfaces/int_int.h" + "src/c/elementaryFunctions/interfaces/int_log.h" + "src/c/elementaryFunctions/interfaces/int_pow.h" + "src/c/elementaryFunctions/interfaces/int_sin.h" + "src/c/elementaryFunctions/interfaces/int_tan.h" + "src/c/elementaryFunctions/interfaces/int_acosh.h" + "src/c/elementaryFunctions/interfaces/int_acos.h" + "src/c/elementaryFunctions/interfaces/int_asin.h" + "src/c/elementaryFunctions/interfaces/int_atan.h" + "src/c/elementaryFunctions/interfaces/int_ceil.h" + "src/c/elementaryFunctions/interfaces/int_bitand.h" + "src/c/elementaryFunctions/interfaces/int_bitor.h" + "src/c/elementaryFunctions/interfaces/int_bitxor.h" + "src/c/elementaryFunctions/interfaces/int_bitcmp.h" + "src/c/elementaryFunctions/interfaces/int_bitset.h" + "src/c/elementaryFunctions/interfaces/int_bitget.h" + "src/c/elementaryFunctions/interfaces/int_linspace.h" + "src/c/elementaryFunctions/interfaces/int_logspace.h" + "src/c/elementaryFunctions/interfaces/int_cosh.h" + "src/c/elementaryFunctions/interfaces/int_uint8.h" + "src/c/elementaryFunctions/interfaces/int_int8.h" + "src/c/elementaryFunctions/interfaces/int_uint16.h" + "src/c/elementaryFunctions/interfaces/int_int16.h" + "src/c/elementaryFunctions/interfaces/int_acosd.h" + "src/c/elementaryFunctions/interfaces/int_acot.h" + "src/c/elementaryFunctions/interfaces/int_acotd.h" + "src/c/elementaryFunctions/interfaces/int_acoth.h" + "src/c/elementaryFunctions/interfaces/int_acsc.h" + "src/c/elementaryFunctions/interfaces/int_acscd.h" + "src/c/elementaryFunctions/interfaces/int_acsch.h" + "src/c/elementaryFunctions/interfaces/int_asec.h" + "src/c/elementaryFunctions/interfaces/int_asecd.h" + "src/c/elementaryFunctions/interfaces/int_asech.h" + "src/c/elementaryFunctions/interfaces/int_asind.h" + "src/c/elementaryFunctions/interfaces/int_atand.h" + "src/c/statisticsFunctions/interfaces/int_mean.h" + "src/c/statisticsFunctions/interfaces/int_meanf.h" + "src/c/statisticsFunctions/interfaces/int_stdevf.h" + "src/c/statisticsFunctions/interfaces/int_prod.h" + "src/c/statisticsFunctions/interfaces/int_variance.h" + "src/c/statisticsFunctions/interfaces/int_sum.h" + "src/c/operations/interfaces/int_OpEqual.h" + "src/c/operations/interfaces/int_OpLogNot.h" + "src/c/operations/interfaces/int_OpLogEq.h" + "src/c/operations/interfaces/int_OpLogNe.h" + "src/c/operations/interfaces/int_OpLogGt.h" + "src/c/operations/interfaces/int_OpLogGe.h" + "src/c/operations/interfaces/int_OpLogLt.h" + "src/c/operations/interfaces/int_OpLogLe.h" + "src/c/operations/interfaces/int_OpLogAnd.h" + "src/c/operations/interfaces/int_OpLogOr.h" + "src/c/operations/interfaces/int_OpDotStar.h" + "src/c/operations/interfaces/int_OpDotSlash.h" + "src/c/operations/interfaces/int_OpBackSlash.h" + "src/c/operations/interfaces/int_OpDotBackSlash.h" + "src/c/operations/interfaces/int_OpSlash.h" + "src/c/operations/interfaces/int_OpPlus.h" + "src/c/operations/interfaces/int_OpMinus.h" + "src/c/operations/interfaces/int_OpStar.h" + "src/c/operations/interfaces/int_OpExt.h" + "src/c/operations/interfaces/int_OpIns.h" + "src/c/string/interfaces/int_disp.h" + "src/c/string/interfaces/int_string.h" + "src/c/signalProcessing/interfaces/int_ifft.h" + "src/c/signalProcessing/interfaces/int_lpc2cep.h" + "src/c/signalProcessing/interfaces/int_cepstrum.h" + "src/c/signalProcessing/interfaces/int_xcorr.h" + "src/c/signalProcessing/interfaces/int_convol.h" + "src/c/signalProcessing/interfaces/int_hilbert.h" + "src/c/signalProcessing/interfaces/int_levin.h" + "src/c/signalProcessing/interfaces/int_fftshift.h" + "src/c/signalProcessing/interfaces/int_fft.h" + "src/c/signalProcessing/interfaces/int_lev.h" + "src/c/implicitList/int_OpColon.h" + "src/c/differential_calculus/interfaces/int_ode.h" + "src/c/differential_calculus/interfaces/int_diffc.h" + "src/c/Files/interfaces/int_files.h" + "src/c/string/interfaces/int_convstr.h" + "src/c/string/interfaces/int_strsubst.h" + //"src/c/string/interfaces/int_strcmp.h" + "src/c/string/interfaces/int_strrev.h" + "src/c/string/interfaces/int_strrchr.h" + "src/c/elementaryFunctions/interfaces/int_dec2base.h" + "src/c/elementaryFunctions/interfaces/int_base2dec.h" + "src/c/elementaryFunctions/interfaces/int_dec2bin.h" + "src/c/elementaryFunctions/interfaces/int_dec2hex.h" + "src/c/elementaryFunctions/interfaces/int_dec2oct.h" + "src/c/elementaryFunctions/interfaces/int_oct2dec.h" + "src/c/elementaryFunctions/interfaces/int_hex2dec.h" + "src/c/elementaryFunctions/interfaces/int_bin2dec.h" + "src/c/elementaryFunctions/interfaces/int_cosd.h" + "src/c/elementaryFunctions/interfaces/int_cotd.h" + "src/c/elementaryFunctions/interfaces/int_coth.h" + "src/c/elementaryFunctions/interfaces/int_csc.h" + "src/c/elementaryFunctions/interfaces/int_cscd.h" + "src/c/elementaryFunctions/interfaces/int_csch.h" + "src/c/elementaryFunctions/interfaces/int_sec.h" + "src/c/elementaryFunctions/interfaces/int_secd.h" + "src/c/elementaryFunctions/interfaces/int_sech.h" + "src/c/elementaryFunctions/interfaces/int_float.h" + "src/c/elementaryFunctions/interfaces/int_factorial.h" + "src/c/elementaryFunctions/interfaces/int_primes.h" + "src/c/elementaryFunctions/interfaces/int_factor.h" + "src/c/CACSD/interfaces/int_syslin.h" + "src/c/CACSD/interfaces/int_lqr.h" + "src/c/CACSD/interfaces/int_lqe.h" + "src/c/CACSD/interfaces/int_obscont.h" + "src/c/linearAlgebra/interfaces/int_schur.h" + "src/c/linearAlgebra/interfaces/int_balanc.h" + "src/c/linearAlgebra/interfaces/int_svd.h" + "src/c/linearAlgebra/interfaces/int_hess.h" + "src/c/linearAlgebra/interfaces/int_sva.h" + "src/c/linearAlgebra/interfaces/int_rcond.h"]; + + + //Interface files required for "Arduino" output + Arduino_interfaces = [ + "src/c/scilab-arduino/interfaces/int_cmd_digital_out.h" + "src/c/scilab-arduino/interfaces/int_cmd_digital_in.h" + "src/c/scilab-arduino/interfaces/int_cmd_analog_out.h" + "src/c/scilab-arduino/interfaces/int_cmd_analog_in.h" + "src/c/scilab-arduino/interfaces/int_cmd_dcmotor.h" + "src/c/scilab-arduino/interfaces/int_cmd_servo.h" + "src/c/scilab-arduino/interfaces/int_sleep.h"]; + + //Interface files required for "AVR" output + AVR_interfaces = [ + "src/c/hardware/avr/interfaces/int_AVRPeripheralGPIO.h" + "src/c/hardware/avr/interfaces/int_AVRPeripheralADC.h" + "src/c/hardware/avr/interfaces/int_AVRPeripheralPWM.h" + "src/c/hardware/avr/interfaces/int_AVRUtil.h" + "src/c/hardware/avr/interfaces/int_AVRPeripheralTimer.h" + "src/c/hardware/avr/interfaces/int_AVRPeripheralUART.h" + ]; + + RPI_interfaces = [ + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralThreading.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinISR.h" + "src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPWM.h" + ]; + + OpenCV_interfaces = [ + "src/c/imageProcessing/interfaces/int_cvcore.hpp" + "src/c/imageProcessing/interfaces/int_cvhighgui.hpp" + "src/c/imageProcessing/interfaces/int_cvimgproc.hpp"]; + + if Target == "StandAlone" + allInterfaces = Standalone_interfaces; + elseif Target == "Arduino" + allInterfaces = cat(1,Standalone_interfaces, Arduino_interfaces); + elseif Target == "AVR" + allInterfaces = cat(1,Standalone_interfaces, AVR_interfaces); + elseif Target == "RPi" + allInterfaces = cat(1,Standalone_interfaces, RPI_interfaces); + end + + if (SharedInfo.OpenCVUsed == %T) + allInterfaces = cat(1,allInterfaces,OpenCV_interfaces) + end + +endfunction |