• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "part": {
3    "arg_name": "--part",
4    "argDefault": "",
5    "arg_help": "Default:''. Help:specify component name, run 'hb build {part_name} or hb build --part {part_name}'",
6    "arg_phase": ["hpmDownload", "indepCompilation"],
7    "arg_type": "str",
8    "arg_attribute": {},
9    "resolve_function": "resolve_part",
10    "testFunction": ""
11  },
12  "target_cpu": {
13    "arg_name": "--target-cpu",
14    "argDefault": "arm",
15    "arg_help": "Default:''. Help:Specifies the desired cpu architecture for the build, each may support different cpu architectures, run 'hb build --target-cpu {cpu_architectures}' to set os type cpu architectures",
16    "arg_phase": "hpmDownload",
17    "arg_type": "str",
18    "arg_attribute": {
19      "optional": [
20        "arm",
21        "arm64",
22        "x86_64",
23        "x64",
24        "mipsel",
25        "riscv64",
26        "loongarch64"
27      ]
28    },
29    "resolve_function": "resolve_target_cpu",
30    "testFunction": ""
31  },
32  "target_os": {
33    "arg_name": "--target-os",
34    "argDefault": "ohos",
35    "arg_help": "Default:''. Help:Specifies the desired os type for the build, each may support different os type, run 'hb build --target-os {os_type}' to set os type",
36    "arg_phase": "hpmDownload",
37    "arg_type": "str",
38    "arg_attribute": {
39      "optional": [
40        "android",
41        "ohos",
42        "mac",
43        "linux",
44        "windows"
45      ]
46    },
47    "resolve_function": "resolve_target_os",
48    "testFunction": ""
49  },
50  "variant": {
51    "arg_name": "--variant",
52    "argDefault": "default",
53    "arg_help": "Default:''. Help:install product variant, run 'hb build --variant {variant_name}'",
54    "arg_phase": ["hpmDownload", "indepCompilation"],
55    "arg_type": "str",
56    "arg_attribute": {
57      "abbreviation": "-v"
58    },
59    "resolve_function": "resolve_variant",
60    "testFunction": ""
61  },
62  "branch": {
63    "arg_name": "--branch",
64    "argDefault": "master",
65    "arg_help": "Default:''. Help:code branch name, run 'hb build --branch {branch_name}'",
66    "arg_phase": "hpmDownload",
67    "arg_type": "str",
68    "arg_attribute": {
69      "abbreviation": "-b"
70    },
71    "resolve_function": "resolve_branch",
72    "testFunction": ""
73  },
74  "build_type": {
75    "arg_name": "--build-type",
76    "argDefault": "",
77    "arg_help": "Default:''. Help:set independent build type, do not use this option, use -i or -t instead",
78    "arg_phase": ["hpmDownload", "indepCompilation"],
79    "arg_type": "str",
80    "arg_attribute": {},
81    "resolve_function": "resolve_build_type",
82    "testFunction": ""
83  },
84  "keep_ninja_going": {
85    "arg_name": "--keep-ninja-going",
86    "argDefault": false,
87    "arg_help": "Default:''. Help: Continue compiling the remaining parts when error occurred",
88    "arg_phase": ["indepCompilation"],
89    "arg_type": "bool",
90    "arg_attribute": {
91    },
92    "resolve_function": "resolve_keep_ninja_going",
93    "testFunction": ""
94  },
95  "gn_args": {
96    "arg_name": "--gn-args",
97    "argDefault": [],
98    "arg_help": "Default:[]. Help:Add custom gn args",
99    "arg_phase": "indepCompilation",
100    "arg_type": "list",
101    "arg_attribute": {},
102    "resolve_function": "resolve_gn_args",
103    "testFunction": ""
104  },
105  "gn_flags": {
106    "arg_name": "--gn-flags",
107    "argDefault": [],
108    "arg_help": "Default:[]. Help:Specify gn build arguments, you could use this option like this 'hb build --gn-flags \"--export-compile-commands\"",
109    "arg_phase": "indepCompilation",
110    "arg_type": "list",
111    "arg_attribute": {},
112    "resolve_function": "resolve_gn_flags",
113    "testFunction": ""
114  },
115  "ninja_args": {
116    "arg_name": "--ninja-args",
117    "argDefault": [],
118    "arg_help": "Default:[]. Help:Add custom ninja args",
119    "arg_phase": "indepCompilation",
120    "arg_type": "list",
121    "arg_attribute": {},
122    "resolve_function": "resolve_ninja_args",
123    "testFunction": ""
124  },
125  "skip_download": {
126    "arg_name": "--skip-download",
127    "argDefault": false,
128    "arg_help": "Default:false. Help:You can use this option to skip hpm download",
129    "arg_phase": ["hpmDownload","indepCompilation"],
130    "arg_type": "bool",
131    "arg_attribute": {},
132    "resolve_function": "resolve_skip_download",
133    "testFunction": ""
134  },
135  "skip_prebuilts": {
136    "arg_name": "--skip-prebuilts",
137    "argDefault": false,
138    "arg_help": "Default:false. Help:You can use this option to skip prebuilts download step",
139    "arg_phase": "prebuild",
140    "arg_type": "bool",
141    "arg_attribute": {},
142    "resolve_function": "resolve_prebuilts_download",
143    "testFunction": ""
144  },
145  "build_target": {
146    "arg_name": "--build-target",
147    "argDefault": [],
148    "arg_help": "Default:false. Help:Specify a single compilation target",
149    "arg_phase": "indepCompilation",
150    "arg_type": "list",
151    "arg_attribute": {},
152    "resolve_function": "resolve_build_target",
153    "testFunction": ""
154  },
155  "fast_rebuild": {
156    "arg_name": "--fast-rebuild",
157    "argDefault": false,
158    "arg_help": "Default:false. Help:Skip hpm download and gn phase, run ninja directly",
159    "arg_phase": ["hpmDownload","indepCompilation"],
160    "arg_type": "bool",
161    "arg_attribute": {},
162    "resolve_function": "resolve_fast_rebuild",
163    "testFunction": ""
164  },
165  "ccache": {
166    "arg_name": "--ccache",
167    "argDefault": true,
168    "arg_help": "Default:true. Help:Set whether use build cache or not",
169    "arg_phase": "indepCompilation",
170    "arg_type": "bool",
171    "arg_attribute": {},
172    "resolve_function": "resolve_ccache",
173    "testFunction": ""
174  }
175}