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 }, 10 "resolve_function": "resolve_part", 11 "testFunction": "" 12 }, 13 "target_cpu": { 14 "arg_name": "--target-cpu", 15 "argDefault": "", 16 "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", 17 "arg_phase": "prebuild", 18 "arg_type": "str", 19 "arg_attribute": { 20 "optional": [ 21 "arm", 22 "arm64", 23 "x86_64", 24 "x64", 25 "mipsel", 26 "riscv64", 27 "loongarch64" 28 ] 29 }, 30 "resolve_function": "resolve_target_cpu", 31 "testFunction": "" 32 }, 33 "target_os": { 34 "arg_name": "--target-os", 35 "argDefault": "", 36 "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", 37 "arg_phase": "prebuild", 38 "arg_type": "str", 39 "arg_attribute": { 40 "optional": [ 41 "android", 42 "ohos", 43 "mac", 44 "linux", 45 "windows" 46 ] 47 }, 48 "resolve_function": "resolve_target_os", 49 "testFunction": "" 50 }, 51 "variant": { 52 "arg_name": "--variant", 53 "argDefault": "", 54 "arg_help": "Default:''. Help:install product variant, run 'hb build --variant {variant_name}'", 55 "arg_phase": "prebuild", 56 "arg_type": "str", 57 "arg_attribute": { 58 "abbreviation": "-v", 59 "optional": [ 60 "default" 61 ] 62 }, 63 "resolve_function": "resolve_variant", 64 "testFunction": "" 65 } 66}