OLD | NEW |
---|---|
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 | 5 |
6 import("//build/config/features.gni") | |
6 import("//mojo/public/tools/bindings/mojom.gni") | 7 import("//mojo/public/tools/bindings/mojom.gni") |
7 import("//testing/test.gni") | 8 import("//testing/test.gni") |
8 | 9 |
9 gypi_values = exec_script("//build/gypi_to_gn.py", | 10 gypi_values = exec_script("//build/gypi_to_gn.py", |
10 [ rebase_path("media_router.gypi") ], | 11 [ rebase_path("media_router.gypi") ], |
11 "scope", | 12 "scope", |
12 [ "media_router.gypi" ]) | 13 [ "media_router.gypi" ]) |
13 | 14 |
14 static_library("router") { | 15 static_library("router") { |
15 deps = [ | 16 deps = [ |
16 "//base", | 17 "//base", |
17 "//chrome/common:constants", | 18 "//chrome/common:constants", |
18 "//components/keyed_service/content", | 19 "//components/keyed_service/content", |
19 "//components/keyed_service/core", | 20 "//components/keyed_service/core", |
20 "//content/public/browser", | 21 "//content/public/browser", |
21 "//url", | 22 "//url", |
22 ] | 23 ] |
23 sources = rebase_path(gypi_values.media_router_sources, | 24 sources = rebase_path(gypi_values.media_router_sources, |
24 ".", | 25 ".", |
25 "//chrome/browser/media/router") | 26 "//chrome/browser/media/router") |
26 if (!is_android) { | 27 if (!is_android) { |
27 deps += [ | 28 deps += [ |
28 ":mojo_bindings", | 29 ":mojo_bindings", |
29 "//extensions/browser", | |
30 "//mojo/public/cpp/bindings", | 30 "//mojo/public/cpp/bindings", |
31 ] | 31 ] |
32 if (enable_extensions) { | |
mark a. foltz
2016/05/19 20:00:39
Is there now a valid build target with !is_android
asaka
2016/05/20 05:59:41
Hi!
I think chromecast may end up as that with th
mark a. foltz
2016/05/20 17:48:21
I think this works because //chromecast is prevent
asaka
2016/05/24 10:57:31
Reverting this change only will not build:
$ gn g
| |
33 deps += [ "//extensions/browser" ] | |
34 } | |
32 sources += rebase_path(gypi_values.media_router_non_android_sources, | 35 sources += rebase_path(gypi_values.media_router_non_android_sources, |
33 ".", | 36 ".", |
34 "//chrome/browser/media/router") | 37 "//chrome/browser/media/router") |
35 } | 38 } |
36 } | 39 } |
37 | 40 |
38 mojom("mojo_bindings") { | 41 mojom("mojo_bindings") { |
39 sources = [ | 42 sources = [ |
40 "mojo/media_router.mojom", | 43 "mojo/media_router.mojom", |
41 ] | 44 ] |
42 } | 45 } |
43 | 46 |
44 source_set("test_support") { | 47 source_set("test_support") { |
45 testonly = true | 48 testonly = true |
46 deps = [ | 49 deps = [ |
47 ":router", | 50 ":router", |
48 "//chrome/test:test_support", | 51 "//chrome/test:test_support", |
49 "//testing/gmock", | 52 "//testing/gmock", |
50 ] | 53 ] |
51 sources = rebase_path(gypi_values.media_router_test_support_sources, | 54 sources = rebase_path(gypi_values.media_router_test_support_sources, |
52 ".", | 55 ".", |
53 "//chrome/browser/media/router") | 56 "//chrome/browser/media/router") |
54 if (!is_android) { | 57 if (!is_android) { |
55 deps += [ | 58 deps += [ ":mojo_bindings" ] |
56 ":mojo_bindings", | 59 if (enable_extensions) { |
57 "//extensions/common", | 60 deps += [ "//extensions/common" ] |
58 ] | 61 } |
59 sources += | 62 sources += |
60 rebase_path(gypi_values.media_router_non_android_test_support_sources, | 63 rebase_path(gypi_values.media_router_non_android_test_support_sources, |
61 ".", | 64 ".", |
62 "//chrome/browser/media/router") | 65 "//chrome/browser/media/router") |
63 } | 66 } |
64 } | 67 } |
OLD | NEW |