{ #HPM部件英文名称,格式"@组织/部件名称" "name": "@ohos/alsa-lib", # 部件功能一句话描述 "description": "The alsa-lib is a library to interface with ALSA in the Linux kernel and virtual devices using a plugin system.", # 版本号,版本号与OpenHarmony版本号一致 "version": "3.1", # 部件License "license": "GNU Lesser General Public License v2.1", # HPM包的发布方式,当前默认都为code-segment "publishAs": "code-segment", # 发布类型为code-segment时为必填项,定义发布类型code-segment的代码还原路径(源码路径) "segment": { "destPath": "third_party/alsa-lib" }, # HPM包的目录结构,字段必填内容可以留空 "dirs": {}, # HPM包定义需要执行的脚本,字段必填,值非必填 "scripts": {}, # 部件License路径,字段和值非必填 "licensePath": "COPYING", # 部件说明路径,字段和值非必填 "readmePath": { "en": "README.md", "zh": "README_zh.md" }, # 部件属性 "component": { # 部件名称 "name": "alsa-lib", # 部件所属子系统,字段必填,值非必填 "subsystem": "thirdparty", # 部件为应用提供的系统能力 "syscap": [], # 部件对外的可配置特性列表,一般与build中的sub_component对应,可供产品配置 "features": [], # 轻量(mini)小型(small)和标准(standard),可以是多个比如:["standard", "small"], "adapted_system_type": [ "standard" ], # 部件ROM值 "rom": "950KB", # 部件RAM估值 "ram": "988KB", "deps": { "components": [], # 部件依赖的其他部件 "third_party": [] # 部件依赖的其他部件 }, # 编译相关配置 "build": { # 部件编译入口,模块在此处配置 "sub_component": [ "//third_party/alsa-lib:libasound" ], # 模块在此处配置 "inner_kits": [], # 部件测试用例编译入口 "test": [] } }}