Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: media/mojo/services/BUILD.gn

Issue 712463004: media: Support MojoRendererService in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix BUILD.gn. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/media_options.gni ('k') | media/mojo/services/mojo_renderer_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//testing/test.gni") 6 import("//testing/test.gni")
6 import("//third_party/mojo/src/mojo/public/mojo_application.gni") 7 import("//third_party/mojo/src/mojo/public/mojo_application.gni")
7 8
8 # Target naming conventions: 9 # Target naming conventions:
9 # - converters: C++/Mojo type converters. 10 # - converters: C++/Mojo type converters.
10 # - proxy: C++ implementations supported by mojo services. 11 # - proxy: C++ implementations supported by mojo services.
11 # - service: Mojo interface implementations. 12 # - service: Mojo interface implementations.
12 # - unittests: Unit tests for a particular class/file. 13 # - unittests: Unit tests for a particular class/file.
13 # - test: Tests for a particular app, e.g. media. 14 # - test: Tests for a particular app, e.g. media.
14 15
16 config("enable_media_mojo_renderer_config") {
17 if (enable_media_mojo_renderer) {
18 defines = [ "ENABLE_MEDIA_MOJO_RENDERER" ]
19 }
20 }
21
15 source_set("converters") { 22 source_set("converters") {
16 sources = [ 23 sources = [
17 "media_type_converters.cc", 24 "media_type_converters.cc",
18 "media_type_converters.h", 25 "media_type_converters.h",
19 ] 26 ]
20 27
21 deps = [ 28 deps = [
22 "//base", 29 "//base",
23 "//media", 30 "//media",
24 "//media/mojo/interfaces", 31 "//media/mojo/interfaces",
25 "//mojo/common", 32 "//mojo/common",
26 "//mojo/converters/geometry", 33 "//mojo/converters/geometry",
27 "//mojo/environment:chromium", 34 "//mojo/environment:chromium",
28 "//mojo/services/geometry/public/interfaces", 35 "//mojo/services/geometry/public/interfaces",
29 "//skia", 36 "//skia",
30 "//third_party/mojo/src/mojo/public/c/system:for_component", 37 "//third_party/mojo/src/mojo/public/c/system:for_component",
31 ] 38 ]
32 } 39 }
33 40
34 source_set("cdm_proxy") { 41 source_set("cdm_proxy") {
35 deps = [ 42 deps = [
36 ":converters", 43 ":converters",
37 "//base", 44 "//base",
38 "//media", 45 "//media",
39 "//media/mojo/interfaces", 46 "//media/mojo/interfaces",
40 "//mojo/common", 47 "//mojo/common",
41 "//mojo/environment:chromium", 48 "//mojo/environment:chromium",
42 "//third_party/mojo/src/mojo/public/interfaces/application", 49 "//third_party/mojo/src/mojo/public/interfaces/application",
43 "//third_party/mojo/src/mojo/public/c/system:for_component", 50 "//third_party/mojo/src/mojo/public/c/system:for_component",
44 "//third_party/mojo/src/mojo/public/cpp/application",
45 ] 51 ]
46 52
47 sources = [ 53 sources = [
48 "mojo_cdm.cc", 54 "mojo_cdm.cc",
49 "mojo_cdm.h", 55 "mojo_cdm.h",
50 "mojo_type_trait.h", 56 "mojo_type_trait.h",
51 ] 57 ]
52 } 58 }
53 59
54 source_set("cdm_service") { 60 source_set("cdm_service") {
(...skipping 21 matching lines...) Expand all
76 source_set("renderer_proxy") { 82 source_set("renderer_proxy") {
77 sources = [ 83 sources = [
78 "mojo_demuxer_stream_impl.cc", 84 "mojo_demuxer_stream_impl.cc",
79 "mojo_demuxer_stream_impl.h", 85 "mojo_demuxer_stream_impl.h",
80 "mojo_renderer_factory.cc", 86 "mojo_renderer_factory.cc",
81 "mojo_renderer_factory.h", 87 "mojo_renderer_factory.h",
82 "mojo_renderer_impl.cc", 88 "mojo_renderer_impl.cc",
83 "mojo_renderer_impl.h", 89 "mojo_renderer_impl.h",
84 ] 90 ]
85 91
92 public_configs = [ ":enable_media_mojo_renderer_config" ]
93
86 deps = [ 94 deps = [
87 ":converters", 95 ":converters",
88 "//base", 96 "//base",
89 "//media", 97 "//media",
90 "//media/mojo/interfaces", 98 "//media/mojo/interfaces",
91 "//mojo/common", 99 "//mojo/common",
92 "//mojo/environment:chromium", 100 "//mojo/environment:chromium",
93 "//third_party/mojo/src/mojo/public/c/system:for_component", 101 "//third_party/mojo/src/mojo/public/c/system:for_component",
94 "//third_party/mojo/src/mojo/public/cpp/application",
95 "//third_party/mojo/src/mojo/public/interfaces/application", 102 "//third_party/mojo/src/mojo/public/interfaces/application",
96 ] 103 ]
97 } 104 }
98 105
99 # MediaRenderer service; without a specific config. 106 # MediaRenderer service; without a specific config.
100 source_set("renderer_service_generic") { 107 source_set("renderer_service_generic") {
101 sources = [ 108 sources = [
102 "demuxer_stream_provider_shim.cc", 109 "demuxer_stream_provider_shim.cc",
103 "demuxer_stream_provider_shim.h", 110 "demuxer_stream_provider_shim.h",
104 "mojo_demuxer_stream_adapter.cc", 111 "mojo_demuxer_stream_adapter.cc",
(...skipping 13 matching lines...) Expand all
118 "//mojo/common", 125 "//mojo/common",
119 ] 126 ]
120 } 127 }
121 128
122 # MediaRenderer service with a default config. 129 # MediaRenderer service with a default config.
123 source_set("renderer_service") { 130 source_set("renderer_service") {
124 sources = [ 131 sources = [
125 "renderer_config_default.cc", 132 "renderer_config_default.cc",
126 ] 133 ]
127 134
135 public_configs = [ ":enable_media_mojo_renderer_config" ]
136
128 deps = [ 137 deps = [
129 ":renderer_service_generic", 138 ":renderer_service_generic",
130 "//base", 139 "//base",
131 "//media", 140 "//media",
132 "//media:shared_memory_support", 141 "//media:shared_memory_support",
133 ] 142 ]
134 } 143 }
135 144
136 test("media_mojo_unittests") { 145 test("media_mojo_unittests") {
137 sources = [ 146 sources = [
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 group("tests") { 201 group("tests") {
193 testonly = true 202 testonly = true
194 deps = [ 203 deps = [
195 ":media_mojo_unittests", 204 ":media_mojo_unittests",
196 ] 205 ]
197 206
198 if (!is_component_build) { 207 if (!is_component_build) {
199 deps += [ ":media_test" ] 208 deps += [ ":media_test" ]
200 } 209 }
201 } 210 }
OLDNEW
« no previous file with comments | « media/media_options.gni ('k') | media/mojo/services/mojo_renderer_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698