aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/soong_build
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-04-13 13:52:22 -0700
committerColin Cross <ccross@android.com>2015-04-13 17:31:25 -0700
commitaa8630ba0959840fa159520c3f618ba4f3c4feda (patch)
tree4915451baf6669d1a1f76e29884ed40331729bc8 /cmd/soong_build
parentf05fe97df6bd0fb37c0f7338365fa8782fa9c725 (diff)
downloadbuild_soong-aa8630ba0959840fa159520c3f618ba4f3c4feda.tar.gz
build_soong-aa8630ba0959840fa159520c3f618ba4f3c4feda.tar.bz2
build_soong-aa8630ba0959840fa159520c3f618ba4f3c4feda.zip
Move SDK prebuilts to new prebuilt_sdk module type
SDK prebuilts need to be treated differently than other prebuilts. They are used like a normal Java prebuilts when compiling java files, but they are also used as aapt includes when compiling apps, and they provide prebuilt aidl files when compiling aidl sources. Create a new module type so dependers can determine what kind of dependency they are. Change-Id: If426da63cfadcb4b14abda58c7b346554912a07a
Diffstat (limited to 'cmd/soong_build')
-rw-r--r--cmd/soong_build/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/soong_build/main.go b/cmd/soong_build/main.go
index 83205ba4..d17fbed5 100644
--- a/cmd/soong_build/main.go
+++ b/cmd/soong_build/main.go
@@ -67,6 +67,7 @@ func main() {
ctx.RegisterModuleType("java_binary", java.JavaBinaryFactory)
ctx.RegisterModuleType("java_binary_host", java.JavaBinaryHostFactory)
ctx.RegisterModuleType("prebuilt_java_library", java.JavaPrebuiltFactory)
+ ctx.RegisterModuleType("prebuilt_sdk", java.SdkPrebuiltFactory)
// Mutators
ctx.RegisterEarlyMutator("arch", common.ArchMutator)