| 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("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 gypi_values = exec_script("//build/gypi_to_gn.py", | 9 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 10 [ rebase_path("media_router.gypi") ], | 10 [ rebase_path("media_router.gypi") ], |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 if (!is_android) { | 27 if (!is_android) { |
| 28 deps += [ | 28 deps += [ |
| 29 ":mojo_bindings", | 29 ":mojo_bindings", |
| 30 "//extensions/browser", | 30 "//extensions/browser", |
| 31 "//mojo/public/cpp/bindings", | 31 "//mojo/public/cpp/bindings", |
| 32 ] | 32 ] |
| 33 sources += rebase_path(gypi_values.media_router_non_android_sources, | 33 sources += rebase_path(gypi_values.media_router_non_android_sources, |
| 34 ".", | 34 ".", |
| 35 "//chrome/browser/media/router") | 35 "//chrome/browser/media/router") |
| 36 } | 36 } |
| 37 if (is_win) { |
| 38 sources += rebase_path(gypi_values.media_router_win_sources) |
| 39 } |
| 37 } | 40 } |
| 38 | 41 |
| 39 mojom("mojo_bindings") { | 42 mojom("mojo_bindings") { |
| 40 sources = [ | 43 sources = [ |
| 41 "media_router.mojom", | 44 "media_router.mojom", |
| 42 ] | 45 ] |
| 43 } | 46 } |
| 44 | 47 |
| 45 source_set("test_support") { | 48 source_set("test_support") { |
| 46 testonly = true | 49 testonly = true |
| 47 deps = [ | 50 deps = [ |
| 48 # TODO(crbug.com/596999): Move non-Android code to mojo/ | 51 # TODO(crbug.com/596999): Move non-Android code to mojo/ |
| 49 ":mojo_bindings", | 52 ":mojo_bindings", |
| 50 ":router", | 53 ":router", |
| 51 "//chrome/test:test_support", | 54 "//chrome/test:test_support", |
| 52 "//testing/gmock", | 55 "//testing/gmock", |
| 53 ] | 56 ] |
| 54 sources = rebase_path(gypi_values.media_router_test_support_sources, | 57 sources = rebase_path(gypi_values.media_router_test_support_sources, |
| 55 ".", | 58 ".", |
| 56 "//chrome/browser/media/router") | 59 "//chrome/browser/media/router") |
| 57 if (!is_android) { | 60 if (!is_android) { |
| 58 deps += [ "//extensions/common" ] | 61 deps += [ "//extensions/common" ] |
| 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 |