OLD | NEW |
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("//third_party/mojo/src/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. |
11 # - unittests: Unit tests for a particular class/file. | 11 # - unittests: Unit tests for a particular class/file. |
12 # - test: Tests for a particular app, e.g. media. | 12 # - test: Tests for a particular app, e.g. media. |
13 | 13 |
14 source_set("converters") { | 14 source_set("converters") { |
15 sources = [ | 15 sources = [ |
16 "media_type_converters.cc", | 16 "media_type_converters.cc", |
17 "media_type_converters.h", | 17 "media_type_converters.h", |
18 ] | 18 ] |
19 | 19 |
20 deps = [ | 20 deps = [ |
21 "//base", | 21 "//base", |
22 "//media", | 22 "//media", |
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", | |
28 "//mojo/services/geometry/public/interfaces", | 27 "//mojo/services/geometry/public/interfaces", |
29 "//skia", | 28 "//skia", |
| 29 "//third_party/mojo/src/mojo/public/c/system:for_component", |
30 ] | 30 ] |
31 } | 31 } |
32 | 32 |
33 source_set("cdm_proxy") { | 33 source_set("cdm_proxy") { |
34 deps = [ | 34 deps = [ |
35 ":converters", | 35 ":converters", |
36 "//base", | 36 "//base", |
37 "//media", | 37 "//media", |
38 "//media/mojo/interfaces", | 38 "//media/mojo/interfaces", |
39 "//mojo/public/interfaces/application", | |
40 "//mojo/common", | 39 "//mojo/common", |
41 "//mojo/environment:chromium", | 40 "//mojo/environment:chromium", |
42 "//mojo/public/c/system:for_component", | 41 "//third_party/mojo/src/mojo/public/interfaces/application", |
43 "//mojo/public/cpp/application", | 42 "//third_party/mojo/src/mojo/public/c/system:for_component", |
| 43 "//third_party/mojo/src/mojo/public/cpp/application", |
44 ] | 44 ] |
45 | 45 |
46 sources = [ | 46 sources = [ |
47 "mojo_cdm.cc", | 47 "mojo_cdm.cc", |
48 "mojo_cdm.h", | 48 "mojo_cdm.h", |
49 "mojo_type_trait.h", | 49 "mojo_type_trait.h", |
50 ] | 50 ] |
51 } | 51 } |
52 | 52 |
53 source_set("cdm_service") { | 53 source_set("cdm_service") { |
54 deps = [ | 54 deps = [ |
55 ":converters", | 55 ":converters", |
56 "//base", | 56 "//base", |
57 "//media", | 57 "//media", |
58 "//media/mojo/interfaces", | 58 "//media/mojo/interfaces", |
59 "//mojo/public/interfaces/application", | |
60 "//mojo/common", | 59 "//mojo/common", |
61 "//mojo/environment:chromium", | 60 "//mojo/environment:chromium", |
62 "//mojo/public/c/system:for_component", | 61 "//third_party/mojo/src/mojo/public/interfaces/application", |
| 62 "//third_party/mojo/src/mojo/public/c/system:for_component", |
63 ] | 63 ] |
64 | 64 |
65 sources = [ | 65 sources = [ |
66 "mojo_cdm_promise.cc", | 66 "mojo_cdm_promise.cc", |
67 "mojo_cdm_promise.h", | 67 "mojo_cdm_promise.h", |
68 "mojo_cdm_service.cc", | 68 "mojo_cdm_service.cc", |
69 "mojo_cdm_service.h", | 69 "mojo_cdm_service.h", |
70 "mojo_type_trait.h", | 70 "mojo_type_trait.h", |
71 ] | 71 ] |
72 } | 72 } |
73 | 73 |
74 # media::Renderer implementation using mojo::MediaRenderer. | 74 # media::Renderer implementation using mojo::MediaRenderer. |
75 source_set("renderer_proxy") { | 75 source_set("renderer_proxy") { |
76 sources = [ | 76 sources = [ |
77 "mojo_demuxer_stream_impl.cc", | 77 "mojo_demuxer_stream_impl.cc", |
78 "mojo_demuxer_stream_impl.h", | 78 "mojo_demuxer_stream_impl.h", |
79 "mojo_renderer_factory.cc", | 79 "mojo_renderer_factory.cc", |
80 "mojo_renderer_factory.h", | 80 "mojo_renderer_factory.h", |
81 "mojo_renderer_impl.cc", | 81 "mojo_renderer_impl.cc", |
82 "mojo_renderer_impl.h", | 82 "mojo_renderer_impl.h", |
83 ] | 83 ] |
84 | 84 |
85 deps = [ | 85 deps = [ |
86 ":converters", | 86 ":converters", |
87 "//base", | 87 "//base", |
88 "//media", | 88 "//media", |
89 "//media/mojo/interfaces", | 89 "//media/mojo/interfaces", |
90 "//mojo/common", | 90 "//mojo/common", |
91 "//mojo/environment:chromium", | 91 "//mojo/environment:chromium", |
92 "//mojo/public/c/system:for_component", | 92 "//third_party/mojo/src/mojo/public/c/system:for_component", |
93 "//mojo/public/cpp/application", | 93 "//third_party/mojo/src/mojo/public/cpp/application", |
94 "//mojo/public/interfaces/application", | 94 "//third_party/mojo/src/mojo/public/interfaces/application", |
95 ] | 95 ] |
96 } | 96 } |
97 | 97 |
98 # MediaRenderer service; without a specific config. | 98 # MediaRenderer service; without a specific config. |
99 source_set("renderer_service_generic") { | 99 source_set("renderer_service_generic") { |
100 sources = [ | 100 sources = [ |
101 "demuxer_stream_provider_shim.cc", | 101 "demuxer_stream_provider_shim.cc", |
102 "demuxer_stream_provider_shim.h", | 102 "demuxer_stream_provider_shim.h", |
103 "mojo_demuxer_stream_adapter.cc", | 103 "mojo_demuxer_stream_adapter.cc", |
104 "mojo_demuxer_stream_adapter.h", | 104 "mojo_demuxer_stream_adapter.h", |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 sources = [ | 136 sources = [ |
137 "media_type_converters_unittest.cc", | 137 "media_type_converters_unittest.cc", |
138 ] | 138 ] |
139 | 139 |
140 deps = [ | 140 deps = [ |
141 ":converters", | 141 ":converters", |
142 "//base", | 142 "//base", |
143 "//base/test:test_support", | 143 "//base/test:test_support", |
144 "//media", | 144 "//media", |
145 "//media/mojo/interfaces", | 145 "//media/mojo/interfaces", |
146 "//mojo/edk/system", | |
147 "//mojo/edk/test:run_all_unittests", | |
148 "//mojo/environment:chromium", | 146 "//mojo/environment:chromium", |
149 "//testing/gtest", | 147 "//testing/gtest", |
| 148 "//third_party/mojo/src/mojo/edk/system", |
| 149 "//third_party/mojo/src/mojo/edk/test:run_all_unittests", |
150 ] | 150 ] |
151 } | 151 } |
152 | 152 |
153 if (!is_component_build) { | 153 if (!is_component_build) { |
154 mojo_native_application("media") { | 154 mojo_native_application("media") { |
155 sources = [ | 155 sources = [ |
156 "mojo_media_application.cc", | 156 "mojo_media_application.cc", |
157 ] | 157 ] |
158 | 158 |
159 deps = [ | 159 deps = [ |
160 ":renderer_service", | 160 ":renderer_service", |
161 "//mojo/application", | 161 "//mojo/application", |
162 "//mojo/public/c/system:for_shared_library", | 162 "//third_party/mojo/src/mojo/public/c/system:for_shared_library", |
163 ] | 163 ] |
164 } | 164 } |
165 | 165 |
166 # Note, this 'test' must be loaded via mojo_shell as an app: | 166 # Note, this 'test' must be loaded via mojo_shell as an app: |
167 # | 167 # |
168 # out/Debug/mojo_shell mojo:media_test | 168 # out/Debug/mojo_shell mojo:media_test |
169 # | 169 # |
170 # To get "mojo_shell" you must specify "use_prebuilt_mojo_shell=true" in GN. | 170 # To get "mojo_shell" you must specify "use_prebuilt_mojo_shell=true" in GN. |
171 mojo_native_application("media_test") { | 171 mojo_native_application("media_test") { |
172 testonly = true | 172 testonly = true |
(...skipping 18 matching lines...) Expand all Loading... |
191 group("tests") { | 191 group("tests") { |
192 testonly = true | 192 testonly = true |
193 deps = [ | 193 deps = [ |
194 ":media_mojo_unittests", | 194 ":media_mojo_unittests", |
195 ] | 195 ] |
196 | 196 |
197 if (!is_component_build) { | 197 if (!is_component_build) { |
198 deps += [ ":media_test" ] | 198 deps += [ ":media_test" ] |
199 } | 199 } |
200 } | 200 } |
OLD | NEW |