Chromium Code Reviews| 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("//build/config/chromecast_build.gni") | |
| 6 | |
| 5 source_set("backend") { | 7 source_set("backend") { |
| 6 sources = [ | 8 sources = [ |
| 7 "audio_decoder_default.cc", | |
| 8 "audio_decoder_default.h", | |
| 9 "audio_decoder_wrapper.cc", | 9 "audio_decoder_wrapper.cc", |
| 10 "audio_decoder_wrapper.h", | 10 "audio_decoder_wrapper.h", |
| 11 "media_pipeline_backend_default.cc", | |
| 12 "media_pipeline_backend_default.h", | |
| 13 "media_pipeline_backend_manager.cc", | 11 "media_pipeline_backend_manager.cc", |
| 14 "media_pipeline_backend_manager.h", | 12 "media_pipeline_backend_manager.h", |
| 15 "media_pipeline_backend_wrapper.cc", | 13 "media_pipeline_backend_wrapper.cc", |
| 16 "media_pipeline_backend_wrapper.h", | 14 "media_pipeline_backend_wrapper.h", |
| 17 "video_decoder_default.cc", | |
| 18 "video_decoder_default.h", | |
| 19 ] | 15 ] |
| 20 | 16 |
| 21 public_deps = [ | 17 public_deps = [ |
| 22 "//chromecast/public", | 18 "//chromecast/public", |
| 23 "//chromecast/public/media", | 19 "//chromecast/public/media", |
| 24 ] | 20 ] |
| 25 | 21 |
| 26 deps = [ | 22 deps = [ |
| 27 "//base", | 23 "//base", |
| 28 "//chromecast:chromecast_features", | 24 "//chromecast:chromecast_features", |
| 29 ] | 25 ] |
| 26 | |
| 27 if (is_android) { | |
| 28 sources += [ "cast_media_android.cc" ] | |
|
byungchul
2016/12/16 18:26:29
why doesn't android link libcast_media? In general
alokp
2016/12/16 18:29:37
slan@ asked me to do this
slan
2016/12/16 23:04:14
This was split only recently (https://codereview.c
byungchul
2016/12/16 23:53:00
I am also fine with this as long as Luke is fine.
| |
| 29 } else { | |
| 30 deps += [ ":libcast_media_1.0" ] | |
| 31 } | |
| 30 } | 32 } |
| 33 | |
| 34 # Target for OEM partners to override media shared library, i.e. | |
| 35 # libcast_media_1.0.so. This target is only used to build executables | |
| 36 # with correct linkage information. | |
| 37 shared_library("libcast_media_1.0") { | |
|
byungchul
2016/12/16 18:26:29
@Stepghen,
Doesn't it need a version script to ex
alokp
2016/12/16 18:29:37
We have scrapped the version script idea for now A
slan
2016/12/16 23:04:14
Byungchul: This is OK, because we are only linking
byungchul
2016/12/16 23:53:00
Okay, then production build still links libcast_me
| |
| 38 deps = [ | |
| 39 "//chromecast/public", | |
| 40 "//chromecast/public/media", | |
| 41 ] | |
| 42 | |
| 43 if (is_cast_desktop_build) { | |
| 44 sources = [ | |
| 45 "cast_media_default.cc", | |
| 46 ] | |
| 47 deps += [ | |
| 48 ":default", | |
| 49 "//base", | |
| 50 "//chromecast/base", | |
| 51 ] | |
| 52 } else { | |
| 53 sources = [ | |
| 54 "cast_media_dummy.cc", | |
| 55 ] | |
| 56 } | |
| 57 } | |
| 58 | |
| 59 # Default implementation of media backend used on desktop. | |
| 60 source_set("default") { | |
| 61 sources = [ | |
| 62 "audio_decoder_default.cc", | |
| 63 "audio_decoder_default.h", | |
| 64 "media_pipeline_backend_default.cc", | |
| 65 "media_pipeline_backend_default.h", | |
| 66 "video_decoder_default.cc", | |
| 67 "video_decoder_default.h", | |
| 68 ] | |
| 69 | |
| 70 deps = [ | |
| 71 "//base", | |
| 72 "//chromecast/base", | |
| 73 "//chromecast/public/media", | |
| 74 ] | |
| 75 } | |
| OLD | NEW |