Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
tbx_builder_gateway
Builds the user gateway code in sci_gateway/
subdirectory.
Syntax
tbx_builder_gateway(toolbox_path)
Arguments
- toolbox_path
Root directory of toolbox gateway code; buider script will be searched in the
sci_gateway/
subdirectory of this directory.
Description
tbx_builder_gateway
is used for compiling the gateway code of a toolbox.
The compilation of sources in sci_gateway
directory follows this convention and priority order:
- looks for a
toolbox_path
/sci_gateway/builder*.sce
script, if found, executes it; - otherwise, looks for a
builder
script in each subdirectory ofsci_gateway/
and executes them; - for
c
subdirectory, if nobuilder
script is found, a default compilation process is done:c
- compilation is done for all
sci_*.c
files; - headers for user (non-gateway code) must be present in the
toolbox_path
/src/c/
directory; - scilab function names will be th name of the file (without the
sci_
prefix and.c
extension); - only the Scilab 6 API is supported with this automated process.
- compilation is done for all
The function exits silently if the sci_gateway
directory is absent.
Little automation is done for tbx_builder_gateway and is only specified for c 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. |
Examples
// Recommended usage tbx_builder_gateway(get_absolute_file_path('builder.sce'))
History
Versão | Descrição |
6.0.0 | No longer restricts the build scripts to Automatically scans for builder scripts in subdirectories
if no builder script is found in Automated process is introduced for the compilation of Scilab 6 C API gateways. |
Report an issue | ||
<< tbx_build_src | Sections builders | tbx_builder_help >> |