同步操作将从 OpenHarmony/developtools_syscap_codec 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
SysCap(SystemCapability) encoder and decoder tools common usage scenarios as follow:
APP development: IDE collect APP required SysCap and API verssion as in RPCID encoder input. And IDE will decode PCID to device SysCap list when it imported. This tool is only for use by the IDE, developers will not be used directly.
Main function:
PCID Encode: Encode SysCap list to PCID.
PCID Decode: Decode PCID to get system SysCap list.
RPCID Encode: Encode APP required SysCap list to RPCID.
RPCID Decode: Decode RPCID to get APP required SysCap list.
/developtools
├── syscap_codec # root directory
│ ├── include
│ │ └── syscap_tool.h # interfaces
│ └── src
│ │ ├── endian_internel.h # internal big/little endian conversion headers(common for win、mac、linux)
│ │ ├── endian_internel.c # big/little endian conversion implement
│ │ ├── main.c # command line implement
│ │ └── syscap_tool.c # codec implement
│ └── test
│ | └── syscap_tool_test.c # syscap_tool test codec implement
| |—— tools
| │ │
| │ └── syscap_check.py # syscap一致性检查脚本
PC tools, no API provided.
syscap_tool binary building steps as follow:
Build commands:SysCap tools binary building and installation will be tiggered by SDK compiling procedure. How to build SDK please refer to https://gitee.com/openharmony/build/blob/master/README_zh.md.
Building cmd should be adjust for host platform as same as SDK compiling, the archive will in corresponding platform directoty.
Note: Ubuntu host only avaiable for windows/linux building, MacOs binary should building on MacOs host.
Download daily builds(http://ci.openharmony.cn/dailybuilds) which included SDK.
Windows x86_64/Linux x86_64/Darwin x86_64
SysCap tools usually integrate to IDE, APP store and bundle tools. Follow instructions for debugging manually:
./syscap_tool -h or ./syscap_tool --help:
./syscap_tool --help
./syscap_tool -R/P -e/d -i filepath [-o outpath]
-h, --help : how to use
-R, --RPCID : encode or decode RPCID
-P, --PCID : encode or decode PCID
-e, --encode : to encode
-d, --encode : to decode
-i filepath, --input filepath : input file
-o outpath, --input outpath : output path
The tool provides the following functions:
This tool is written in Python language and needs to be executed using the Python interpreter.
requirements:
prettytable==3.3.0
usage:
# check syscap field in all components for consistency with arraySyscap in syscap_define.h
python3 syscap_check.py -p path_of_openarmony -t component_codec
# check that the SYSCAP field in bundle.json of the specified part is consistent with arraySyscap in syscap_define.h. Note: --bundles is valid only if --check_target is component_codec
python3 syscap_check.py -p path_of_openarmony -t component_codec -b path_of_component1/bundle.json path_of_component2/bundle.json
# check the consistency of the syscap field of all components with the "@syscap" property set in *.d.ts
python3 syscap_check.py -p path_of_openarmony -t component_sdk
# check the "@syscap" attribute set in *.d.ts for consistency with arraSyscap in syscap_define.h
python3 syscap_check.py -p path_of_openarmony -t sdk_codec
v1.0.0 2022-3-8 first release, SysCap codec supported for Windows/Linux/Mac host.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。