Properties
| Characteristics |
Values |
| Name |
C++ Builder |
| Nature |
Build |
| Description |
This operation compiles a collection of files |
| Scan description |
No scan operation |
| Supported files |
Files with .h, .c, .hpp, and
.cpp extension |
| Input objects |
- Files
- Folders containing source code
|
| Return codes |
0: Compilation OK
1: Invalid input configuration
-1: Compilation KO
2: Internal error
|
| Feature |
100 credits per compilation |
Parameters
platform
target_name
| Attributes |
Values |
| Name |
target_name |
| Description |
Optional parameter to specify the name of the built file. If null, a default
name is selected. |
| Type |
String |
| Values [Default] |
- |
| Multiplicity |
0..1 |
build_directory
| Attributes |
Values |
| Name |
build_directory |
| Description |
Optional parameter to specify the compilation relative directory. It is
the directory from where the make command is invoked. It
impacts the paths computation in the makefile. If null, the default directory
./ is selected. |
| Type |
String |
| Values [Default] |
./ |
| Multiplicity |
0..1 |
target_directory
| Attributes |
Values |
| Name |
target_directory |
| Description |
Optional parameter to specify the directory where the target is generated.
If specified, target_directory must be a relative directory
path starting with ./. If null, the default directory
./${platform} is selected. |
| Type |
String |
| Values [Default] |
./${platform} |
| Multiplicity |
0..1 |
object_directory
| Attributes |
Values |
| Name |
object_directory |
| Description |
Optional parameter to specify the directory where the object files are
generated. If null, the default directory
./${platform}/obj is selected. |
| Type |
String |
| Values [Default] |
./${platform}/obj |
| Multiplicity |
0..1 |
makefiles_directory
| Attributes |
Values |
| Name |
makefile_directory |
| Description |
Optional parameter to specify the directory where makefiles
files are generated.
If null, default directory ./${platform} is selected.
|
| Type |
String |
| Values [Default] |
./${platform} |
| Multiplicity |
0..1 |
auto_detect_src_directories
| Attributes |
Values |
| Name |
auto_detect_src_directories |
| Description |
Optional parameter to specify if the source directories are automatically
detected. If true:
- All folders and subfolders are provided as folders to be compiled.
- The
source_directories parameter is ignored.
If false:
- By default, no folders are selected.
- The
source_directories parameter defines the folder to be
compiled.
|
| Type |
Boolean |
| Values [Default] |
[true]/false |
| Multiplicity |
0..1 |
source_directories
| Attributes |
Values |
| Name |
source_directories |
| Description |
Optional parameter to specify the list of directories in which the source
files are detected and will be compiled. Use this parameter if
auto_detect_src_directories parameter is set to
false. |
| Type |
String |
| Values [Default] |
|
| Multiplicity |
0..* |
auto_detect_inc_directories
| Attributes |
Values |
| Name |
auto_detect_inc_directories |
| Description |
Optional parameter to specify if include directories are
automatically detected.
If true:
- All folders and subfolders are provided as include directories.
- The
include_directories parameter is ignored.
By default, the value is true.
|
| Type |
Boolean |
| Values [Default] |
[true]/false |
include_directories
| Attributes |
Values |
| Name |
include_directories |
| Description |
Optional parameter to specify the list of include directories used during the
compilation phase.
By default no include path is configured.
Similar to gcc -I option.
|
| Type |
String |
| Values [Default] |
- |
| Multiplicity |
0..* |
include_files
| Attributes |
Values |
| Name |
include_files |
| Description |
Optional parameter to specify the list of include files used during the
compilation phase. By default, no include file is configured. Similar
to gcc -include option. |
| Type |
String |
| Values [Default] |
- |
| Multiplicity |
0..* |
defined_symbols
| Attributes |
Values |
| Name |
defined_symbols |
| Description |
Optional parameter to specify the list of defined symbols used during the
compilation phase. Similar to gcc -D option. |
| Type |
String |
| Values [Default] |
- |
| Multiplicity |
0..* |
undefined_symbols
| Attributes |
Values |
| Name |
undefined_symbols |
| Description |
Optional parameter to specify the list of undefined symbols used during the
compilation phase.
Similar to gcc -U option.
|
| Type |
String |
| Values [Default] |
- |
| Multiplicity |
0..* |
cpp_compiler_flags
| Attributes |
Values |
| Name |
cpp_compiler_flags |
| Description |
Optional parameter to specify the list of flags used during the compilation
phase of cpp files. By default, no compilation flag is configured.
List of accepted flags (not exhaustive): -v, -O0, -O1, -O2, -O3, -g, -g1, -g3,
-p, -pg, -ftest-coverage -fprofile-arcs, -std=c++98, -std=c++0x, -std=c++1y,
-Wall, -pedantic, -Werror |
| Type |
String |
| Values [Default] |
- |
| Multiplicity |
0..* |
c_compiler_flags
| Attributes |
Values |
| Name |
c_compiler_flags |
| Description |
Optional parameter to specify the list of flags used during the compilation
phase of c files. By default no compilation flag is configured. List
of accepted flags (not exhaustive): -v, -O0, -O1, -O2, -O3, -g, -g1, -g3, -p,
-pg, -ftest-coverage -fprofile-arcs, -std=c90, -std=c99, -std=c11, -Wall,
-pedantic, -Werror |
| Type |
String |
| Values [Default] |
- |
| Multiplicity |
0..* |
libraries
| Attributes |
Values |
| Name |
libraries |
| Description |
Optional parameter to specify the list of libraries to be used during the link
phase.
By default, no library is configured.
Similar to gcc-l option.
|
| Type |
String |
| Values [Default] |
- |
| Multiplicity |
0..* |
library_directories
| Attributes |
Values |
| Name |
library_directories |
| Description |
Optional parameter to specify the list of directories in which the libraries
should be searched.
By default, no library path is configured.
Similar to the gcc-L option.
|
| Type |
String |
linker_flags
| Attributes |
Values |
| Name |
linker_flags |
| Description |
Optional parameter to specify the list of flags used during the link phase.
By default, no compilation flag is configured. List of accepted
flags (not exhaustive): -shared, -static |
| Type |
String |
| Values [Default] |
- |
| Multiplicity |
0..* |
jobs
| Attributes |
Values |
| Name |
jobs |
| Description |
Optional parameter to specify the number of jobs to be used for the
compilation.
Default value is 1.
|
| Type |
Integer |
| Values [Default] |
[1] |
| Multiplicity |
0..* |
|