Add ICU message format support
[chromium-blink-merge.git] / third_party / errorprone / errorprone.gyp
blob6a1c5db7e73149cb99197526d5d7bbae58163f03
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   'targets': [
7     {
8       # GN: //third_party/errorprone:errorprone_java
9       'target_name': 'errorprone_java',
10       'type': 'none',
11       'variables': {
12         'jar_path': 'lib/error_prone_core-1.1.2.jar',
13       },
14       'includes': [
15         '../../build/host_prebuilt_jar.gypi',
16       ]
17     },
18     {
19       # GN: //third_party/errorprone:chromium_errorprone
20       'target_name': 'chromium_errorprone',
21       'type': 'none',
22       'variables': {
23         'src_paths': [
24           'src/org/chromium/errorprone/ChromiumErrorProneCompiler.java',
25         ],
26         'enable_errorprone': 0,
27       },
28       'dependencies': [
29         '../../build/android/setup.gyp:sun_tools_java',
30         'errorprone_java',
31       ],
32       'includes': [
33         '../../build/host_jar.gypi',
34       ],
35       'actions': [
36         {
37           'action_name': 'create_errorprone_binary_script',
38           'inputs': [
39             '<(DEPTH)/build/android/gyp/create_java_binary_script.py',
40             '<(DEPTH)/build/android/gyp/util/build_utils.py',
41             # Ensure that the script is touched when the jar is.
42             '<(jar_path)',
43           ],
44           'outputs': [
45             '<(PRODUCT_DIR)/bin.java/chromium_errorprone'
46           ],
47           'action': [
48             'python', '<(DEPTH)/build/android/gyp/create_java_binary_script.py',
49             '--output', '<(PRODUCT_DIR)/bin.java/chromium_errorprone',
50             '--classpath=>@(input_jars_paths)',
51             '--jar-path=<(jar_path)',
52             '--main-class=org.chromium.errorprone.ChromiumErrorProneCompiler',
53           ],
54         },
55       ],
56     },
57   ],