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

Side by Side Diff: mojo/edk/system/BUILD.gn

Issue 2083893002: Move ChromeOS/Android checking for legacy protocol to build files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | mojo/edk/system/channel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/nacl/config.gni") 5 import("//build/config/nacl/config.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 import("../../../mojo/public/tools/bindings/mojom.gni") 7 import("../../../mojo/public/tools/bindings/mojom.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/config.gni") 10 import("//build/config/android/config.gni")
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 if (is_nacl && !is_nacl_nonsfi) { 109 if (is_nacl && !is_nacl_nonsfi) {
110 sources -= [ 110 sources -= [
111 "broker_host_posix.cc", 111 "broker_host_posix.cc",
112 "broker_posix.cc", 112 "broker_posix.cc",
113 "channel_posix.cc", 113 "channel_posix.cc",
114 "remote_message_pipe_bootstrap.cc", 114 "remote_message_pipe_bootstrap.cc",
115 ] 115 ]
116 } 116 }
117 117
118 # Use target_os == "chromeos" instead of is_chromeos because we need to
119 # build NaCl targets (i.e. IRT) for ChromeOS the same as the rest of ChromeOS.
120 if (is_android || target_os == "chromeos") {
121 defines += [ "MOJO_EDK_LEGACY_PROTOCOL" ]
122 }
123
118 allow_circular_includes_from = [ "//mojo/edk/embedder" ] 124 allow_circular_includes_from = [ "//mojo/edk/embedder" ]
119 } 125 }
120 126
121 group("tests") { 127 group("tests") {
122 testonly = true 128 testonly = true
123 deps = [ 129 deps = [
124 ":mojo_system_unittests", 130 ":mojo_system_unittests",
125 ] 131 ]
126 132
127 if (!is_ios) { 133 if (!is_ios) {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 ":test_utils", 207 ":test_utils",
202 "//base", 208 "//base",
203 "//base/test:test_support", 209 "//base/test:test_support",
204 "//mojo/edk/system", 210 "//mojo/edk/system",
205 "//mojo/edk/test:run_all_perftests", 211 "//mojo/edk/test:run_all_perftests",
206 "//mojo/edk/test:test_support", 212 "//mojo/edk/test:test_support",
207 "//testing/gtest", 213 "//testing/gtest",
208 ] 214 ]
209 } 215 }
210 } 216 }
OLDNEW
« no previous file with comments | « no previous file | mojo/edk/system/channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698