__mcc_package_runtime__
- :
result =__mcc_package_runtime__(mfiles, output_dir)¶ - :
result =__mcc_package_runtime__(mfiles, output_dir, Name, Value, …)¶ Package collected
.mfiles with a Nexus runtime and a platform launcher into output_dir.On Linux this writes a shell launcher and optional
run_app.sh(nexus#1689). On Windows it writesapp.bat/run_app.batand bundles the MinGW DLL set via bundle-libs.sh (nexus#1690).Name-value options:
"AppName"Launcher basename. Default: basename of the main file.
"MainFile"Entry-point
.mpath. Default: first of mfiles."RuntimeRoot"Nexus install prefix to package. Default: auto-detect.
"Strip"Strip packaged ELF binaries after copy (Linux; default
true). Ignored when"LinkRuntime"is true."LinkRuntime"Symlink / stub runtime instead of copying or running bundle-libs.sh (default
false). For fast local tests."Platform""linux","windows", or"auto"(default). Auto usesispc/isunix. Explicit override is a Nexus test extension so Windows layout can be verified on a Linux host."BundleLibs"Path to bundle-libs.sh. Default: locate beside the source tree or under
NEXUS_HOME."Verbose"Echo packaging steps (default
false).
result is a struct with fields
outputDir,launcher,appDir,runtimeDir,appName,mainFile,runHelper,platform.Error identifiers follow the
Compiler:mcc:*family.