Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Unified Diff: third_party/errorprone/errorprone.gyp

Issue 1136573002: Use the Errorprone Compiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Full Sync and Update Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/errorprone/errorprone.gyp
diff --git a/third_party/errorprone/errorprone.gyp b/third_party/errorprone/errorprone.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..6a1c5db7e73149cb99197526d5d7bbae58163f03
--- /dev/null
+++ b/third_party/errorprone/errorprone.gyp
@@ -0,0 +1,58 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'targets': [
+ {
+ # GN: //third_party/errorprone:errorprone_java
+ 'target_name': 'errorprone_java',
+ 'type': 'none',
+ 'variables': {
+ 'jar_path': 'lib/error_prone_core-1.1.2.jar',
+ },
+ 'includes': [
+ '../../build/host_prebuilt_jar.gypi',
+ ]
+ },
+ {
+ # GN: //third_party/errorprone:chromium_errorprone
+ 'target_name': 'chromium_errorprone',
+ 'type': 'none',
+ 'variables': {
+ 'src_paths': [
+ 'src/org/chromium/errorprone/ChromiumErrorProneCompiler.java',
+ ],
+ 'enable_errorprone': 0,
+ },
+ 'dependencies': [
+ '../../build/android/setup.gyp:sun_tools_java',
+ 'errorprone_java',
+ ],
+ 'includes': [
+ '../../build/host_jar.gypi',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'create_errorprone_binary_script',
+ 'inputs': [
+ '<(DEPTH)/build/android/gyp/create_java_binary_script.py',
+ '<(DEPTH)/build/android/gyp/util/build_utils.py',
+ # Ensure that the script is touched when the jar is.
+ '<(jar_path)',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/bin.java/chromium_errorprone'
+ ],
+ 'action': [
+ 'python', '<(DEPTH)/build/android/gyp/create_java_binary_script.py',
+ '--output', '<(PRODUCT_DIR)/bin.java/chromium_errorprone',
+ '--classpath=>@(input_jars_paths)',
+ '--jar-path=<(jar_path)',
+ '--main-class=org.chromium.errorprone.ChromiumErrorProneCompiler',
+ ],
+ },
+ ],
+ },
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698