Skip to main content

signaloid-cli builds create:source

Create a build from a local source file.

Synopsis​

signaloid-cli builds create:source --file <path> --lang <language> [options]

Options​

OptionRequiredDescription
--file <path>YesSource file path
--lang <C|C++|Fortran>YesSource language. Fortran is recognized but not yet supported.
--args <args>NoDefault runtime arguments
--core-id <coreId>NoCore ID
--trace-variables <json>NoJSON array of TraceVariableRequest objects, e.g., [{"Expression":"x[0]","File":"main.c","LineNumber":12}]
--data-sources <json>NoJSON array of DataSource objects, e.g., [{"Location":"/data","Object":"DataSource","ResourceID":"drv_...","ResourceType":"Drive"}]
--publicNoMark the build as publicly accessible
--discover-variablesNoAsk the server to discover traceable variables
--config-mk <path>NoPath to a config.mk file used to customize the build

Examples​

Build from C source:

signaloid-cli builds create:source \
--file main.c \
--lang C

With runtime arguments:

signaloid-cli builds create:source \
--file main.c \
--lang C \
--args "argA --longArgB argB"

Specify core:

signaloid-cli builds create:source \
--file main.c \
--lang C \
--core-id cor_e7eec4dce06f5a03a1b5418e0c5cbd7e # C0Pro-S+

C++ build:

signaloid-cli builds create:source \
--file program.cpp \
--lang C++

See Also​