diff options
author | Colin Cross <ccross@android.com> | 2019-03-01 13:46:24 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2019-03-05 23:09:45 +0000 |
commit | 3d7c9827d5c9b34fbeabc74f90d36d5288732e8c (patch) | |
tree | 71b7845e2884a007aeb6df188a532e480a2ac7b9 /java/java.go | |
parent | 5d3e2b70b868a5cd418a6d66b243b0d3aaabc62b (diff) |
Add modules for converting java modules between host and device
java_device_for_host and java_host_for_device allow treating a
device module as a host module and vice versa. They will be useful
for converting layoutlib and robolectric to Soong, as these modules
run device java code on the host.
Bug: 117920228
Test: device_host_converter_test.go
Change-Id: Ia9a371fb41a97bc16338097f3ce8b40099744167
Diffstat (limited to 'java/java.go')
-rw-r--r-- | java/java.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/java.go b/java/java.go index 52d97c9e1..0e1ae2390 100644 --- a/java/java.go +++ b/java/java.go @@ -44,6 +44,8 @@ func init() { android.RegisterModuleType("java_test_host", TestHostFactory) android.RegisterModuleType("java_import", ImportFactory) android.RegisterModuleType("java_import_host", ImportFactoryHost) + android.RegisterModuleType("java_device_for_host", DeviceForHostFactory) + android.RegisterModuleType("java_host_for_device", HostForDeviceFactory) android.RegisterSingletonType("logtags", LogtagsSingleton) } |