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

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: comments addressed 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 "mojo_type_trait.h",
50 ]
51 }
52
53 source_set("cdm_service") {
54 deps = [
55 ":converters",
56 "//base",
57 "//media",
58 "//media/mojo/interfaces",
59 "//mojo/public/interfaces/application",
60 "//mojo/common",
61 "//mojo/environment:chromium",
62 "//mojo/public/c/system:for_component",
63 ]
64
65 sources = [
66 "mojo_cdm_promise.cc",
67 "mojo_cdm_promise.h",
68 "mojo_cdm_service.cc",
69 "mojo_cdm_service.h",
70 "mojo_type_trait.h",
71 ]
72 }
73
33 # media::Renderer implementation using mojo::MediaRenderer. 74 # media::Renderer implementation using mojo::MediaRenderer.
34 source_set("renderer_proxy") { 75 source_set("renderer_proxy") {
35 sources = [ 76 sources = [
36 "mojo_demuxer_stream_impl.cc", 77 "mojo_demuxer_stream_impl.cc",
37 "mojo_demuxer_stream_impl.h", 78 "mojo_demuxer_stream_impl.h",
38 "mojo_renderer_impl.cc", 79 "mojo_renderer_impl.cc",
39 "mojo_renderer_impl.h", 80 "mojo_renderer_impl.h",
40 ] 81 ]
41 82
42 deps = [ 83 deps = [
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 "//mojo/common", 116 "//mojo/common",
76 ] 117 ]
77 } 118 }
78 119
79 mojo_native_application("media") { 120 mojo_native_application("media") {
80 sources = [ 121 sources = [
81 "mojo_media_application.cc", 122 "mojo_media_application.cc",
82 ] 123 ]
83 124
84 deps = [ 125 deps = [
126 ":cdm_service",
85 ":renderer_service", 127 ":renderer_service",
86 "//mojo/application", 128 "//mojo/application",
87 "//mojo/public/c/system:for_shared_library", 129 "//mojo/public/c/system:for_shared_library",
88 ] 130 ]
89 } 131 }
90 132
91 test("media_mojo_unittests") { 133 test("media_mojo_unittests") {
92 sources = [ 134 sources = [
93 "media_type_converters_unittest.cc", 135 "media_type_converters_unittest.cc",
94 ] 136 ]
(...skipping 15 matching lines...) Expand all
110 # To run the test: 152 # To run the test:
111 # out/Debug/mojo_shell mojo:media_test 153 # out/Debug/mojo_shell mojo:media_test
112 # You can get "mojo_shell" using mojo/public/tools/download_shell_binary.py 154 # You can get "mojo_shell" using mojo/public/tools/download_shell_binary.py
113 mojo_native_application("media_test") { 155 mojo_native_application("media_test") {
114 testonly = true 156 testonly = true
115 sources = [ 157 sources = [
116 "media_renderer_apptest.cc", 158 "media_renderer_apptest.cc",
117 ] 159 ]
118 160
119 deps = [ 161 deps = [
162 ":cdm_proxy",
120 ":media", 163 ":media",
121 ":renderer_proxy", 164 ":renderer_proxy",
122 "//base", 165 "//base",
123 "//media", 166 "//media",
124 "//media/mojo/interfaces", 167 "//media/mojo/interfaces",
125 "//media:shared_memory_support", 168 "//media:shared_memory_support",
126 "//mojo/application", 169 "//mojo/application",
127 "//mojo/application:test_support", 170 "//mojo/application:test_support",
128 "//mojo/common", 171 "//mojo/common",
129 "//mojo/environment:chromium", 172 "//mojo/environment:chromium",
130 "//mojo/public/c/system:for_shared_library", 173 "//mojo/public/c/system:for_shared_library",
131 ] 174 ]
132 } 175 }
133 176
134 group("services") { 177 group("services") {
135 deps = [ 178 deps = [
179 ":cdm_proxy",
136 ":media", 180 ":media",
137 ":renderer_proxy", 181 ":renderer_proxy",
138 ] 182 ]
139 } 183 }
140 184
141 group("tests") { 185 group("tests") {
142 testonly = true 186 testonly = true
143 deps = [ 187 deps = [
144 ":media_mojo_unittests", 188 ":media_mojo_unittests",
145 ":media_test", 189 ":media_test",
146 ] 190 ]
147 } 191 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698