| 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
| 7 | 7 |
| 8 gypi_values = exec_script("//build/gypi_to_gn.py", | 8 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 9 [ rebase_path("media_router.gypi") ], | 9 [ rebase_path("media_router.gypi") ], |
| 10 "scope", | 10 "scope", |
| 11 [ "media_router.gypi" ]) | 11 [ "media_router.gypi" ]) |
| 12 | 12 |
| 13 # TODO(mfoltz): Fix problem that requires explicitly listing //skia | 13 # TODO(mfoltz): Fix problem that requires explicitly listing //skia |
| 14 static_library("router") { | 14 static_library("router") { |
| 15 deps = [ | 15 deps = [ |
| 16 ":mojo_bindings", | |
| 17 "//base", | 16 "//base", |
| 18 "//chrome/common:constants", | 17 "//chrome/common:constants", |
| 19 "//components/keyed_service/content", | 18 "//components/keyed_service/content", |
| 20 "//components/keyed_service/core", | 19 "//components/keyed_service/core", |
| 21 "//extensions/browser", | |
| 22 "//skia", | 20 "//skia", |
| 23 "//third_party/mojo/src/mojo/public/cpp/bindings", | |
| 24 "//url", | 21 "//url", |
| 25 ] | 22 ] |
| 26 sources = rebase_path(gypi_values.media_router_sources, | 23 sources = rebase_path(gypi_values.media_router_sources, |
| 27 ".", | 24 ".", |
| 28 "//chrome/browser/media/router") | 25 "//chrome/browser/media/router") |
| 26 if (!is_android) { |
| 27 deps += [ |
| 28 ":mojo_bindings", |
| 29 "//extensions/browser", |
| 30 "//third_party/mojo/src/mojo/public/cpp/bindings", |
| 31 ] |
| 32 sources += rebase_path(gypi_values.media_router_non_android_sources, |
| 33 ".", |
| 34 "//chrome/browser/media/router") |
| 35 } |
| 29 } | 36 } |
| 30 | 37 |
| 31 mojom("mojo_bindings") { | 38 mojom("mojo_bindings") { |
| 32 sources = [ | 39 sources = [ |
| 33 "media_router.mojom", | 40 "media_router.mojom", |
| 34 ] | 41 ] |
| 35 } | 42 } |
| 36 | 43 |
| 37 source_set("test_support") { | 44 source_set("test_support") { |
| 38 testonly = true | 45 testonly = true |
| 39 deps = [ | 46 deps = [ |
| 40 ":mojo_bindings", | 47 ":mojo_bindings", |
| 41 ":router", | 48 ":router", |
| 42 "//chrome/test:test_support", | 49 "//chrome/test:test_support", |
| 43 "//testing/gmock", | 50 "//testing/gmock", |
| 44 ] | 51 ] |
| 45 sources = rebase_path(gypi_values.media_router_test_support_sources, | 52 sources = rebase_path(gypi_values.media_router_test_support_sources, |
| 46 ".", | 53 ".", |
| 47 "//chrome/browser/media/router") | 54 "//chrome/browser/media/router") |
| 48 } | 55 } |
| OLD | NEW |