cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / third_party / errorprone / errorprone.gyp
blob90235feb0e2582104a35629035cb22c3512b5243
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.
6   'variables': {
7     'errorprone_script_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone',
8   },
9   'targets': [
10     {
11       # GN: //third_party/errorprone:error_prone_annotation_java
12       'target_name': 'error_prone_annotation_jar',
13       'type': 'none',
14       'variables': {
15         'jar_path': 'lib/error_prone_annotation-2.0.1.jar',
16       },
17       'includes': [
18         '../../build/host_prebuilt_jar.gypi',
19       ]
20     },
21     {
22       # GN: //third_party/errorprone:error_prone_annotations_java
23       'target_name': 'error_prone_annotations_jar',
24       'type': 'none',
25       'variables': {
26         'jar_path': 'lib/error_prone_annotations-2.0.1.jar',
27       },
28       'includes': [
29         '../../build/host_prebuilt_jar.gypi',
30       ]
31     },
32     {
33       # GN: //third_party/errorprone:javacutil_java
34       'target_name': 'javacutil_jar',
35       'type': 'none',
36       'variables': {
37         'jar_path': 'lib/javacutil-1.8.10.jar',
38       },
39       'includes': [
40         '../../build/host_prebuilt_jar.gypi',
41       ]
42     },
43     {
44       # GN: //third_party/errorprone:dataflow_java
45       'target_name': 'dataflow_jar',
46       'type': 'none',
47       'variables': {
48         'jar_path': 'lib/dataflow-1.8.10.jar',
49       },
50       'includes': [
51         '../../build/host_prebuilt_jar.gypi',
52       ]
53     },
54     {
55       # GN: //third_party/errorprone:chromium_errorprone
56       'target_name': 'chromium_errorprone',
57       'type': 'none',
58       'variables': {
59         'jar_path': 'lib/error_prone_core-2.0.1.jar',
60       },
61       'dependencies': [
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',
66         'javacutil_jar',
67         'dataflow_jar',
68       ],
69       'includes': [
70         '../../build/host_prebuilt_jar.gypi',
71       ],
72       'actions': [
73         {
74           'action_name': 'create_errorprone_binary_script',
75           'inputs': [
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.
79             '<(jar_path)',
80           ],
81           'outputs': [
82             '<(errorprone_script_path)',
83           ],
84           'action': [
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',
90           ],
91         },
92       ],
93     },
94     {
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',
98       'type': 'none',
99       'actions': [
100         {
101           'action_name': 'require_errorprone',
102           'message': 'Making sure errorprone has been built.',
103           'variables': {
104             'required_file': '<(PRODUCT_DIR)/bin.java/errorprone.required',
105           },
106           'inputs': [
107             '<(errorprone_script_path)',
108           ],
109           'outputs': [
110             '<(required_file)',
111           ],
112           'action': [
113             'python', '../../build/android/gyp/touch.py', '<(required_file)',
114           ],
115         },
116       ],
117     },
118   ],