| OLD | NEW |
| 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("//media/media_options.gni") | 5 import("//media/media_options.gni") |
| 6 import("//services/shell/public/cpp/service.gni") | 6 import("//services/service_manager/public/cpp/service.gni") |
| 7 import("//services/shell/public/service_manifest.gni") | 7 import("//services/service_manager/public/service_manifest.gni") |
| 8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 9 | 9 |
| 10 config("mojo_media_config") { | 10 config("mojo_media_config") { |
| 11 if (!enable_mojo_media) { | 11 if (!enable_mojo_media) { |
| 12 assert(mojo_media_services == [], "Mojo media is not enabled") | 12 assert(mojo_media_services == [], "Mojo media is not enabled") |
| 13 assert(mojo_media_host == "none", "Mojo media is not enabled") | 13 assert(mojo_media_host == "none", "Mojo media is not enabled") |
| 14 } else { | 14 } else { |
| 15 defines = [ "ENABLE_MOJO_MEDIA" ] | 15 defines = [ "ENABLE_MOJO_MEDIA" ] |
| 16 | 16 |
| 17 assert(mojo_media_services != [], "No mojo media service specified") | 17 assert(mojo_media_services != [], "No mojo media service specified") |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 81 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 82 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 82 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 83 public_configs = [ ":mojo_media_config" ] | 83 public_configs = [ ":mojo_media_config" ] |
| 84 | 84 |
| 85 public_deps = [ | 85 public_deps = [ |
| 86 "//base", | 86 "//base", |
| 87 "//media", | 87 "//media", |
| 88 "//media/mojo/interfaces", | 88 "//media/mojo/interfaces", |
| 89 "//mojo/public/cpp/bindings", | 89 "//mojo/public/cpp/bindings", |
| 90 "//mojo/public/cpp/system", | 90 "//mojo/public/cpp/system", |
| 91 "//services/shell/public/cpp", | 91 "//services/service_manager/public/cpp", |
| 92 "//url", | 92 "//url", |
| 93 ] | 93 ] |
| 94 | 94 |
| 95 deps = [ | 95 deps = [ |
| 96 "//media:cdm_api", | 96 "//media:cdm_api", |
| 97 "//media:shared_memory_support", | 97 "//media:shared_memory_support", |
| 98 "//media/mojo/common", | 98 "//media/mojo/common", |
| 99 "//mojo/common", | 99 "//mojo/common", |
| 100 "//services/shell/public/interfaces", | 100 "//services/service_manager/public/interfaces", |
| 101 ] | 101 ] |
| 102 | 102 |
| 103 if (is_android) { | 103 if (is_android) { |
| 104 sources += [ | 104 sources += [ |
| 105 "android_mojo_media_client.cc", | 105 "android_mojo_media_client.cc", |
| 106 "android_mojo_media_client.h", | 106 "android_mojo_media_client.h", |
| 107 "mojo_provision_fetcher.cc", | 107 "mojo_provision_fetcher.cc", |
| 108 "mojo_provision_fetcher.h", | 108 "mojo_provision_fetcher.h", |
| 109 ] | 109 ] |
| 110 } else { | 110 } else { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 123 ] | 123 ] |
| 124 | 124 |
| 125 public_deps = [ | 125 public_deps = [ |
| 126 ":services", | 126 ":services", |
| 127 "//base", | 127 "//base", |
| 128 "//media", | 128 "//media", |
| 129 ] | 129 ] |
| 130 | 130 |
| 131 deps = [ | 131 deps = [ |
| 132 "//mojo/public/c/system", | 132 "//mojo/public/c/system", |
| 133 "//services/shell/public/cpp", | 133 "//services/service_manager/public/cpp", |
| 134 ] | 134 ] |
| 135 } | 135 } |
| 136 | 136 |
| 137 test("media_mojo_shell_unittests") { | 137 test("media_mojo_shell_unittests") { |
| 138 testonly = true | 138 testonly = true |
| 139 | 139 |
| 140 sources = [ | 140 sources = [ |
| 141 "media_mojo_unittest.cc", | 141 "media_mojo_unittest.cc", |
| 142 ] | 142 ] |
| 143 | 143 |
| 144 deps = [ | 144 deps = [ |
| 145 "//media", | 145 "//media", |
| 146 "//media/base:test_support", | 146 "//media/base:test_support", |
| 147 "//media/mojo/clients", | 147 "//media/mojo/clients", |
| 148 "//media/mojo/common", | 148 "//media/mojo/common", |
| 149 "//media/mojo/interfaces", | 149 "//media/mojo/interfaces", |
| 150 "//services/shell/public/cpp:service_test_support", | 150 "//services/service_manager/public/cpp:service_test_support", |
| 151 "//services/shell/public/cpp/test:run_all_shelltests", | 151 "//services/service_manager/public/cpp/test:run_all_shelltests", |
| 152 "//testing/gmock", | 152 "//testing/gmock", |
| 153 "//testing/gtest", | 153 "//testing/gtest", |
| 154 ] | 154 ] |
| 155 | 155 |
| 156 data_deps = [ | 156 data_deps = [ |
| 157 "//media/mojo/services:test_manifest", | 157 "//media/mojo/services:test_manifest", |
| 158 "//media/mojo/services:media", | 158 "//media/mojo/services:media", |
| 159 ] | 159 ] |
| 160 } | 160 } |
| 161 | 161 |
| 162 service_manifest("media_manifest") { | 162 service_manifest("media_manifest") { |
| 163 name = "media" | 163 name = "media" |
| 164 source = "media_manifest.json" | 164 source = "media_manifest.json" |
| 165 } | 165 } |
| 166 | 166 |
| 167 service_manifest("test_manifest") { | 167 service_manifest("test_manifest") { |
| 168 name = "media_mojo_shell_unittests" | 168 name = "media_mojo_shell_unittests" |
| 169 type = "exe" | 169 type = "exe" |
| 170 source = "test_manifest.json" | 170 source = "test_manifest.json" |
| 171 } | 171 } |
| 172 | 172 |
| 173 test("media_pipeline_integration_unittests") { | 173 test("media_pipeline_integration_unittests") { |
| 174 testonly = true | 174 testonly = true |
| 175 | 175 |
| 176 deps = [ | 176 deps = [ |
| 177 "//media/test:mojo_pipeline_integration_tests", | 177 "//media/test:mojo_pipeline_integration_tests", |
| 178 "//services/shell/public/cpp/test:run_all_shelltests", | 178 "//services/service_manager/public/cpp/test:run_all_shelltests", |
| 179 ] | 179 ] |
| 180 | 180 |
| 181 data_deps = [ | 181 data_deps = [ |
| 182 ":media", | 182 ":media", |
| 183 ":pipeline_test_manifest", | 183 ":pipeline_test_manifest", |
| 184 ] | 184 ] |
| 185 } | 185 } |
| 186 | 186 |
| 187 service_manifest("pipeline_test_manifest") { | 187 service_manifest("pipeline_test_manifest") { |
| 188 name = "media_pipeline_integration_unittests" | 188 name = "media_pipeline_integration_unittests" |
| 189 type = "exe" | 189 type = "exe" |
| 190 source = "pipeline_test_manifest.json" | 190 source = "pipeline_test_manifest.json" |
| 191 } | 191 } |
| OLD | NEW |