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("//mojo/public/mojo_application.gni") | 6 import("//mojo/public/mojo_application.gni") |
| 6 | 7 |
| 7 # Target naming conventions: | 8 # Target naming conventions: |
| 8 # - converters: C++/Mojo type converters. | 9 # - converters: C++/Mojo type converters. |
| 9 # - proxy: C++ implementations supported by mojo services. | 10 # - proxy: C++ implementations supported by mojo services. |
| 10 # - service: Mojo interface implementations. | 11 # - service: Mojo interface implementations. |
| 11 # - unittests: Unit tests for a particular class/file. | 12 # - unittests: Unit tests for a particular class/file. |
| 12 # - test: Tests for a particular app, e.g. media. | 13 # - test: Tests for a particular app, e.g. media. |
| 13 | 14 |
| 15 config("media_mojo_dependent_config") { | |
|
jamesr
2014/12/18 17:49:54
nit: i would name this after what it does, not how
xhwang
2014/12/18 21:22:37
Done.
| |
| 16 defines = [] | |
|
jamesr
2014/12/18 17:49:54
nit: you don't have to have this, you can instead
xhwang
2014/12/18 21:22:38
Done.
| |
| 17 if (enable_media_mojo_renderer) { | |
| 18 defines += [ "ENABLE_MEDIA_MOJO_RENDERER" ] | |
| 19 } | |
| 20 } | |
| 21 | |
| 14 source_set("converters") { | 22 source_set("converters") { |
| 15 sources = [ | 23 sources = [ |
| 16 "media_type_converters.cc", | 24 "media_type_converters.cc", |
| 17 "media_type_converters.h", | 25 "media_type_converters.h", |
| 18 ] | 26 ] |
| 19 | 27 |
| 20 deps = [ | 28 deps = [ |
| 21 "//base", | 29 "//base", |
| 22 "//media", | 30 "//media", |
| 23 "//media/mojo/interfaces", | 31 "//media/mojo/interfaces", |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 34 source_set("renderer_proxy") { | 42 source_set("renderer_proxy") { |
| 35 sources = [ | 43 sources = [ |
| 36 "mojo_demuxer_stream_impl.cc", | 44 "mojo_demuxer_stream_impl.cc", |
| 37 "mojo_demuxer_stream_impl.h", | 45 "mojo_demuxer_stream_impl.h", |
| 38 "mojo_renderer_factory.cc", | 46 "mojo_renderer_factory.cc", |
| 39 "mojo_renderer_factory.h", | 47 "mojo_renderer_factory.h", |
| 40 "mojo_renderer_impl.cc", | 48 "mojo_renderer_impl.cc", |
| 41 "mojo_renderer_impl.h", | 49 "mojo_renderer_impl.h", |
| 42 ] | 50 ] |
| 43 | 51 |
| 52 all_dependent_configs = [ ":media_mojo_dependent_config" ] | |
|
jamesr
2014/12/18 17:49:54
all_dependent_configs is bad - you'll set this def
DaleCurtis
2014/12/18 19:25:11
Can you elaborate on how this will pollute non-dep
xhwang
2014/12/18 21:22:38
Good point! Thanks!
| |
| 53 | |
| 44 deps = [ | 54 deps = [ |
| 45 ":converters", | 55 ":converters", |
| 46 "//base", | 56 "//base", |
| 47 "//media", | 57 "//media", |
| 48 "//media/mojo/interfaces", | 58 "//media/mojo/interfaces", |
| 49 "//mojo/common", | 59 "//mojo/common", |
| 50 "//mojo/environment:chromium", | 60 "//mojo/environment:chromium", |
| 51 "//mojo/public/c/system:for_component", | 61 "//mojo/public/c/system:for_component", |
| 52 "//mojo/public/cpp/application", | |
| 53 "//mojo/public/interfaces/application", | |
| 54 ] | 62 ] |
| 55 } | 63 } |
| 56 | 64 |
| 57 # MediaRenderer service. | 65 # MediaRenderer service. |
| 58 source_set("renderer_service") { | 66 source_set("renderer_service") { |
| 59 sources = [ | 67 sources = [ |
| 60 "demuxer_stream_provider_shim.cc", | 68 "demuxer_stream_provider_shim.cc", |
| 61 "demuxer_stream_provider_shim.h", | 69 "demuxer_stream_provider_shim.h", |
| 62 "mojo_demuxer_stream_adapter.cc", | 70 "mojo_demuxer_stream_adapter.cc", |
| 63 "mojo_demuxer_stream_adapter.h", | 71 "mojo_demuxer_stream_adapter.h", |
| 64 "mojo_renderer_service.cc", | 72 "mojo_renderer_service.cc", |
| 65 "mojo_renderer_service.h", | 73 "mojo_renderer_service.h", |
| 66 "renderer_config.cc", | 74 "renderer_config.cc", |
| 67 "renderer_config.h", | 75 "renderer_config.h", |
| 68 "renderer_config_default.cc", | 76 "renderer_config_default.cc", |
| 69 ] | 77 ] |
| 70 | 78 |
| 79 all_dependent_configs = [ ":media_mojo_dependent_config" ] | |
|
jamesr
2014/12/18 17:49:54
ditto
xhwang
2014/12/18 21:22:38
Done.
| |
| 80 | |
| 71 deps = [ | 81 deps = [ |
| 72 ":converters", | 82 ":converters", |
| 73 "//base", | 83 "//base", |
| 74 "//media", | 84 "//media", |
| 75 "//media/mojo/interfaces", | 85 "//media/mojo/interfaces", |
| 76 "//media:shared_memory_support", | 86 "//media:shared_memory_support", |
| 77 "//mojo/common", | 87 "//mojo/common", |
| 78 ] | 88 ] |
| 79 } | 89 } |
| 80 | 90 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 148 group("tests") { | 158 group("tests") { |
| 149 testonly = true | 159 testonly = true |
| 150 deps = [ | 160 deps = [ |
| 151 ":media_mojo_unittests", | 161 ":media_mojo_unittests", |
| 152 ] | 162 ] |
| 153 | 163 |
| 154 if (!is_component_build) { | 164 if (!is_component_build) { |
| 155 deps += [ ":media_test" ] | 165 deps += [ ":media_test" ] |
| 156 } | 166 } |
| 157 } | 167 } |
| OLD | NEW |