1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package(default_visibility = ["//visibility:public"])
java_import(
name = "all_android_tools",
jars = ["all_android_tools_deploy.jar"],
)
java_binary(
name = "ResourceProcessorBusyBox",
data = select({
"//src/conditions:windows": ["//src/main/native/windows:windows_jni.dll"],
"//conditions:default": [],
}),
main_class = "com.google.devtools.build.android.ResourceProcessorBusyBox",
runtime_deps = [
":all_android_tools",
],
)
java_binary(
name = "ZipFilterAction",
# Memory consumption of SingleJar is about 250 bytes per entry in the output file. Unfortunately,
# the JVM tends to kill the process with an OOM long before we're at the limit. In the most
# recent example, 400 MB of memory was enough for about 500,000 entries.
jvm_flags = ["-Xmx1600m"],
main_class = "com.google.devtools.build.android.ZipFilterAction",
runtime_deps = [
":all_android_tools"
],
)
|