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

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

Issue 2058023004: Clean up Mojo C API dependent targets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/mojo/common/BUILD.gn ('k') | mojo/common/BUILD.gn » ('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("//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 import("//mojo/public/mojo_application_manifest.gni") 8 import("//mojo/public/mojo_application_manifest.gni")
9 9
10 # Target naming conventions: 10 # Target naming conventions:
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 "mojo_renderer_factory.h", 65 "mojo_renderer_factory.h",
66 "mojo_renderer_impl.cc", 66 "mojo_renderer_impl.cc",
67 "mojo_renderer_impl.h", 67 "mojo_renderer_impl.h",
68 "mojo_type_trait.h", 68 "mojo_type_trait.h",
69 "mojo_video_decoder.cc", 69 "mojo_video_decoder.cc",
70 "mojo_video_decoder.h", 70 "mojo_video_decoder.h",
71 ] 71 ]
72 72
73 public_configs = [ ":mojo_media_config" ] 73 public_configs = [ ":mojo_media_config" ]
74 74
75 deps = [ 75 public_deps = [
xhwang 2016/06/10 19:49:56 why are these public_deps now?
Ken Rockot(use gerrit already) 2016/06/10 20:00:41 Because they're exposed by headers like mojo_decry
xhwang 2016/06/10 20:05:52 That makes me sad. Having to track what should be
76 "//base", 76 "//base",
77 "//media", 77 "//media",
78 "//media/mojo/interfaces",
79 "//mojo/public/cpp/bindings",
80 "//mojo/public/cpp/system",
81 "//services/shell/public/interfaces",
82 ]
83
84 deps = [
78 "//media/mojo/common", 85 "//media/mojo/common",
79 "//media/mojo/interfaces",
80 "//mojo/common", 86 "//mojo/common",
81 "//mojo/public/c/system:for_component", 87 "//services/shell/public/cpp",
82 "//services/shell/public/cpp:sources",
83 "//services/shell/public/interfaces",
84 "//ui/gfx/geometry/mojo",
85 ] 88 ]
86 } 89 }
87 90
88 component("services") { 91 component("services") {
89 output_name = "media_mojo_services" 92 output_name = "media_mojo_services"
90 93
91 sources = [ 94 sources = [
92 "demuxer_stream_provider_shim.cc", 95 "demuxer_stream_provider_shim.cc",
93 "demuxer_stream_provider_shim.h", 96 "demuxer_stream_provider_shim.h",
94 "mojo_audio_decoder_service.cc", 97 "mojo_audio_decoder_service.cc",
(...skipping 24 matching lines...) Expand all
119 "service_factory_impl.cc", 122 "service_factory_impl.cc",
120 "service_factory_impl.h", 123 "service_factory_impl.h",
121 ] 124 ]
122 125
123 defines = [ "MEDIA_MOJO_IMPLEMENTATION" ] 126 defines = [ "MEDIA_MOJO_IMPLEMENTATION" ]
124 127
125 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 128 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
126 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 129 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
127 public_configs = [ ":mojo_media_config" ] 130 public_configs = [ ":mojo_media_config" ]
128 131
129 deps = [ 132 public_deps = [
130 "//base", 133 "//base",
131 "//media", 134 "//media",
135 "//media/mojo/interfaces",
136 "//mojo/public/cpp/bindings",
137 "//mojo/public/cpp/system",
138 "//services/shell/public/cpp",
139 "//url",
140 ]
141
142 deps = [
132 "//media:cdm_api", 143 "//media:cdm_api",
133 "//media:shared_memory_support", 144 "//media:shared_memory_support",
134 "//media/mojo/common", 145 "//media/mojo/common",
135 "//media/mojo/interfaces",
136 "//mojo/common", 146 "//mojo/common",
137 "//mojo/public/c/system:for_component",
138 "//services/shell/public/cpp",
139 "//services/shell/public/cpp:sources",
140 "//services/shell/public/interfaces", 147 "//services/shell/public/interfaces",
141 "//ui/gfx/geometry/mojo",
142 "//url",
143 ] 148 ]
144 149
145 if (is_android) { 150 if (is_android) {
146 sources += [ 151 sources += [
147 "mojo_provision_fetcher.cc", 152 "mojo_provision_fetcher.cc",
148 "mojo_provision_fetcher.h", 153 "mojo_provision_fetcher.h",
149 ] 154 ]
150 } 155 }
151 156
152 if (enable_test_mojo_media_client) { 157 if (enable_test_mojo_media_client) {
(...skipping 17 matching lines...) Expand all
170 175
171 mojo_native_application("media") { 176 mojo_native_application("media") {
172 testonly = true 177 testonly = true
173 178
174 sources = [ 179 sources = [
175 "main.cc", 180 "main.cc",
176 "test_mojo_media_client.cc", 181 "test_mojo_media_client.cc",
177 "test_mojo_media_client.h", 182 "test_mojo_media_client.h",
178 ] 183 ]
179 184
180 deps = [ 185 public_deps = [
181 ":services", 186 ":services",
182 "//base", 187 "//base",
183 "//media", 188 "//media",
184 "//mojo/public/c/system:for_shared_library", 189 ]
185 "//services/shell/public/cpp:sources", 190
191 deps = [
192 "//mojo/public/c/system",
186 ] 193 ]
187 } 194 }
188 195
189 mojo_application_manifest("media_manifest") { 196 mojo_application_manifest("media_manifest") {
190 application_name = "media" 197 application_name = "media"
191 source = "media_manifest.json" 198 source = "media_manifest.json"
192 } 199 }
193 200
194 test("media_mojo_shell_unittests") { 201 test("media_mojo_shell_unittests") {
195 testonly = true 202 testonly = true
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 ":media", 241 ":media",
235 ":pipeline_test_manifest", 242 ":pipeline_test_manifest",
236 ] 243 ]
237 } 244 }
238 245
239 mojo_application_manifest("pipeline_test_manifest") { 246 mojo_application_manifest("pipeline_test_manifest") {
240 application_name = "media_pipeline_integration_unittests" 247 application_name = "media_pipeline_integration_unittests"
241 type = "exe" 248 type = "exe"
242 source = "pipeline_test_manifest.json" 249 source = "pipeline_test_manifest.json"
243 } 250 }
OLDNEW
« no previous file with comments | « media/mojo/common/BUILD.gn ('k') | mojo/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698