• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# AbcKit
2
3`AbcKit` 是一个用于**检查和修改**方舟字节码的工具库。
4
5文档索引:
6
7- [如何构建与测试](doc/how_to_build_and_test_zh.md)
8- [快速上手小册](doc/mini_cookbook_zh.md)
9- [实现原理说明](doc/implementation_description_zh.md)
10
11---
12
13## 如何下载与构建
14
15AbcKit 需要在 Linux 环境下构建。
16
17### 安装依赖项:
18
19请确保已安装以下组件:
20
21- `repo`
22- `Clang++-14`
23- `Clang-format-14`
24- `Clang-tidy-14`
25- `Doxygen`
26- `Graphviz`
27- `Git LFS`
28
29### 下载代码:
30
31```sh
32repo init -u https://gitee.com/ark-standalone-build/manifest.git -b master
33repo sync -c -j8
34repo forall -c 'git lfs pull'
35./prebuilts_download.sh
36```
37
38### 构建 AbcKit:
39
40```sh
41# Linux 平台构建
42./ark.py x64.release abckit_packages --gn-args="is_standard_system=true abckit_enable=true"
43# Windows 平台构建
44./ark.py mingw_x86_64.release abckit_packages --gn-args="is_standard_system=true abckit_enable=true"
45```
46
47### 生成 Doxygen 文档:
48
49```sh
50cd out/x64.release
51ninja abckit_documentation
52```
53
54生成的文档将保存在 `out/x64.release/gen/arkcompiler/runtime_core/libabckit/doxygen`