| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//chromecast/chromecast.gni") | 5 import("//chromecast/chromecast.gni") |
| 6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
| 7 | 7 |
| 8 # CMA is not used on Android; exclude CMA-specific targets. | |
| 9 enable_cma = !is_android | |
| 10 | |
| 11 # GYP target: chromecast.gyp:cast_shell_media | 8 # GYP target: chromecast.gyp:cast_shell_media |
| 12 source_set("media") { | 9 source_set("media") { |
| 13 sources = [ | 10 sources = [ |
| 14 "cast_media_client.cc", | 11 "cast_media_client.cc", |
| 15 "cast_media_client.h", | 12 "cast_media_client.h", |
| 16 "shared_memory_chunk.cc", | |
| 17 "shared_memory_chunk.h", | |
| 18 ] | 13 ] |
| 19 | 14 |
| 20 deps = [ | 15 deps = [ |
| 21 "//base", | 16 "//base", |
| 22 "//chromecast/media/base", | 17 "//chromecast/media/base", |
| 23 "//chromecast/media/cma/ipc", | |
| 24 "//chromecast/public:public", | 18 "//chromecast/public:public", |
| 25 "//media", | 19 "//media", |
| 26 ] | 20 ] |
| 27 | 21 |
| 28 if (enable_cma) { | |
| 29 public_deps = [ | |
| 30 ":cma_messages", | |
| 31 ] | |
| 32 } | |
| 33 | |
| 34 if (is_android) { | 22 if (is_android) { |
| 35 sources += [ | 23 sources += [ |
| 36 "cast_media_client_android.cc", | 24 "cast_media_client_android.cc", |
| 37 "cast_media_client_android.h", | 25 "cast_media_client_android.h", |
| 38 ] | 26 ] |
| 39 deps += [ | 27 deps += [ |
| 40 "//chromecast/media/base", | 28 "//chromecast/media/base", |
| 41 "//components/cdm/common", | 29 "//components/cdm/common", |
| 42 "//media/base/android", | 30 "//media/base/android", |
| 43 ] | 31 ] |
| 44 } | 32 } |
| 45 | 33 |
| 46 if (use_playready) { | 34 if (use_playready) { |
| 47 public_configs = [ "//chromecast:playready_config" ] | 35 public_configs = [ "//chromecast:playready_config" ] |
| 48 } | 36 } |
| 49 } | 37 } |
| 50 | 38 |
| 51 mojom("interfaces") { | 39 mojom("interfaces") { |
| 52 sources = [ | 40 sources = [ |
| 53 "media_caps.mojom", | 41 "media_caps.mojom", |
| 54 ] | 42 ] |
| 55 } | 43 } |
| 56 | |
| 57 if (enable_cma) { | |
| 58 # GYP target: chromecast.gyp:cast_shell_media | |
| 59 source_set("cma_messages") { | |
| 60 sources = [ | |
| 61 "cma_ipc_common.h", | |
| 62 "cma_message_generator.cc", | |
| 63 "cma_message_generator.h", | |
| 64 "cma_messages.h", | |
| 65 "cma_param_traits.cc", | |
| 66 "cma_param_traits.h", | |
| 67 "cma_param_traits_macros.h", | |
| 68 ] | |
| 69 | |
| 70 deps = [ | |
| 71 "//chromecast/media/cma/pipeline", | |
| 72 "//content/public/common", | |
| 73 "//media", | |
| 74 "//media:shared_memory_support", | |
| 75 "//media/gpu/ipc/common", | |
| 76 "//ui/gfx/ipc", | |
| 77 "//ui/gfx/ipc/skia", | |
| 78 ] | |
| 79 } | |
| 80 } | |
| OLD | NEW |