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": "prebuild", 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": "prebuild", 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": "prebuild", 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": "prebuild", 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": "prebuild", 67 "arg_type": "str", 68 "arg_attribute": { 69 "abbreviation": "-b" 70 }, 71 "resolve_function": "resolve_branch", 72 "testFunction": "" 73 } 74}