aboutsummaryrefslogtreecommitdiffstats
path: root/java/sdk_library.go
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2019-02-11 15:55:17 +0000
committerPaul Duffin <paulduffin@google.com>2019-02-13 10:11:54 +0000
commit1151247c2926d9e916099cf121fa6b50cbe23c6a (patch)
treed789a8c49df3b541a59fbafd8ce285f3971c246a /java/sdk_library.go
parent99e4a50202a31fbef985cd14cfaf748a1eb29cf8 (diff)
downloadandroid_build_soong-1151247c2926d9e916099cf121fa6b50cbe23c6a.tar.gz
android_build_soong-1151247c2926d9e916099cf121fa6b50cbe23c6a.tar.bz2
android_build_soong-1151247c2926d9e916099cf121fa6b50cbe23c6a.zip
Support $(location...) in droiddoc_options
Adds droiddoc_option_files property which are passed through to droiddoc's arg_files property. Bug: 124220029 Test: make checkbuild Change-Id: I6e98752cebeaac5a8779e04e6c804763c177e354
Diffstat (limited to 'java/sdk_library.go')
-rw-r--r--java/sdk_library.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/java/sdk_library.go b/java/sdk_library.go
index 85ce533c..3623e7cd 100644
--- a/java/sdk_library.go
+++ b/java/sdk_library.go
@@ -100,7 +100,13 @@ type sdkLibraryProperties struct {
// list of package names that must be hidden from the API
Hidden_api_packages []string
- // Additional droiddoc options
+ // local files that are used within user customized droiddoc options.
+ Droiddoc_option_files []string
+
+ // additional droiddoc options
+ // Available variables for substitution:
+ //
+ // $(location <label>): the path to the droiddoc_option_files with name <label>
Droiddoc_options []string
// the java library (in classpath) for documentation that provides java srcs and srcjars.
@@ -434,6 +440,7 @@ func (module *sdkLibrary) createDocs(mctx android.TopDownMutatorContext, apiScop
Srcs_lib_whitelist_dirs []string
Srcs_lib_whitelist_pkgs []string
Libs []string
+ Arg_files []string
Args *string
Api_tag_name *string
Api_filename *string
@@ -481,6 +488,7 @@ func (module *sdkLibrary) createDocs(mctx android.TopDownMutatorContext, apiScop
case apiScopeTest:
droiddocArgs = droiddocArgs + " -showAnnotation android.annotation.TestApi"
}
+ props.Arg_files = module.sdkLibraryProperties.Droiddoc_option_files
props.Args = proptools.StringPtr(droiddocArgs)
// List of APIs identified from the provided source files are created. They are later