aboutsummaryrefslogtreecommitdiffstats
path: root/androidmk
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-04-13 13:58:27 -0700
committerColin Cross <ccross@android.com>2015-04-20 14:12:30 -0700
commit30e076af2e4337b79be3ed0872a62578a2524929 (patch)
tree24e48f01b26023d3d7efdab3bf1aade57c1d4ae1 /androidmk
parentb7a63247ed0cd69266da52561edc0f620f6379cd (diff)
downloadbuild_soong-30e076af2e4337b79be3ed0872a62578a2524929.tar.gz
build_soong-30e076af2e4337b79be3ed0872a62578a2524929.tar.bz2
build_soong-30e076af2e4337b79be3ed0872a62578a2524929.zip
Add support for building android apps
Add support for running aapt to generate R.java and Manifest.java, compiling java into jar, adding resources to the jar to convert it into an apk, signing the apk, and zipaligning the apk. Change-Id: I7a73fef590d07f35b3d0b56a8571780c09bb10ae
Diffstat (limited to 'androidmk')
-rw-r--r--androidmk/cmd/androidmk/android.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/androidmk/cmd/androidmk/android.go b/androidmk/cmd/androidmk/android.go
index 3423d790..934ea0c8 100644
--- a/androidmk/cmd/androidmk/android.go
+++ b/androidmk/cmd/androidmk/android.go
@@ -22,6 +22,8 @@ var stringProperties = map[string]string{
"LOCAL_NDK_STL_VARIANT": "stl",
"LOCAL_JAR_MANIFEST": "manifest",
"LOCAL_JARJAR_RULES": "jarjar_rules",
+ "LOCAL_CERTIFICATE": "certificate",
+ "LOCAL_PACKAGE_NAME": "name",
}
var listProperties = map[string]string{
@@ -50,6 +52,8 @@ var listProperties = map[string]string{
"LOCAL_JAVA_LIBRARIES": "java_libs",
"LOCAL_STATIC_JAVA_LIBRARIES": "java_static_libs",
"LOCAL_AIDL_INCLUDES": "aidl_includes",
+ "LOCAL_AAPT_FLAGS": "aaptflags",
+ "LOCAL_PACKAGE_SPLITS": "package_splits",
}
var boolProperties = map[string]string{
@@ -63,6 +67,8 @@ var boolProperties = map[string]string{
"LOCAL_RTTI_FLAG": "rtti",
"LOCAL_NO_STANDARD_LIBRARIES": "no_standard_libraries",
+
+ "LOCAL_EXPORT_PACKAGE_RESOURCES": "export_package_resources",
}
var deleteProperties = map[string]struct{}{
@@ -136,6 +142,7 @@ var moduleTypes = map[string]string{
"BUILD_STATIC_JAVA_LIBRARY": "java_library_static",
"BUILD_HOST_JAVA_LIBRARY": "java_library_host",
"BUILD_HOST_DALVIK_JAVA_LIBRARY": "java_library_host_dalvik",
+ "BUILD_PACKAGE": "android_app",
"BUILD_PREBUILT": "prebuilt",
}