1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 'errorprone_script_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone',
11 # GN: //third_party/errorprone:error_prone_annotation_java
12 'target_name': 'error_prone_annotation_jar',
15 'jar_path': 'lib/error_prone_annotation-2.0.1.jar',
18 '../../build/host_prebuilt_jar.gypi',
22 # GN: //third_party/errorprone:error_prone_annotations_java
23 'target_name': 'error_prone_annotations_jar',
26 'jar_path': 'lib/error_prone_annotations-2.0.1.jar',
29 '../../build/host_prebuilt_jar.gypi',
33 # GN: //third_party/errorprone:javacutil_java
34 'target_name': 'javacutil_jar',
37 'jar_path': 'lib/javacutil-1.8.10.jar',
40 '../../build/host_prebuilt_jar.gypi',
44 # GN: //third_party/errorprone:dataflow_java
45 'target_name': 'dataflow_jar',
48 'jar_path': 'lib/dataflow-1.8.10.jar',
51 '../../build/host_prebuilt_jar.gypi',
55 # GN: //third_party/errorprone:chromium_errorprone
56 'target_name': 'chromium_errorprone',
59 'jar_path': 'lib/error_prone_core-2.0.1.jar',
62 '../../build/android/setup.gyp:sun_tools_java',
63 '../../third_party/findbugs/findbugs.gyp:format_string_jar',
64 'error_prone_annotation_jar',
65 'error_prone_annotations_jar',
70 '../../build/host_prebuilt_jar.gypi',
74 'action_name': 'create_errorprone_binary_script',
76 '<(DEPTH)/build/android/gyp/create_java_binary_script.py',
77 '<(DEPTH)/build/android/gyp/util/build_utils.py',
78 # Ensure that the script is touched when the jar is.
82 '<(errorprone_script_path)',
85 'python', '<(DEPTH)/build/android/gyp/create_java_binary_script.py',
86 '--output', '<(PRODUCT_DIR)/bin.java/chromium_errorprone',
87 '--jar-path=<(jar_path)',
88 '--classpath=>@(input_jars_paths)',
89 '--main-class=com.google.errorprone.ErrorProneCompiler',
95 # This emulates gn's datadeps fields. We don't want the errorprone jars
96 # to be added to the classpaths of targets that depend on errorprone.
97 'target_name': 'require_errorprone',
101 'action_name': 'require_errorprone',
102 'message': 'Making sure errorprone has been built.',
104 'required_file': '<(PRODUCT_DIR)/bin.java/errorprone.required',
107 '<(errorprone_script_path)',
113 'python', '../../build/android/gyp/touch.py', '<(required_file)',