Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.1 - Русский

Change language to:
English - Français - 日本語 - Português -

Please note that the recommended version of Scilab is 2024.1.0. This page might be outdated.
See the recommended documentation of this function

Справка Scilab >> Modules manager > tbx_builder_gateway


Builds the user gateway code in sci_gateway/ subdirectory.





Root directory of toolbox gateway code; buider script will be searched in the sci_gateway/ subdirectory of this directory.


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;
  • otherwize, looks for a builder script in each subdirectory of sci_gateway/ and executes them;
  • for c subdirectory, if no builder script is found, a default compilation process is done:

    • 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.

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.


// Recommended usage



No longer restricts the build scripts to builder_gateway.sce. Now any scripts called builder*.sce is valid for source compilation.

Automatically scans for builder scripts in subdirectories if no builder script is found in sci_gateway

Automated process is introduced for the compilation of Scilab 6 C API gateways.

Report an issue
<< tbx_build_src Modules manager tbx_builder_help >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 20:08:51 CET 2018