Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.2 - Français

Change language to:
English - 日本語 - Português - Русский

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

Aide de Scilab >> Gestionnaire de modules externe > Sections builders > tbx_build_src

tbx_build_src

Build sources (toolbox compilation process)

Syntax

tbx_build_src(names, files, flag, [src_path [, libs [, ldflags [, cflags [, fflags [, cc [, libname [, loadername [, makename]]]]]]]]])

Arguments

names

a string matrix giving the entry names which are to be linked.

files

string matrix giving objects files needed for shared library creation

flag

a string flag ("c" or "f") for C or Fortran entry points.

src_path

Path to the source files ; in a normal toolbox it should be the directory containing the builder_src_(lang).sce script (which should be the script calling this function). Default is current directory.

libs

string matrix giving extra libraries needed for shared library creation

ldflags

optional character string. It can be used to add specific linker options in the generated Makefile. Default value is ''

cflags

optional character string. It can be used to add specific C compiler options in the generated Makefile. Default value is ''

fflags

optional character string. It can be used to add specific Fortran compiler options in the generated Makefile. Default value is ''

cc

optional character string. It can be used to specify a C compiler. Default value is ''

libname

optional character string. The name of the generated shared library (default value is '', and in this case the name is derived from names(1)).

loadername

character string. The pathname of the loader file (default value is loader.sce).

makename

character string. The pathname of the Makefile file without extension.

This parameter is useless since Scilab 5.0. Default value to use: [].

A warning will be displayed in Scilab 5.3 if you use another value that the default.

Examples

// Recommended usage
tbx_build_src(['csum','csub'], ['csum.c','csub.c'], 'c', ..
              get_absolute_file_path('builder_c.sce'));

See also

  • ilib_for_link — utility for shared library management with link
Report an issue
<< tbx_build_localization Sections builders tbx_builder_gateway >>

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:
Thu Feb 14 15:00:00 CET 2019