Wrap blueprint_go_binary and bootstrap_go_package into android.Modules
Depending on a blueprint_go_binary from a Soong module requires hacks that allow Soong to support both blueprint.Module and android.Module. Wrap the blueprint Go module types with ones that implement android.Module, and delete all the related hacks. Bug: 319288033 Test: m checkbuild Flag: EXEMPT refactor Change-Id: I9b62b450de09bd10288333fbc66aa71c867ae0b3
This commit is contained in:
22
golang/Android.bp
Normal file
22
golang/Android.bp
Normal file
@@ -0,0 +1,22 @@
|
||||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
bootstrap_go_package {
|
||||
name: "soong-golang",
|
||||
pkgPath: "android/soong/golang",
|
||||
deps: [
|
||||
"blueprint",
|
||||
"blueprint-pathtools",
|
||||
"blueprint-bootstrap",
|
||||
"soong",
|
||||
"soong-android",
|
||||
],
|
||||
srcs: [
|
||||
"golang.go",
|
||||
],
|
||||
testSrcs: [
|
||||
"golang_test.go",
|
||||
],
|
||||
pluginFor: ["soong_build"],
|
||||
}
|
Reference in New Issue
Block a user