Support java libraries, binaries, and prebuilts

Add support for compiling java libraries (.jar files with
or without .dex), java binaries (.jar files with a wrapper
script to run them), and java prebuilts (for the SDK .jars)

Change-Id: Id624da64c92cf20c6d9577c6bb06e5b212af0d1b
This commit is contained in:
Colin Cross
2015-03-30 17:20:39 -07:00
parent 35cec12a11
commit 2fe6687847
11 changed files with 996 additions and 18 deletions

View File

@@ -28,6 +28,7 @@ import (
"android/soong/common"
"android/soong/config"
"android/soong/genrule"
"android/soong/java"
)
func main() {
@@ -61,6 +62,13 @@ func main() {
ctx.RegisterModuleType("art_cc_library", art.ArtCCLibraryFactory)
ctx.RegisterModuleType("art_cc_binary", art.ArtCCBinaryFactory)
ctx.RegisterModuleType("java_library", java.JavaLibraryFactory)
ctx.RegisterModuleType("java_library_static", java.JavaLibraryFactory)
ctx.RegisterModuleType("java_library_host", java.JavaLibraryHostFactory)
ctx.RegisterModuleType("java_binary", java.JavaBinaryFactory)
ctx.RegisterModuleType("java_binary_host", java.JavaBinaryHostFactory)
ctx.RegisterModuleType("prebuilt_java_library", java.JavaPrebuiltFactory)
// Mutators
ctx.RegisterEarlyMutator("arch", common.ArchMutator)
ctx.RegisterEarlyMutator("link", cc.LinkageMutator)