Chromium Code Reviews| 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("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 import("//mojo/public/mojo_application.gni") | 7 import("//mojo/public/mojo_application.gni") |
| 8 | 8 |
| 9 # Target naming conventions: | 9 # Target naming conventions: |
| 10 # - converters: C++/Mojo type converters. | 10 # - converters: C++/Mojo type converters. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 "//base", | 73 "//base", |
| 74 "//media", | 74 "//media", |
| 75 "//media/mojo/interfaces", | 75 "//media/mojo/interfaces", |
| 76 "//mojo/common", | 76 "//mojo/common", |
| 77 "//mojo/environment:chromium", | 77 "//mojo/environment:chromium", |
| 78 "//mojo/public/c/system:for_component", | 78 "//mojo/public/c/system:for_component", |
| 79 "//mojo/shell/public/interfaces", | 79 "//mojo/shell/public/interfaces", |
| 80 ] | 80 ] |
| 81 } | 81 } |
| 82 | 82 |
| 83 source_set("media_client") { | |
| 84 sources = [ | |
| 85 "mojo_media_client.cc", | |
| 86 "mojo_media_client.h", | |
| 87 ] | |
| 88 if (is_android) { | |
| 89 sources += [ "android_mojo_media_client.cc" ] | |
| 90 } else { | |
| 91 sources += [ "default_mojo_media_client.cc" ] | |
| 92 } | |
| 93 | |
| 94 public_configs = [ ":enable_mojo_media_config" ] | |
| 95 | |
| 96 deps = [ | |
| 97 "//base", | |
| 98 "//media", | |
| 99 "//media:shared_memory_support", | |
| 100 ] | |
| 101 } | |
| 102 | |
| 103 source_set("cdm_service") { | 83 source_set("cdm_service") { |
| 104 deps = [ | 84 deps = [ |
| 105 ":converters", | 85 ":converters", |
| 106 "//base", | 86 "//base", |
| 107 "//media", | 87 "//media", |
| 108 "//media/mojo/interfaces", | 88 "//media/mojo/interfaces", |
| 109 "//mojo/common", | 89 "//mojo/common", |
| 110 "//mojo/environment:chromium", | 90 "//mojo/environment:chromium", |
| 111 "//mojo/public/c/system:for_component", | 91 "//mojo/public/c/system:for_component", |
| 112 "//mojo/shell/public/interfaces", | 92 "//mojo/shell/public/interfaces", |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 124 "mojo_type_trait.h", | 104 "mojo_type_trait.h", |
| 125 ] | 105 ] |
| 126 | 106 |
| 127 if (is_android) { | 107 if (is_android) { |
| 128 sources += [ | 108 sources += [ |
| 129 "mojo_provision_fetcher.cc", | 109 "mojo_provision_fetcher.cc", |
| 130 "mojo_provision_fetcher.h", | 110 "mojo_provision_fetcher.h", |
| 131 ] | 111 ] |
| 132 } | 112 } |
| 133 | 113 |
| 114 public_configs = [ ":enable_mojo_media_config" ] | |
|
xhwang
2016/02/02 20:25:16
Can you add a comment that we need this because ta
alokp
2016/02/02 20:37:00
Done with a TODO assigned to you :)
xhwang
2016/02/02 20:46:49
Thanks!
| |
| 134 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 115 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 135 } | 116 } |
| 136 | 117 |
| 137 source_set("renderer_service") { | 118 source_set("renderer_service") { |
| 138 sources = [ | 119 sources = [ |
| 139 "demuxer_stream_provider_shim.cc", | 120 "demuxer_stream_provider_shim.cc", |
| 140 "demuxer_stream_provider_shim.h", | 121 "demuxer_stream_provider_shim.h", |
| 141 "mojo_demuxer_stream_adapter.cc", | 122 "mojo_demuxer_stream_adapter.cc", |
| 142 "mojo_demuxer_stream_adapter.h", | 123 "mojo_demuxer_stream_adapter.h", |
| 143 "mojo_renderer_service.cc", | 124 "mojo_renderer_service.cc", |
| 144 "mojo_renderer_service.h", | 125 "mojo_renderer_service.h", |
| 145 ] | 126 ] |
| 146 | 127 |
| 128 public_configs = [ ":enable_mojo_media_config" ] | |
|
xhwang
2016/02/02 20:25:16
Is this needed by any code today?
alokp
2016/02/02 20:37:00
No. I did it for symmetry but I should remove it n
| |
| 129 | |
| 147 deps = [ | 130 deps = [ |
| 148 ":converters", | 131 ":converters", |
| 149 "//base", | 132 "//base", |
| 150 "//media", | 133 "//media", |
| 151 "//media:shared_memory_support", | 134 "//media:shared_memory_support", |
| 152 "//media/mojo/interfaces", | 135 "//media/mojo/interfaces", |
| 153 "//mojo/common", | 136 "//mojo/common", |
| 154 ] | 137 ] |
| 155 } | 138 } |
| 156 | 139 |
| 157 source_set("application") { | 140 source_set("application") { |
| 158 sources = [ | 141 sources = [ |
| 159 "mojo_media_application.cc", | 142 "mojo_media_application.cc", |
| 160 "mojo_media_application.h", | 143 "mojo_media_application.h", |
| 144 "mojo_media_client.cc", | |
| 145 "mojo_media_client.h", | |
| 161 "service_factory_impl.cc", | 146 "service_factory_impl.cc", |
| 162 "service_factory_impl.h", | 147 "service_factory_impl.h", |
| 163 ] | 148 ] |
| 164 | 149 |
| 165 public_configs = [ ":enable_mojo_media_config" ] | 150 public_configs = [ ":enable_mojo_media_config" ] |
| 166 | 151 |
| 167 deps = [ | 152 deps = [ |
| 168 ":cdm_service", | 153 ":cdm_service", |
| 169 ":media_client", | |
| 170 ":renderer_service", | 154 ":renderer_service", |
| 171 "//base", | |
| 172 "//mojo/public/c/system:for_component", | |
| 173 "//mojo/shell/public/cpp", | 155 "//mojo/shell/public/cpp", |
| 174 ] | 156 ] |
| 175 } | 157 } |
| 176 | 158 |
| 159 source_set("default_application") { | |
| 160 if (is_android) { | |
| 161 sources = [ | |
| 162 "android_mojo_media_client.cc", | |
| 163 ] | |
| 164 } else { | |
| 165 sources = [ | |
| 166 "default_mojo_media_client.cc", | |
| 167 ] | |
| 168 } | |
| 169 | |
| 170 public_configs = [ ":enable_mojo_media_config" ] | |
| 171 | |
| 172 deps = [ | |
| 173 ":application", | |
| 174 ] | |
| 175 } | |
| 176 | |
| 177 test("media_mojo_unittests") { | 177 test("media_mojo_unittests") { |
| 178 sources = [ | 178 sources = [ |
| 179 "media_type_converters_unittest.cc", | 179 "media_type_converters_unittest.cc", |
| 180 ] | 180 ] |
| 181 | 181 |
| 182 deps = [ | 182 deps = [ |
| 183 ":converters", | 183 ":converters", |
| 184 "//base", | 184 "//base", |
| 185 "//base/test:test_support", | 185 "//base/test:test_support", |
| 186 "//media", | 186 "//media", |
| 187 "//media/base:test_support", | 187 "//media/base:test_support", |
| 188 "//media/mojo/interfaces", | 188 "//media/mojo/interfaces", |
| 189 "//mojo/environment:chromium", | 189 "//mojo/environment:chromium", |
| 190 "//testing/gmock", | 190 "//testing/gmock", |
| 191 "//testing/gtest", | 191 "//testing/gtest", |
| 192 "//third_party/mojo/src/mojo/edk/system", | 192 "//third_party/mojo/src/mojo/edk/system", |
| 193 "//third_party/mojo/src/mojo/edk/test:run_all_unittests", | 193 "//third_party/mojo/src/mojo/edk/test:run_all_unittests", |
| 194 ] | 194 ] |
| 195 } | 195 } |
| 196 | 196 |
| 197 mojo_native_application("media") { | 197 mojo_native_application("media") { |
| 198 sources = [ | 198 sources = [ |
| 199 "main.cc", | 199 "main.cc", |
| 200 ] | 200 ] |
| 201 | 201 |
| 202 deps = [ | 202 deps = [ |
| 203 ":application", | 203 ":default_application", |
| 204 "//mojo/logging", | |
| 204 "//mojo/public/c/system:for_shared_library", | 205 "//mojo/public/c/system:for_shared_library", |
| 205 ] | 206 ] |
| 206 } | 207 } |
| 207 | 208 |
| 208 # Note, the following tests must be loaded via mojo_runner as an app, e.g. | 209 # Note, the following tests must be loaded via mojo_runner as an app, e.g. |
| 209 # | 210 # |
| 210 # mojo/tools/apptest_runner.py | 211 # mojo/tools/apptest_runner.py |
| 211 # --apptest-filter mojo:media_apptests out/Debug | 212 # --apptest-filter mojo:media_apptests out/Debug |
| 212 # | 213 # |
| 213 # mojo/tools/apptest_runner.py | 214 # mojo/tools/apptest_runner.py |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 261 ":media_mojo_unittests", | 262 ":media_mojo_unittests", |
| 262 ] | 263 ] |
| 263 | 264 |
| 264 if (!is_component_build) { | 265 if (!is_component_build) { |
| 265 deps += [ | 266 deps += [ |
| 266 ":media_apptests", | 267 ":media_apptests", |
| 267 ":media_pipeline_integration_apptests", | 268 ":media_pipeline_integration_apptests", |
| 268 ] | 269 ] |
| 269 } | 270 } |
| 270 } | 271 } |
| OLD | NEW |