Index: tools/android/forwarder/BUILD.gn |
diff --git a/tools/android/forwarder/BUILD.gn b/tools/android/forwarder/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9cc99b4a2bcca5407e7625c57d5b5bcbbd622028 |
--- /dev/null |
+++ b/tools/android/forwarder/BUILD.gn |
@@ -0,0 +1,24 @@ |
+# Copyright 2016 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. |
+ |
+import("//build/symlink.gni") |
+ |
+if (current_toolchain == host_toolchain) { |
+ # GYP: //tools/android/forwarder/forwarder.gyp:forwarder |
+ executable("forwarder") { |
+ sources = [ |
+ "forwarder.cc", |
+ ] |
+ deps = [ |
+ "//base", |
+ "//build/config/sanitizers:deps", |
+ "//tools/android/common", |
+ ] |
+ } |
+} else { |
+ # Create a symlink from root_build_dir -> clang_x64/forwarder. |
+ binary_symlink("forwarder") { |
+ binary_label = ":$target_name($host_toolchain)" |
+ } |
+} |