aboutsummaryrefslogtreecommitdiffstats
path: root/java/app.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-05-11 13:39:40 -0700
committerColin Cross <ccross@android.com>2015-06-29 10:36:02 -0700
commit7d5136f03350ca18dd8e3b9b34725973f2aa26a0 (patch)
treea23fe8c9249d445627fcf8c89c35945ecd0b7438 /java/app.go
parent0bc42685eedb2a520fd3e9b2d950ba24e521c0d2 (diff)
downloadbuild_soong-7d5136f03350ca18dd8e3b9b34725973f2aa26a0.tar.gz
build_soong-7d5136f03350ca18dd8e3b9b34725973f2aa26a0.tar.bz2
build_soong-7d5136f03350ca18dd8e3b9b34725973f2aa26a0.zip
Improve property comments for docs
Improve the comments associated with properties to work better with Blueprint's auto-documenting feature. Make all properties structs into named types so that thet types can be found using reflection and cross-referenced to the source code to auto-extract docs. Remove the leading <property>: text from properties, the documentation will include the lowercased name of the property. Add filter tags to the nested arch properties. Change-Id: I4ef5db86358886fe61456c24eb2dbe6f7b876115
Diffstat (limited to 'java/app.go')
-rw-r--r--java/app.go46
1 files changed, 24 insertions, 22 deletions
diff --git a/java/app.go b/java/app.go
index 5f153cf4..e6851b5c 100644
--- a/java/app.go
+++ b/java/app.go
@@ -31,35 +31,37 @@ import (
// AndroidManifest.xml merging
// package splits
-type AndroidApp struct {
- javaBase
+type androidAppProperties struct {
+ // path to a certificate, or the name of a certificate in the default
+ // certificate directory, or blank to use the default product certificate
+ Certificate string
- appProperties struct {
- // certificate: path to a certificate, or the name of a certificate in the default
- // certificate directory, or blank to use the default product certificate
- Certificate string
+ // paths to extra certificates to sign the apk with
+ Additional_certificates []string
- // additional_certificates: paths to extra certificates to sign the apk with
- Additional_certificates []string
+ // If set, create package-export.apk, which other packages can
+ // use to get PRODUCT-agnostic resource data like IDs and type definitions.
+ Export_package_resources bool
- // export_package_resources: If set, create package-export.apk, which other packages can
- // use to get PRODUCT-agnostic resource data like IDs and type definitions.
- Export_package_resources bool
+ // flags passed to aapt when creating the apk
+ Aaptflags []string
- // aaptflags: flags passed to aapt when creating the apk
- Aaptflags []string
+ // list of resource labels to generate individual resource packages
+ Package_splits []string
- // package_splits: list of resource labels to generate individual resource packages
- Package_splits []string
+ // list of directories relative to the Blueprints file containing assets.
+ // Defaults to "assets"
+ Asset_dirs []string
- // asset_dirs: list of directories relative to the Blueprints file containing assets.
- // Defaults to "assets"
- Asset_dirs []string
+ // list of directories relative to the Blueprints file containing
+ // Java resources
+ Android_resource_dirs []string
+}
- // android_resource_dirs: list of directories relative to the Blueprints file containing
- // Java resources
- Android_resource_dirs []string
- }
+type AndroidApp struct {
+ javaBase
+
+ appProperties androidAppProperties
aaptJavaFileList string
exportPackage string