• 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: keep ninja going 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:You use this option to 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  "skip_download": {
106    "arg_name": "--skip-download",
107    "argDefault": false,
108    "arg_help": "Default:false. Help:You use this option to skip hpm download",
109    "arg_phase": "hpmDownload",
110    "arg_type": "bool",
111    "arg_attribute": {},
112    "resolve_function": "resolve_skip_download",
113    "testFunction": ""
114  },
115  "build_target": {
116    "arg_name": "--build-target",
117    "argDefault": [],
118    "arg_help": "Default:false. Help:You use this option to specify a single compilation target",
119    "arg_phase": "indepCompilation",
120    "arg_type": "list",
121    "arg_attribute": {},
122    "resolve_function": "resolve_build_target",
123    "testFunction": ""
124  },
125  "keep_out": {
126    "arg_name": "--keep-out",
127    "argDefault": false,
128    "arg_help": "Default:false. Help: keep out dir",
129    "arg_phase": "indepCompilation",
130    "arg_type": "bool",
131    "arg_attribute": {},
132    "resolve_function": "resolve_keep_out",
133    "testFunction": ""
134  },
135  "ccache": {
136    "arg_name": "--ccache",
137    "argDefault": true,
138    "arg_help": "Default:false. Help:You use this option to use build cache",
139    "arg_phase": "indepCompilation",
140    "arg_type": "bool",
141    "arg_attribute": {},
142    "resolve_function": "resolve_ccache",
143    "testFunction": ""
144  }
145}