| 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 # GYP version: media/media.gyp:mojo_media_lib | 5 # GYP version: media/media.gyp:media_mojo_lib |
| 6 source_set("lib") { | 6 source_set("lib") { |
| 7 deps = [ | 7 deps = [ |
| 8 "//base", | 8 "//base", |
| 9 "//media", | 9 "//media", |
| 10 "//media/mojo/interfaces" | 10 "//media/mojo/interfaces", |
| 11 "//mojo/common", | 11 "//mojo/common", |
| 12 "//mojo/environment:chromium", | 12 "//mojo/environment:chromium", |
| 13 "//mojo/public/c/system:for_component", | 13 "//mojo/public/c/system:for_component", |
| 14 ] | 14 ] |
| 15 | 15 |
| 16 sources = [ | 16 sources = [ |
| 17 "media_type_converters.cc", | 17 "media_type_converters.cc", |
| 18 "media_type_converters.h", | 18 "media_type_converters.h", |
| 19 "mojo_demuxer_stream_impl.cc", |
| 20 "mojo_demuxer_stream_impl.h", |
| 21 "mojo_renderer_impl.cc", |
| 22 "mojo_renderer_impl.h", |
| 19 ] | 23 ] |
| 20 } | 24 } |
| 21 | 25 |
| 22 test("mojo_media_lib_unittests") { | 26 # GYP version: media/media.gyp:media_mojo_renderer_app |
| 27 shared_library("renderer_app") { |
| 28 output_name = "media_mojo_renderer_app" |
| 29 |
| 30 deps = [ |
| 31 "//base", |
| 32 "//media", |
| 33 "//media:shared_memory_support", |
| 34 "//media/mojo/interfaces", |
| 35 "//mojo/common", |
| 36 "//mojo/application", |
| 37 "//mojo/public/c/system:for_shared_library", |
| 38 ] |
| 39 |
| 40 sources = [ |
| 41 "mojo_demuxer_stream_adapter.cc", |
| 42 "mojo_demuxer_stream_adapter.h", |
| 43 "mojo_renderer_service.cc", |
| 44 "mojo_renderer_service.h", |
| 45 ] |
| 46 } |
| 47 |
| 48 test("media_mojo_lib_unittests") { |
| 23 sources = [ | 49 sources = [ |
| 24 "media_type_converters_unittest.cc", | 50 "media_type_converters_unittest.cc", |
| 25 ] | 51 ] |
| 26 | 52 |
| 27 deps = [ | 53 deps = [ |
| 54 "//base", |
| 28 "//base/test:test_support", | 55 "//base/test:test_support", |
| 56 "//media", |
| 57 "//media/mojo/interfaces", |
| 58 "//mojo/common/test:run_all_unittests", |
| 29 "//mojo/environment:chromium", | 59 "//mojo/environment:chromium", |
| 60 "//mojo/system", |
| 30 "//testing/gtest", | 61 "//testing/gtest", |
| 31 ":lib" | 62 ":lib" |
| 32 ] | 63 ] |
| 33 } | 64 } |
| 65 |
| 66 # GYP version: media/media.gyp:media_mojo_renderer_apptest |
| 67 # Not a 'test' because this is loaded via mojo_shell as an app. |
| 68 shared_library("renderer_apptest") { |
| 69 testonly = true |
| 70 output_name = "media_mojo_renderer_apptest" |
| 71 |
| 72 deps = [ |
| 73 "//base", |
| 74 "//base/test:test_support", |
| 75 "//media", |
| 76 "//media/mojo/interfaces", |
| 77 "//mojo/common", |
| 78 "//mojo/application", |
| 79 "//testing/gtest", |
| 80 ":renderer_app", |
| 81 "//mojo/public/c/system:for_shared_library", |
| 82 ] |
| 83 |
| 84 sources = [ |
| 85 "renderer_unittest.cc", |
| 86 ] |
| 87 } |
| 88 |
| 89 group("services") { |
| 90 deps = [ |
| 91 ":lib", |
| 92 ":renderer_app", |
| 93 ] |
| 94 } |
| 95 |
| 96 group("tests") { |
| 97 testonly = true |
| 98 deps = [ |
| 99 ":media_mojo_lib_unittests", |
| 100 ":renderer_apptest", |
| 101 ] |
| 102 } |
| OLD | NEW |