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

Unified Diff: chromecast/media/cma/backend/BUILD.gn

Issue 2577743002: [chromecast] Deletes libcast_media_1.0_default_core. (Closed)
Patch Set: rebase + simplify libcast_media target Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/media/base/cast_media_dummy.cc ('k') | chromecast/media/cma/backend/alsa/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/backend/BUILD.gn
diff --git a/chromecast/media/cma/backend/BUILD.gn b/chromecast/media/cma/backend/BUILD.gn
index 359e67b8cafaacb2cd8bd75776be493b3a647a83..8f6c822c81f6bbbf40c6f1b420f34d3873905e27 100644
--- a/chromecast/media/cma/backend/BUILD.gn
+++ b/chromecast/media/cma/backend/BUILD.gn
@@ -2,20 +2,16 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/chromecast_build.gni")
+
source_set("backend") {
sources = [
- "audio_decoder_default.cc",
- "audio_decoder_default.h",
"audio_decoder_wrapper.cc",
"audio_decoder_wrapper.h",
- "media_pipeline_backend_default.cc",
- "media_pipeline_backend_default.h",
"media_pipeline_backend_manager.cc",
"media_pipeline_backend_manager.h",
"media_pipeline_backend_wrapper.cc",
"media_pipeline_backend_wrapper.h",
- "video_decoder_default.cc",
- "video_decoder_default.h",
]
public_deps = [
@@ -27,4 +23,56 @@ source_set("backend") {
"//base",
"//chromecast:chromecast_features",
]
+
+ if (is_android) {
+ sources += [ "cast_media_android.cc" ]
+ } else {
+ deps += [ ":libcast_media_1.0" ]
+ }
+}
+
+# Target for OEM partners to override media shared library, i.e.
+# libcast_media_1.0.so. This target is only used to build executables
+# with correct linkage information.
+shared_library("libcast_media_1.0") {
+ if (is_cast_desktop_build) {
+ deps = [
+ ":default",
+ ]
+ } else {
+ deps = [
+ ":dummy",
+ ]
+ }
+}
+
+# Default implementation of media backend used on desktop.
+source_set("default") {
+ sources = [
+ "audio_decoder_default.cc",
+ "audio_decoder_default.h",
+ "cast_media_default.cc",
+ "media_pipeline_backend_default.cc",
+ "media_pipeline_backend_default.h",
+ "video_decoder_default.cc",
+ "video_decoder_default.h",
+ ]
+
+ deps = [
+ "//base",
+ "//chromecast/base",
+ "//chromecast/public/media",
+ ]
+}
+
+# Dummy implementation of media backend used on chromecast devices.
+# Must not depend on anything outside //chromecast/public.
+source_set("dummy") {
+ sources = [
+ "cast_media_dummy.cc",
+ ]
+
+ deps = [
+ "//chromecast/public",
+ ]
}
« no previous file with comments | « chromecast/media/base/cast_media_dummy.cc ('k') | chromecast/media/cma/backend/alsa/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698