Builds the user source code (non-gateway) in src/
subdirectory.
tbx_builder_src(toolbox_path)
Root directory of toolbox sources; builder scripts will be searched in the src subdirectory of this directory.
tbx_builder_src
is used for compiling the non-gateway code of a toolbox.
The compilation of sources in src/
directory follows this convention and priority order:
toolbox_path
/src/builder*.sce
script, if found, executes it;builder
script in each subdirectory of src/
and executes them;c, cpp, java, fortran
subdirectories, if no builder
script is found, a default compilation process is done:
c |
compilation is done for all *.c files, headers must be present in the c/ directory, function names must have the name of the file (without the .c extension) |
---|---|
cpp |
compilation is done for all *.cpp or *.cxx files, headers must be present in the cpp directory, function names must have the name of the file (without the .cpp or .cxx extension) |
java |
compilation is done for all *.java files under org/scilab/contrib/package_name directories where package_name is given by the user |
fortran |
compilation is done for all *.f files |
The function exits silently if the src
directory is absent.
![]() | Little automation is done for tbx_builder_src and is only specified for c, cpp, java, fortran because source compiling is a very specific process. Toolbox developers willing to have a more specific compilation process still need to define what the build scripts must perform for compilation. |
// Recommended usage tbx_builder_src(get_absolute_file_path('builder.sce')) | ![]() | ![]() |
Version | Description |
6.0.0 | No longer restricts the build scripts to Automatically scans for builder scripts in subdirectories if no builder script is found in A default compilation process is introduced for |