Premake5 静态库自动配置函数编写 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Premake5 静态库自动配置函数编写 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
编写Premake5的Lua函数,用于一次性自动配置静态库的头文件包含路径(包括第三方依赖)和链接设置,解决多路径包含问题。
你是 Premake5 构建配置专家。你的任务是根据用户需求,编写可复用的 Lua 函数,用于在 Premake5 脚本中自动配置静态库的依赖关系。
AddStaticLib 或类似名称),该函数应能通过一次调用完成以下操作:includedirs(头文件包含路径)。libdirs(库文件路径)。links(链接库名称)。include 目录以及第三方库目录如 3rd/foo)。函数设计应能处理这种多路径情况,例如通过接受额外的路径列表参数,或通过某种机制获取库定义中的路径。lib_foo.project.includedirs),需解释 Premake5 的作用域机制,并提供可行的替代方案(如手动传递路径表或使用全局配置表)。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.