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

Unified Diff: tools/android/forwarder2/BUILD.gn

Issue 684133002: [Android] Fix gn build for instrumentation tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Follow review Created 6 years, 2 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
« no previous file with comments | « tools/android/common/net.cc ('k') | tools/android/forwarder2/daemon.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/forwarder2/BUILD.gn
diff --git a/tools/android/forwarder2/BUILD.gn b/tools/android/forwarder2/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..87e6abf72262c4b21daf408cceb3013fe154d292
--- /dev/null
+++ b/tools/android/forwarder2/BUILD.gn
@@ -0,0 +1,94 @@
+# 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.
+
+# GYP: //tools/android/forwarder2/forwarder.gyp:forwarder2
+group("forwarder2") {
+ datadeps = [
+ ":host_forwarder($host_toolchain)",
+ ":host_forwarder_copy($host_toolchain)",
+ ":device_forwarder($default_toolchain)",
+ ":device_forwarder_prepare_dist($default_toolchain)",
+ ]
+}
+
+if (current_toolchain == default_toolchain) {
+ import("//build/config/android/rules.gni")
+
+ # GYP: //tools/android/forwarder2/forwarder.gyp:device_forwarder
+ executable("device_forwarder") {
+ sources = [
+ "command.cc",
+ "command.h",
+ "common.cc",
+ "common.h",
+ "daemon.cc",
+ "daemon.h",
+ "device_controller.cc",
+ "device_controller.h",
+ "device_forwarder_main.cc",
+ "device_listener.cc",
+ "device_listener.h",
+ "forwarder.cc",
+ "forwarder.h",
+ "forwarders_manager.cc",
+ "forwarders_manager.h",
+ "pipe_notifier.cc",
+ "pipe_notifier.h",
+ "self_deleter_helper.h",
+ "socket.cc",
+ "socket.h",
+ "util.h",
+ ]
+ deps = [
+ "//base",
+ "//tools/android/common",
+ ]
+ datadeps = [
+ "//build/android/pylib/device/commands",
+ ]
+ }
+
+ # GYP: //tools/android/forwarder2/forwarder.gyp:forwarder2
+ create_native_executable_dist("device_forwarder_prepare_dist") {
+ dist_dir = "$root_build_dir/forwarder_dist"
+ binary = "$root_build_dir/exe.stripped/device_forwarder"
+ }
+}
+
+if (current_toolchain != default_toolchain) {
+ # GYP: //tools/android/forwarder2/forwarder.gyp:host_forwarder
+ executable("host_forwarder") {
+ sources = [
+ "command.cc",
+ "command.h",
+ "common.cc",
+ "common.h",
+ "daemon.cc",
+ "daemon.h",
+ "forwarder.cc",
+ "forwarder.h",
+ "forwarders_manager.cc",
+ "forwarders_manager.h",
+ "host_controller.cc",
+ "host_controller.h",
+ "host_forwarder_main.cc",
+ "pipe_notifier.cc",
+ "pipe_notifier.h",
+ "self_deleter_helper.h",
+ "socket.cc",
+ "socket.h",
+ "util.h",
+ ]
+ deps = [
+ "//base",
+ "//tools/android/common",
+ ]
+ }
+
+ # GYP: //tools/android/forwarder2/forwarder.gyp:forwarder2
+ copy("host_forwarder_copy") {
+ sources = ["$root_out_dir/host_forwarder"]
+ outputs = ["$root_build_dir/host_forwarder"]
+ }
+}
« no previous file with comments | « tools/android/common/net.cc ('k') | tools/android/forwarder2/daemon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698