summaryrefslogtreecommitdiff
path: root/java/system_modules.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-04-23 21:20:20 +0100
committer Paul Duffin <paulduffin@google.com> 2021-04-24 22:30:26 +0100
commita720811c3813afb192ed69be0c38fac837514698 (patch)
tree34e4a3330b750650a397d574d28b54384adb1fe9 /java/system_modules.go
parent2d1bb89fe3a5ce973dfd7154b36e03289280690c (diff)
Allow exporting of sdk members to be done per tag
Previously, every module added to an sdk directly through one of the SdkMemberType specific properties, e.g. java_libs, was exported and every module added automatically via a transitive dependencies was not exported. This change allows that behavior to be customized per tag. Bug: 186290299 Test: m art-module-sdk - verify that this change does not affect its contents. Change-Id: I563b5bcd823e61c23cdb706cfcbb13337963d550
Diffstat (limited to 'java/system_modules.go')
-rw-r--r--java/system_modules.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/system_modules.go b/java/system_modules.go
index 320a2bbbf..a09778cd0 100644
--- a/java/system_modules.go
+++ b/java/system_modules.go
@@ -77,8 +77,9 @@ var (
"classpath", "outDir", "workDir")
// Dependency tag that causes the added dependencies to be added as java_header_libs
- // to the sdk/module_exports/snapshot.
- systemModulesLibsTag = android.DependencyTagForSdkMemberType(javaHeaderLibsSdkMemberType)
+ // to the sdk/module_exports/snapshot. Dependencies that are added automatically via this tag are
+ // not automatically exported.
+ systemModulesLibsTag = android.DependencyTagForSdkMemberType(javaHeaderLibsSdkMemberType, false)
)
func TransformJarsToSystemModules(ctx android.ModuleContext, jars android.Paths) (android.Path, android.Paths) {