8fc38f3761
Some users want to repackage the results of an sdk module. Genrules have 3 variants: linux, android, and common_os. The common_os one produces a snapshot zip file that users want. In order to get access to it, we need a genrule in the same variant, so create an sdk_genrule for that. The sdk_genrule shouldn't have linux/android variants either, because those other variants would get errors when trying to depend on the sdk modules because the snapshot zip doesn't exist in those other variants. The code in arch.go needs to be tweaked to allow a common_os variant without the other variants. Bug: 315962165 Test: m dist out/dist/art_release.zip Change-Id: Idc9b3cae7a525d71aed6bafa0f8724a89f75a94b
43 lines
988 B
Text
43 lines
988 B
Text
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-sdk",
|
|
pkgPath: "android/soong/sdk",
|
|
deps: [
|
|
"blueprint",
|
|
"soong",
|
|
"soong-android",
|
|
"soong-apex",
|
|
"soong-cc",
|
|
"soong-dexpreopt",
|
|
"soong-java",
|
|
],
|
|
srcs: [
|
|
"bp.go",
|
|
"build_release.go",
|
|
"exports.go",
|
|
"genrule.go",
|
|
"member_trait.go",
|
|
"member_type.go",
|
|
"sdk.go",
|
|
"update.go",
|
|
],
|
|
testSrcs: [
|
|
"bootclasspath_fragment_sdk_test.go",
|
|
"bp_test.go",
|
|
"build_release_test.go",
|
|
"cc_sdk_test.go",
|
|
"compat_config_sdk_test.go",
|
|
"exports_test.go",
|
|
"genrule_test.go",
|
|
"java_sdk_test.go",
|
|
"license_sdk_test.go",
|
|
"member_trait_test.go",
|
|
"sdk_test.go",
|
|
"systemserverclasspath_fragment_sdk_test.go",
|
|
"testing.go",
|
|
],
|
|
pluginFor: ["soong_build"],
|
|
}
|