applicationCompiler fileset.resources vs fileset.depfun

3 ビュー (過去 30 日間)
Dave Watson
Dave Watson 2022 年 5 月 1 日
回答済み: Ravi 2024 年 1 月 23 日
Anyone know how the applicationCompiler decides when a source file is classed as a resource vs a regular dependency? I have a set of similar files - all contain constants used by various source files and a few static methods? Some of these are under <fileset.resources> and some under <fileset.depfun> in the PRJ file with no obvious rule for which goes where that I can figure out?

回答 (1 件)

Ravi
Ravi 2024 年 1 月 23 日
Hi Dave Watson,
The main difference between dependencies and resources is that:
Dependenices are necessary for the execution of application because the entry functions in the applications may invoke the functions in dependencies either directly or indirectly. In the case of resources, they are required in order to execute the application properly but are not found out during the static code analysis phase.
fileset.resources stores those flies that are required but the compiler could not automatically detect. Instead, they can be mentioned manually. fileset.depfun contains those files that the compiler has identified as dependencies.

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

製品


リリース

R2015b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by