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

Unified Diff: remoting/BUILD.gn

Issue 1039083004: Add remaining remoting targets for the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@content_browsertests
Patch Set: disable remoting_host on mac, win Created 5 years, 9 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 | « build/gn_migration.gypi ('k') | remoting/host/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/BUILD.gn
diff --git a/remoting/BUILD.gn b/remoting/BUILD.gn
index 6c5ffac5b2d788a6f6968c571a40bab4913205d3..70aafa01157bd26389fa194f1b24ebccf9c8bca7 100644
--- a/remoting/BUILD.gn
+++ b/remoting/BUILD.gn
@@ -5,10 +5,9 @@
import("//build/config/features.gni")
import("//build/config/ui.gni")
import("//remoting/remoting_version.gni")
+import("//remoting/remoting_host.gni")
import("//testing/test.gni")
-enable_remoting_host = is_win || is_mac || is_chromeos || use_x11
-
# Various remoting targets need this version definition.
config("version") {
defines = [ "VERSION=$version_full" ]
@@ -136,7 +135,83 @@ if (!is_win && !is_mac) {
]
}
}
+
+ if (enable_remoting_host) {
+ test("remoting_perftests") {
+ sources = [
+ "codec/codec_test.cc",
+ "codec/codec_test.h",
+ "codec/video_encoder_vpx_perftest.cc",
+ "test/protocol_perftest.cc",
+ ]
+
+ configs += [ ":version" ]
+
+ deps = [
+ ":test_support",
+ "//base",
+ "//base/test:run_all_unittests",
+ "//base/test:test_support",
+ "//net:test_support",
+ "//remoting/base",
+ "//testing/gtest",
+ "//third_party/webrtc/modules/desktop_capture",
+ "//third_party/libjingle",
+ ]
+
+ if (enable_webrtc) {
+ deps += [ "//third_party/libjingle:libjingle_webrtc" ]
+ }
+ }
+ }
} else {
group("remoting_unittests") {
}
}
+
+if (enable_pnacl) {
+ group("remoting_key_tester") {
+ deps = [
+ ":remoting_key_tester_copies",
+ ]
+ }
+
+ copy("remoting_key_tester_copies") {
+ sources = [
+ "tools/javascript_key_tester/background.js",
+ "tools/javascript_key_tester/chord_tracker.js",
+ "tools/javascript_key_tester/event_listeners.js",
+ "tools/javascript_key_tester/icon_128.png",
+ "tools/javascript_key_tester/main.css",
+ "tools/javascript_key_tester/main.html",
+ "tools/javascript_key_tester/main.js",
+ "tools/javascript_key_tester/manifest.json",
+ "tools/javascript_key_tester/pnacl/remoting_key_tester.nmf",
+
+ # TODO(GYP): crbug.com/471924 "$target_out_dir/remoting_key_tester_newlib.pexe",
+ ]
+
+ outputs = [
+ "$target_out_dir/remoting/key_tester/{{source_file_part}}",
+ ]
+
+ deps = [
+ ":remoting_key_tester_jscompile",
+ ":remoting_key_tester_pexe",
+ ]
+ }
+
+ group("remoting_key_tester_jscompile") {
+ # TODO(GYP): crbug.com/471926 add support for run_jscompile=true.
+ run_jscompile = false
+ if (run_jscompile) {
+ }
+ }
+
+ group("remoting_key_tester_pexe") {
+ # TODO(GYP): crbug.com/471924 implement me when we have a pnacl toolchain.
+ #sources = [
+ # "tools/javascript_key_tester/pnacl/remoting_key_tester.cc",
+ #]
+ }
+}
« no previous file with comments | « build/gn_migration.gypi ('k') | remoting/host/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698