メインコンテンツ

copyRuntimeDependencies

R2026b

Copy run-time libraries to C++ interface library folder

Since R2026b

    Description

    copyRuntimeDependencies(idef) copies each run-time library specified in idef to the folder containing the interface definition created by the build command. This folder is on the MATLAB® path, making the files available when you test. The clibPublishInterfaceWorkflow script calls this function in the Set up and copy run-time libraries section.

    This function collects the necessary files for distributing to end users so that they do not have to set environment variables to call functions in the interface.

    copyRuntimeDependencies(idef,options) copies run-time libraries with additional options specified by one or more Name=Value arguments.

    Input Arguments

    collapse all

    Interface definition, specified as a clibgen.api.InterfaceDefinition object.

    Name-Value Arguments

    collapse all

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Example: copyRuntimeDependencies(idef,AdditionalRuntimeFolders="C:\mylib\util\win64") copies the run-time library dependencies in C:\mylib\util\win64 to the interface library folder.

    Absolute paths to folders with additional run-time dependencies, specified as a string vector. The function copies all run-time dependencies from each run-time path to the interface library folder.

    Absolute paths to additional run-time dependencies, specified as a string vector, to be copied to the interface library folder.

    Option to display details from the copy command, specified as a numeric or logical 1 (true) or 0 (false). If Verbose is true, then the function displays details about each library copied. If Verbose is false, then the function displays a brief success message.

    Version History

    Introduced in R2026b