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

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

Issue 1649933002: [Chromecast] Hook up mojo media pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed chrome build with enable_mojo_media Created 4 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
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("//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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 "//media:shared_memory_support", 131 "//media:shared_memory_support",
152 "//media/mojo/interfaces", 132 "//media/mojo/interfaces",
153 "//mojo/common", 133 "//mojo/common",
154 ] 134 ]
155 } 135 }
156 136
157 source_set("application") { 137 source_set("application") {
158 sources = [ 138 sources = [
159 "mojo_media_application.cc", 139 "mojo_media_application.cc",
160 "mojo_media_application.h", 140 "mojo_media_application.h",
141 "mojo_media_client.cc",
142 "mojo_media_client.h",
161 "service_factory_impl.cc", 143 "service_factory_impl.cc",
162 "service_factory_impl.h", 144 "service_factory_impl.h",
163 ] 145 ]
164 146
147 deps = [
148 ":cdm_service",
149 ":renderer_service",
150 "//mojo/shell/public/cpp",
151 ]
152 }
153
154 source_set("default_application") {
155 if (is_android) {
156 sources = [
157 "android_mojo_media_application.cc",
158 ]
159 } else {
160 sources = [
161 "default_mojo_media_application.cc",
162 ]
163 }
164
165 public_configs = [ ":enable_mojo_media_config" ] 165 public_configs = [ ":enable_mojo_media_config" ]
166 166
167 deps = [ 167 deps = [
168 ":cdm_service", 168 ":application",
169 ":media_client",
170 ":renderer_service",
171 "//base",
172 "//mojo/public/c/system:for_component",
173 "//mojo/shell/public/cpp",
174 ] 169 ]
175 } 170 }
176 171
177 test("media_mojo_unittests") { 172 test("media_mojo_unittests") {
178 sources = [ 173 sources = [
179 "media_type_converters_unittest.cc", 174 "media_type_converters_unittest.cc",
180 ] 175 ]
181 176
182 deps = [ 177 deps = [
183 ":converters", 178 ":converters",
184 "//base", 179 "//base",
185 "//base/test:test_support", 180 "//base/test:test_support",
186 "//media", 181 "//media",
187 "//media/base:test_support", 182 "//media/base:test_support",
188 "//media/mojo/interfaces", 183 "//media/mojo/interfaces",
189 "//mojo/environment:chromium", 184 "//mojo/environment:chromium",
190 "//testing/gmock", 185 "//testing/gmock",
191 "//testing/gtest", 186 "//testing/gtest",
192 "//third_party/mojo/src/mojo/edk/system", 187 "//third_party/mojo/src/mojo/edk/system",
193 "//third_party/mojo/src/mojo/edk/test:run_all_unittests", 188 "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
194 ] 189 ]
195 } 190 }
196 191
197 mojo_native_application("media") { 192 mojo_native_application("media") {
198 sources = [ 193 sources = [
199 "main.cc", 194 "main.cc",
200 ] 195 ]
201 196
202 deps = [ 197 deps = [
203 ":application", 198 ":default_application",
199 "//mojo/logging",
204 "//mojo/public/c/system:for_shared_library", 200 "//mojo/public/c/system:for_shared_library",
205 ] 201 ]
206 } 202 }
207 203
208 # Note, the following tests must be loaded via mojo_runner as an app, e.g. 204 # Note, the following tests must be loaded via mojo_runner as an app, e.g.
209 # 205 #
210 # mojo/tools/apptest_runner.py 206 # mojo/tools/apptest_runner.py
211 # --apptest-filter mojo:media_apptests out/Debug 207 # --apptest-filter mojo:media_apptests out/Debug
212 # 208 #
213 # mojo/tools/apptest_runner.py 209 # mojo/tools/apptest_runner.py
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 ":media_mojo_unittests", 257 ":media_mojo_unittests",
262 ] 258 ]
263 259
264 if (!is_component_build) { 260 if (!is_component_build) {
265 deps += [ 261 deps += [
266 ":media_apptests", 262 ":media_apptests",
267 ":media_pipeline_integration_apptests", 263 ":media_pipeline_integration_apptests",
268 ] 264 ]
269 } 265 }
270 } 266 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698