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") |
| 6 |
5 # Things needed by multiple targets, like renderer_impl and renderer_app. | 7 # Things needed by multiple targets, like renderer_impl and renderer_app. |
6 # GYP version: media/media.gyp:media_mojo_lib | 8 # GYP version: media/media.gyp:media_mojo_lib |
7 source_set("lib") { | 9 source_set("lib") { |
8 deps = [ | 10 deps = [ |
9 "//base", | 11 "//base", |
10 "//media", | 12 "//media", |
11 "//media/mojo/interfaces", | 13 "//media/mojo/interfaces", |
12 "//mojo/common", | 14 "//mojo/common", |
13 "//mojo/converters/geometry", | 15 "//mojo/converters/geometry", |
14 "//mojo/environment:chromium", | 16 "//mojo/environment:chromium", |
(...skipping 27 matching lines...) Expand all Loading... |
42 sources = [ | 44 sources = [ |
43 "mojo_demuxer_stream_impl.cc", | 45 "mojo_demuxer_stream_impl.cc", |
44 "mojo_demuxer_stream_impl.h", | 46 "mojo_demuxer_stream_impl.h", |
45 "mojo_renderer_impl.cc", | 47 "mojo_renderer_impl.cc", |
46 "mojo_renderer_impl.h", | 48 "mojo_renderer_impl.h", |
47 ] | 49 ] |
48 } | 50 } |
49 | 51 |
50 # mojo media::Renderer application. | 52 # mojo media::Renderer application. |
51 # GYP version: media/media.gyp:mojo_media_renderer_app | 53 # GYP version: media/media.gyp:mojo_media_renderer_app |
52 shared_library("renderer_app") { | 54 mojo_native_application("renderer_app") { |
53 output_name = "mojo_media_renderer_app" | 55 output_name = "mojo_media_renderer_app" |
54 | 56 |
55 deps = [ | 57 deps = [ |
56 "//base", | 58 "//base", |
57 "//media", | 59 "//media", |
58 "//media:shared_memory_support", | 60 "//media:shared_memory_support", |
59 "//media/mojo/interfaces", | 61 "//media/mojo/interfaces", |
60 "//mojo/common", | 62 "//mojo/common", |
61 "//mojo/application", | 63 "//mojo/application", |
62 "//mojo/public/c/system:for_shared_library", | 64 "//mojo/public/c/system:for_shared_library", |
(...skipping 29 matching lines...) Expand all Loading... |
92 ] | 94 ] |
93 } | 95 } |
94 | 96 |
95 # Not a 'test' because this is loaded via mojo_shell as an app. | 97 # Not a 'test' because this is loaded via mojo_shell as an app. |
96 # To run the test: | 98 # To run the test: |
97 # out/Debug/mojo_shell mojo:mojo_media_renderer_apptest | 99 # out/Debug/mojo_shell mojo:mojo_media_renderer_apptest |
98 # You may need to get "mojo_shell" from a mojo checkout and symlink all required | 100 # You may need to get "mojo_shell" from a mojo checkout and symlink all required |
99 # libraries. | 101 # libraries. |
100 # TODO(msw): Fix GYP build for ApplicationTestBase so that we can add a GYP | 102 # TODO(msw): Fix GYP build for ApplicationTestBase so that we can add a GYP |
101 # version of this test. | 103 # version of this test. |
102 shared_library("media_renderer_apptest") { | 104 mojo_native_application("media_renderer_apptest") { |
103 testonly = true | 105 testonly = true |
104 output_name = "mojo_media_renderer_apptest" | 106 output_name = "mojo_media_renderer_apptest" |
105 | 107 |
106 deps = [ | 108 deps = [ |
107 "//base", | 109 "//base", |
108 "//media", | 110 "//media", |
109 "//media:shared_memory_support", | 111 "//media:shared_memory_support", |
110 "//media/mojo/interfaces", | 112 "//media/mojo/interfaces", |
111 "//mojo/application", | 113 "//mojo/application", |
112 "//mojo/application:test_support", | 114 "//mojo/application:test_support", |
(...skipping 18 matching lines...) Expand all Loading... |
131 ] | 133 ] |
132 } | 134 } |
133 | 135 |
134 group("tests") { | 136 group("tests") { |
135 testonly = true | 137 testonly = true |
136 deps = [ | 138 deps = [ |
137 ":mojo_media_lib_unittests", | 139 ":mojo_media_lib_unittests", |
138 ":media_renderer_apptest", | 140 ":media_renderer_apptest", |
139 ] | 141 ] |
140 } | 142 } |
OLD | NEW |