你可能在使用一个较新或较旧的Gradle版本,而该版本不支持soong_config_variables属性。确保你的Gradle版本与Android Gradle插件(AGP)版本兼容。 构建脚本错误: build.gradle文件中可能存在语法错误或配置错误,导致Gradle无法正确解析和配置项目。检查build.gradle文件,确保没有拼写错误或配置不当。 插件问题: 你可能使用了...
soong_config_module_type { name: "acme_cc_defaults", module_type: "cc_defaults", config_namespace: "acme", variables: ["board"], bool_variables: ["feature"], value_variables: ["width"], properties: ["cflags", "srcs"], } soong_config_string_variable { name: "board", values: ["...
When converting vendor modules that contain conditionals, simple conditionals can be supported through Soong config variables using soong_config_* modules that describe the module types, variables and possible values:soong_config_module_type { name: "acme_cc_defaults", module_type: "cc_defaults", ...
soong_config_module_type { name: "acme_cc_defaults", module_type: "cc_defaults", config_namespace: "acme", variables: ["board", "feature"], properties: ["cflags", "srcs"], } soong_config_string_variable { name: "board", values: ["soc_a", "soc_b"], } soong_config_bool_varia...
--dumpvars-mode和--dumpvar-mode用于dump the values of one or more legacy make variables譬如例子:./out/soong_ui --dumpvar-mode TARGET_PRODUCT aosp_arm --make-mode参数告诉 soong_ui,是正儿八经要开始编译。也就是说soong_ui --make-mode可以替代原来的 make, 所以后面还可以带一些参数选项。这些...
;; esac echo "$basic_machine$os" exit # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: 北京...
Variables and properties are strongly typed, variables dynamically based on the first assignment, and properties statically by the module type. The supported types are: 变量和属性都是强类型的,变量在第一次被引用时确认类型,属性由所属的类别决定类型。以下为受支持的类型: ...
Config().productVariables.Make_suffix)+".mk").String() if ctx.Failed() { return } vars := []makeVarsVariable{} for _, provider := range makeVarsProviders { mctx := &makeVarsContext{ config: ctx.Config(), ctx: ctx, pctx: provider.pctx, } provider.call(mctx) vars = append(vars...
build/soong/variable.go + My_struct struct{ + Srcs[]string + } 2.+ My_struct *string `json:",omitempty to productVariables in build/soong/variable.go 3.Passed ENV_VARIABLE to My_struct in build/make/core/soong_config.mk + echo ' "My_struct": "$(ENV_VARIABLE)",' ...
Soong Config Variables When converting vendor modules that contain conditionals, simple conditionals can be supported through Soong config variables usingsoong_config_*modules that describe the module types, variables and possible values: soong_config_module_type { name: "acme_cc_defaults", module_type...