1{
2    "sshkey": {
3        "arg_name": "--sshkey",
4        "argDefault": "",
5        "arg_help": "Default:''. Help: set sshkey",
6        "arg_phase": "prebuild",
7        "arg_type": "str",
8        "arg_attribute": {
9            "abbreviation": "-s"
10        },
11        "resolve_function": "resolve_sshkey",
12        "testFunction": "testSshkey"
13    },
14    "clean": {
15        "arg_name": "--clean",
16        "argDefault": false,
17        "arg_help": "Default:false. Help: clean all env args",
18        "arg_phase": "prebuild",
19        "arg_type": "bool",
20        "arg_attribute": {
21            "abbreviation": "-l"
22        },
23        "resolve_function": "resolve_clean",
24        "testFunction": "testClean"
25    },
26    "check": {
27        "arg_name": "--check",
28        "argDefault": true,
29        "arg_help": "Default:True. Help:check that the current running environment contains all dependencies",
30        "arg_phase": "prebuild",
31        "arg_type": "bool",
32        "arg_attribute": {
33        },
34        "resolve_function": "resolve_check",
35        "testFunction": "testCheck"
36    },
37    "install": {
38        "arg_name": "--install",
39        "argDefault": false,
40        "arg_help": "Default:False. Help:install all dependent software for compiling L0, L1 and L2 products",
41        "arg_phase": "prebuild",
42        "arg_type": "bool",
43        "arg_attribute": {},
44        "resolve_function": "resolve_install",
45        "testFunction": "TestInstall"
46    },
47    "indep_build": {
48        "arg_name": "--indep-build",
49        "argDefault": false,
50        "arg_help": "Default:false. Help: switch to independent build",
51        "arg_phase": "prebuild",
52        "arg_type": "bool",
53        "arg_attribute": {
54            "abbreviation": "-i"
55          },
56        "resolve_function": "resolve_install",
57        "testFunction": "TestInstall"
58    },
59    "part": {
60        "arg_name": "--part",
61        "argDefault": "",
62        "arg_help": "Default:''. Help:Specify component name, run 'hb env --part {part_name}' ",
63        "arg_phase": "prebuild",
64        "arg_type": "str",
65        "arg_attribute": {
66        },
67        "resolve_function": "resolve_part",
68        "testFunction": ""
69      },
70    "target_cpu": {
71        "arg_name": "--target-cpu",
72        "argDefault": "arm",
73        "arg_help": "Default:'arm'. Help:Specifies the desired cpu architecture for the build, each may support different cpu architectures,  run 'hb env --target-cpu {cpu_architectures}' to set cpu architectures",
74        "arg_phase": "prebuild",
75        "arg_type": "str",
76        "arg_attribute": {
77          "optional": [
78            "arm",
79            "arm64",
80            "x86_64",
81            "x64",
82            "mipsel",
83            "riscv64",
84            "loongarch64"
85          ]
86        },
87        "resolve_function": "resolve_target_cpu",
88        "testFunction": "testBuildTargetCpu"
89      },
90      "target_os": {
91        "arg_name": "--target-os",
92        "argDefault": "linux",
93        "arg_help": "Default:''. Help:Specifies the desired os type for the build, each may support different os type, run 'hb env --target-os {os_type}' to set os type",
94        "arg_phase": "prebuild",
95        "arg_type": "str",
96        "arg_attribute": {
97          "optional": [
98            "android",
99            "ohos",
100            "mac",
101            "linux",
102            "windows"
103          ]
104        },
105        "resolve_function": "resolve_target_os",
106        "testFunction": "testBuildTargetOs"
107      }
108}