diff options
author | Colin Cross <ccross@android.com> | 2015-03-30 17:20:39 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2015-04-03 16:24:44 -0700 |
commit | 2fe6687847a137c6897b19afefa187a38a2a8b6e (patch) | |
tree | d710173c69915e0f8a1d22712b746e9f839a2c6c /androidmk/cmd | |
parent | 35cec12a11e1b279960f463f53a74b5407de056a (diff) | |
download | build_soong-2fe6687847a137c6897b19afefa187a38a2a8b6e.tar.gz build_soong-2fe6687847a137c6897b19afefa187a38a2a8b6e.tar.bz2 build_soong-2fe6687847a137c6897b19afefa187a38a2a8b6e.zip |
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
Diffstat (limited to 'androidmk/cmd')
-rw-r--r-- | androidmk/cmd/androidmk/android.go | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/androidmk/cmd/androidmk/android.go b/androidmk/cmd/androidmk/android.go index 4f2fca1a..9de0197f 100644 --- a/androidmk/cmd/androidmk/android.go +++ b/androidmk/cmd/androidmk/android.go @@ -18,6 +18,7 @@ var stringProperties = map[string]string{ "LOCAL_ARM_MODE_HACK": "instruction_set", "LOCAL_SDK_VERSION": "sdk_version", "LOCAL_NDK_STL_VARIANT": "stl", + "LOCAL_JAR_MANIFEST": "manifest", } var listProperties = map[string]string{ @@ -38,6 +39,12 @@ var listProperties = map[string]string{ "LOCAL_MODULE_TAGS": "tags", "LOCAL_LDLIBS": "host_ldlibs", "LOCAL_CLANG_CFLAGS": "clang_cflags", + + "LOCAL_JAVA_RESOURCE_DIRS": "resource_dirs", + "LOCAL_JAVACFLAGS": "javacflags", + "LOCAL_DX_FLAGS": "dxflags", + "LOCAL_JAVA_LIBRARIES": "java_libs", + "LOCAL_STATIC_JAVA_LIBRARIES": "java_static_libs", } var boolProperties = map[string]string{ @@ -49,6 +56,8 @@ var boolProperties = map[string]string{ "LOCAL_NO_CRT": "nocrt", "LOCAL_ALLOW_UNDEFINED_SYMBOLS": "allow_undefined_symbols", "LOCAL_RTTI_FLAG": "rtti", + + "LOCAL_NO_STANDARD_LIBRARIES": "no_standard_libraries", } var deleteProperties = map[string]struct{}{ @@ -103,7 +112,13 @@ var moduleTypes = map[string]string{ "BUILD_HOST_EXECUTABLE": "cc_binary_host", "BUILD_NATIVE_TEST": "cc_test", "BUILD_HOST_NATIVE_TEST": "cc_test_host", - "BUILD_PREBUILT": "prebuilt", + + "BUILD_JAVA_LIBRARY": "java_library", + "BUILD_STATIC_JAVA_LIBRARY": "java_library_static", + "BUILD_HOST_JAVA_LIBRARY": "java_library_host", + "BUILD_HOST_DALVIK_JAVA_LIBRARY": "java_library_host_dalvik", + + "BUILD_PREBUILT": "prebuilt", } var soongModuleTypes = map[string]bool{} |