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

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

Issue 763883006: Add Mojo CDM Service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More updates. Created 6 years 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("//mojo/public/mojo_application.gni") 5 import("//mojo/public/mojo_application.gni")
6 6
7 # Target naming conventions: 7 # Target naming conventions:
8 # - converters: C++/Mojo type converters. 8 # - converters: C++/Mojo type converters.
9 # - proxy: C++ implementations supported by mojo services. 9 # - proxy: C++ implementations supported by mojo services.
10 # - service: Mojo interface implementations. 10 # - service: Mojo interface implementations.
(...skipping 12 matching lines...) Expand all
23 "//media/mojo/interfaces", 23 "//media/mojo/interfaces",
24 "//mojo/common", 24 "//mojo/common",
25 "//mojo/converters/geometry", 25 "//mojo/converters/geometry",
26 "//mojo/environment:chromium", 26 "//mojo/environment:chromium",
27 "//mojo/public/c/system:for_component", 27 "//mojo/public/c/system:for_component",
28 "//mojo/services/public/interfaces/geometry", 28 "//mojo/services/public/interfaces/geometry",
29 "//skia", 29 "//skia",
30 ] 30 ]
31 } 31 }
32 32
33 source_set("cdm_proxy") {
34 deps = [
35 ":converters",
36 "//base",
37 "//media",
38 "//media/mojo/interfaces",
39 "//mojo/public/interfaces/application",
40 "//mojo/common",
41 "//mojo/environment:chromium",
42 "//mojo/public/c/system:for_component",
43 "//mojo/public/cpp/application",
44 ]
45
46 sources = [
47 "mojo_cdm.cc",
48 "mojo_cdm.h",
49 ]
50 }
51
52 source_set("cdm_service") {
53 deps = [
54 ":converters",
55 "//base",
56 "//media",
57 "//media/mojo/interfaces",
58 "//mojo/public/interfaces/application",
59 "//mojo/common",
60 "//mojo/environment:chromium",
61 "//mojo/public/c/system:for_component",
62 ]
63
64 sources = [
65 "mojo_cdm_promise.cc",
66 "mojo_cdm_promise.h",
67 "mojo_cdm_service.cc",
68 "mojo_cdm_service.h",
69 ]
70 }
71
33 # media::Renderer implementation using mojo::MediaRenderer. 72 # media::Renderer implementation using mojo::MediaRenderer.
34 source_set("renderer_proxy") { 73 source_set("renderer_proxy") {
35 sources = [ 74 sources = [
36 "mojo_demuxer_stream_impl.cc", 75 "mojo_demuxer_stream_impl.cc",
37 "mojo_demuxer_stream_impl.h", 76 "mojo_demuxer_stream_impl.h",
38 "mojo_renderer_impl.cc", 77 "mojo_renderer_impl.cc",
39 "mojo_renderer_impl.h", 78 "mojo_renderer_impl.h",
40 ] 79 ]
41 80
42 deps = [ 81 deps = [
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 "//mojo/common", 114 "//mojo/common",
76 ] 115 ]
77 } 116 }
78 117
79 mojo_native_application("media") { 118 mojo_native_application("media") {
80 sources = [ 119 sources = [
81 "mojo_media_application.cc", 120 "mojo_media_application.cc",
82 ] 121 ]
83 122
84 deps = [ 123 deps = [
124 ":cdm_service",
85 ":renderer_service", 125 ":renderer_service",
86 "//mojo/application", 126 "//mojo/application",
87 "//mojo/public/c/system:for_shared_library", 127 "//mojo/public/c/system:for_shared_library",
88 ] 128 ]
89 } 129 }
90 130
91 test("media_mojo_unittests") { 131 test("media_mojo_unittests") {
92 sources = [ 132 sources = [
93 "media_type_converters_unittest.cc", 133 "media_type_converters_unittest.cc",
94 ] 134 ]
(...skipping 15 matching lines...) Expand all
110 # To run the test: 150 # To run the test:
111 # out/Debug/mojo_shell mojo:media_test 151 # out/Debug/mojo_shell mojo:media_test
112 # You can get "mojo_shell" using mojo/public/tools/download_shell_binary.py 152 # You can get "mojo_shell" using mojo/public/tools/download_shell_binary.py
113 mojo_native_application("media_test") { 153 mojo_native_application("media_test") {
114 testonly = true 154 testonly = true
115 sources = [ 155 sources = [
116 "media_renderer_apptest.cc", 156 "media_renderer_apptest.cc",
117 ] 157 ]
118 158
119 deps = [ 159 deps = [
160 ":cdm_proxy",
120 ":media", 161 ":media",
121 ":renderer_proxy", 162 ":renderer_proxy",
122 "//base", 163 "//base",
123 "//media", 164 "//media",
124 "//media/mojo/interfaces", 165 "//media/mojo/interfaces",
125 "//media:shared_memory_support", 166 "//media:shared_memory_support",
126 "//mojo/application", 167 "//mojo/application",
127 "//mojo/application:test_support", 168 "//mojo/application:test_support",
128 "//mojo/common", 169 "//mojo/common",
129 "//mojo/environment:chromium", 170 "//mojo/environment:chromium",
130 "//mojo/public/c/system:for_shared_library", 171 "//mojo/public/c/system:for_shared_library",
131 ] 172 ]
132 } 173 }
133 174
134 group("services") { 175 group("services") {
135 deps = [ 176 deps = [
177 ":cdm_proxy",
136 ":media", 178 ":media",
137 ":renderer_proxy", 179 ":renderer_proxy",
138 ] 180 ]
139 } 181 }
140 182
141 group("tests") { 183 group("tests") {
142 testonly = true 184 testonly = true
143 deps = [ 185 deps = [
144 ":media_mojo_unittests", 186 ":media_mojo_unittests",
145 ":media_test", 187 ":media_test",
146 ] 188 ]
147 } 189 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698