Index: third_party/ijar/BUILD.gn |
diff --git a/third_party/ijar/BUILD.gn b/third_party/ijar/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7fbb45c9755d54ec5b96d7f350139c6d4c48d144 |
--- /dev/null |
+++ b/third_party/ijar/BUILD.gn |
@@ -0,0 +1,27 @@ |
+# Copyright 2015 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. |
+ |
+# A tool that removes all non-interface-specific parts from a .jar file. |
+ |
+if (current_toolchain == host_toolchain) { |
+ executable("ijar") { |
+ sources = [ |
+ "classfile.cc", |
+ "common.h", |
+ "ijar.cc", |
+ "zip.cc", |
+ "zip.h", |
+ ] |
+ |
+ # Always build release since this is a build tool. |
+ if (is_debug) { |
+ configs -= [ "//build/config:debug" ] |
+ configs += [ "//build/config:release" ] |
+ } |
+ ldflags = [ "-lz" ] |
+ deps = [ |
+ "//build/config/sanitizers:deps", |
+ ] |
+ } |
+} |