diff options
| author | 2020-03-25 09:55:12 +0000 | |
|---|---|---|
| committer | 2020-03-25 09:55:12 +0000 | |
| commit | 5e9cf02ab545072ec68b593a3ea1589055fdd319 (patch) | |
| tree | b773f18a1f0102516b0abda4c060ca6292562e7f /java/java.go | |
| parent | eb4d9f2d68f85b380d74f7a0e870aaa45197ef44 (diff) | |
| parent | 19604de13e1a531dc0b3695932c6689ac629c0d4 (diff) | |
Merge "add aidl.export_include_dirs to java_import module type"
Diffstat (limited to 'java/java.go')
| -rw-r--r-- | java/java.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go index 22d14ecfe..390ee26ee 100644 --- a/java/java.go +++ b/java/java.go @@ -2338,6 +2338,12 @@ type ImportProperties struct { // set the name of the output Stem *string + + Aidl struct { + // directories that should be added as include directories for any aidl sources of modules + // that depend on this module, as well as to aidl for this module. + Export_include_dirs []string + } } type Import struct { @@ -2351,6 +2357,7 @@ type Import struct { combinedClasspathFile android.Path exportedSdkLibs []string + exportAidlIncludeDirs android.Paths } func (j *Import) sdkVersion() sdkSpec { @@ -2424,6 +2431,8 @@ func (j *Import) GenerateAndroidBuildActions(ctx android.ModuleContext) { ctx.InstallFile(android.PathForModuleInstall(ctx, "framework"), jarName, outputFile) } + + j.exportAidlIncludeDirs = android.PathsForModuleSrc(ctx, j.properties.Aidl.Export_include_dirs) } var _ Dependency = (*Import)(nil) @@ -2458,7 +2467,7 @@ func (j *Import) DexJar() android.Path { } func (j *Import) AidlIncludeDirs() android.Paths { - return nil + return j.exportAidlIncludeDirs } func (j *Import) ExportedSdkLibs() []string { |