summaryrefslogtreecommitdiff
path: root/2.3-1/macros/Hardware/RasberryPi/buildmacros.sce
blob: 07b564e3f0a9beb576426f1697ae194e3417da7a (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
// Copyright (C) 2017 - IIT Bombay - FOSSEE
//
// 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
// Author: Jorawar Singh
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in

RPI_Directories = [ "Digital", ...
                "gertBoard", ...
                "I2C", ...
                "Interrupt", ...
                "lcd", ...
                "lcd128x64", ...
                "mcp", ...
                "Misc", ...
                "pcf", ...
                "piGlow", ...
                "pinMap", ...
                "pwm", ...
                "Serial", ...
                "Setup", ...
                "Shift", ...
                "Soft", ...
                "SPI", ...
                "Timing"];
                
RPI_path_buildmacros = get_absolute_file_path("buildmacros.sce");

for H=1:size(RPI_Directories,"*")
  myfile = RPI_path_buildmacros + filesep() + RPI_Directories(H) + filesep() + "buildmacros.sce";
  if isfile(myfile) then
    exec(myfile);
  end
end

clear RPI_path_buildmacros;

function buildmacros()
    macros_path = get_absolute_file_path("buildmacros.sce");
    tbx_build_macros(TOOLBOX_NAME, macros_path);
    clear tbx_build_macros;
endfunction

buildmacros();
clear buildmacros;