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

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

Issue 799113004: Update mojo sdk to rev 59145288bae55b0fce4276b017df6a1117bcf00f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add mojo's ply to checklicenses whitelist 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
« no previous file with comments | « media/mojo/interfaces/media_types.mojom ('k') | mojo/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("//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.
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", 27 "//mojo/public/c/system:for_component",
28 "//mojo/services/public/interfaces/geometry", 28 "//mojo/services/geometry/public/interfaces",
29 "//skia", 29 "//skia",
30 ] 30 ]
31 } 31 }
32 32
33 # media::Renderer implementation using mojo::MediaRenderer. 33 # media::Renderer implementation using mojo::MediaRenderer.
34 source_set("renderer_proxy") { 34 source_set("renderer_proxy") {
35 sources = [ 35 sources = [
36 "mojo_demuxer_stream_impl.cc", 36 "mojo_demuxer_stream_impl.cc",
37 "mojo_demuxer_stream_impl.h", 37 "mojo_demuxer_stream_impl.h",
38 "mojo_renderer_factory.cc", 38 "mojo_renderer_factory.cc",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 deps = [ 71 deps = [
72 ":converters", 72 ":converters",
73 "//base", 73 "//base",
74 "//media", 74 "//media",
75 "//media/mojo/interfaces", 75 "//media/mojo/interfaces",
76 "//media:shared_memory_support", 76 "//media:shared_memory_support",
77 "//mojo/common", 77 "//mojo/common",
78 ] 78 ]
79 } 79 }
80 80
81 mojo_native_application("media") {
82 sources = [
83 "mojo_media_application.cc",
84 ]
85
86 deps = [
87 ":renderer_service",
88 "//mojo/application",
89 "//mojo/public/c/system:for_shared_library",
90 ]
91 }
92
93 test("media_mojo_unittests") { 81 test("media_mojo_unittests") {
94 sources = [ 82 sources = [
95 "media_type_converters_unittest.cc", 83 "media_type_converters_unittest.cc",
96 ] 84 ]
97 85
98 deps = [ 86 deps = [
99 ":converters", 87 ":converters",
100 "//base", 88 "//base",
101 "//base/test:test_support", 89 "//base/test:test_support",
102 "//media", 90 "//media",
103 "//media/mojo/interfaces", 91 "//media/mojo/interfaces",
104 "//mojo/edk/system", 92 "//mojo/edk/system",
105 "//mojo/edk/test:run_all_unittests", 93 "//mojo/edk/test:run_all_unittests",
106 "//mojo/environment:chromium", 94 "//mojo/environment:chromium",
107 "//testing/gtest", 95 "//testing/gtest",
108 ] 96 ]
109 } 97 }
110 98
111 # Not a 'test' because this is loaded via mojo_shell as an app. 99 if (!is_component_build) {
112 # To run the test: 100 mojo_native_application("media") {
113 # out/Debug/mojo_shell mojo:media_test 101 sources = [
114 # You can get "mojo_shell" using mojo/public/tools/download_shell_binary.py 102 "mojo_media_application.cc",
115 mojo_native_application("media_test") { 103 ]
116 testonly = true
117 sources = [
118 "media_renderer_apptest.cc",
119 ]
120 104
121 deps = [ 105 deps = [
122 ":media", 106 ":renderer_service",
123 ":renderer_proxy", 107 "//mojo/application",
124 "//base", 108 "//mojo/public/c/system:for_shared_library",
125 "//media", 109 ]
126 "//media/mojo/interfaces", 110 }
127 "//media:shared_memory_support", 111
128 "//mojo/application", 112 # Not a 'test' because this is loaded via mojo_shell as an app.
129 "//mojo/application:test_support", 113 # To run the test:
130 "//mojo/common", 114 # out/Debug/mojo_shell mojo:media_test
131 "//mojo/environment:chromium", 115 # You can get "mojo_shell" using mojo/public/tools/download_shell_binary.py
132 "//mojo/public/c/system:for_shared_library", 116 mojo_native_application("media_test") {
133 ] 117 testonly = true
118 sources = [
119 "media_renderer_apptest.cc",
120 ]
121
122 deps = [
123 ":media",
124 ":renderer_proxy",
125 "//base",
126 "//media",
127 "//media/mojo/interfaces",
128 "//media:shared_memory_support",
129 "//mojo/application",
130 "//mojo/application:test_support",
131 "//mojo/common",
132 "//mojo/environment:chromium",
133 "//mojo/public/c/system:for_shared_library",
134 ]
135 }
134 } 136 }
135 137
136 group("services") { 138 group("services") {
137 deps = [ 139 deps = [
138 ":media",
139 ":renderer_proxy", 140 ":renderer_proxy",
140 ] 141 ]
142
143 if (!is_component_build) {
144 deps += [ ":media" ]
145 }
141 } 146 }
142 147
143 group("tests") { 148 group("tests") {
144 testonly = true 149 testonly = true
145 deps = [ 150 deps = [
146 ":media_mojo_unittests", 151 ":media_mojo_unittests",
147 ":media_test",
148 ] 152 ]
153
154 if (!is_component_build) {
155 deps += [ ":media_test" ]
156 }
149 } 157 }
OLDNEW
« no previous file with comments | « media/mojo/interfaces/media_types.mojom ('k') | mojo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698