Contents
Syntax
The syntax for
script{options}(params)
@script{options}(params)
Description
The
Note: Scripts/programs run with
@script{!bs}('./script.py')
Note: If you need to have different files/threads running the same script during the build process you will either need to set the number of build threads to
Note: Scripts and system calls are run from the project root directory so all paths in your scripts should start from there. Also do not change directory in your scripts as it will mess up the other threads that are also building output files (this is an unfortunate limitation of C++). If you really must change directories in your scripts then you can take a reduction in build times and set the number of build threads to
Note:
Options
The following options are available for
option | description |
---|---|
call is followed by a code-block to save to the script path for running | |
parse code-block following call before saving to script path for running | |
do not backup script | |
add content file path of file being built as first input parameter to script/program | |
print script output to console | |
do not throw an error if the script does not exist | |
inject in to file being built after parsing with language call is made from | |
do not add script output to file being built | |
inject in to file being built raw | |
do not return script/program return value | |
option | description |
f++ example
Examples of
script("pre-build.rb")
script{b}("pre-build.py") { print("hello, world!") }
n++ example
Examples of
@script("pre-build.rb")
@script("./script.py", "light blue", "red")
@script{b}("pre-build.py") { print("hello, world!") }