result = nelson.compiler.build(options)
result = ncc(options)
result = nelson.compiler.BuildResult(report, options)
values = struct(result)
| Parameter | Description |
|---|---|
| report | Scalar structure containing Executable, RuntimeDirectory, DependencyPlan, RuntimePlan, Manifest and SHA256. |
| options | Scalar nelson.compiler.BuildOptions object. |
| Parameter | Description |
|---|---|
| result | Scalar build result with read-only properties. |
Normally obtain a result from ncc(options) or nelson.compiler.build(options). The constructor wraps an existing report: it does not build, check the files or authenticate their contents.
BuildType: standaloneApplication, or standaloneWindowsApplication when options.NoConsole is true.
Files: cell of paths to distribute, containing Executable and, for bundled builds, RuntimeDirectory. It is not a recursive file inventory or an installer.
Executable: absolute path to the native executable. RuntimeDirectory: adjacent runtime directory, or empty for installed mode. Move a bundled executable and its runtime directory together without renaming them.
Options: value copy of the build configuration. Later changes to the caller's options do not change the result.
DependencyPlan: resolved application dependency analysis. RuntimePlan: runtime requirements and the selected runtime file inventory for bundled mode. Use these to inspect why modules and files were included.
Manifest: embedded application manifest, describing archive entries and runtime requirements. SHA256: digest of the generated executable, not a publisher signature.
struct(result) converts the result to a scalar structure, including Options as a structure. Reports can contain absolute build-machine paths; review them before publishing. These results describe the current packager, not an application installer.
When Options.EmbedArchive is false, Files also contains the .nca archive between the executable and any runtime directory. SHA256 remains the executable digest; archive integrity is checked at startup.
options = ncc('options', 'app_entry.m', 'OutputDir', 'application-build');
result = ncc(options);
disp(result.Files);
disp(result.RuntimePlan);
text = jsonencode(struct(result));
| Version | Description |
|---|