summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--BUILD.gn1
-rw-r--r--DEPS2
-rw-r--r--media/BUILD.gn88
3 files changed, 45 insertions, 46 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 0c7274a..9ea0980 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -38,7 +38,6 @@ group("root") {
"//gpu",
"//google_apis",
"//ipc",
- "//media",
"//mojo",
"//mojo/common",
"//mojo/environment:chromium",
diff --git a/DEPS b/DEPS
index 0f4f009..25e877c 100644
--- a/DEPS
+++ b/DEPS
@@ -220,7 +220,7 @@ deps = {
"src/third_party/ffmpeg":
Var("chromium_git") +
- "/chromium/third_party/ffmpeg.git@4b7b36f956209fad838ad87d0129130713fbb00c",
+ "/chromium/third_party/ffmpeg.git@f620cda6d1661f1b2f3214d17b9a254f5c89225f",
"src/third_party/libjingle/source/talk":
(Var("googlecode_url") % "webrtc") + "/trunk/talk@" +
diff --git a/media/BUILD.gn b/media/BUILD.gn
index 2d606e2..ce95d1f 100644
--- a/media/BUILD.gn
+++ b/media/BUILD.gn
@@ -31,7 +31,7 @@ if (is_android) {
# Original conditional: (OS=="linux" or OS=="freebsd" or OS=="solaris") and embedded!=1
use_alsa = false
use_pulseaudio = false
-if (is_posix && !is_android) {
+if (is_posix) {
use_alsa = true
if (!use_cras) {
use_pulseaudio = true
@@ -595,6 +595,8 @@ component("media") {
"base/android/media_player_manager.h",
"base/android/media_resource_getter.cc",
"base/android/media_resource_getter.h",
+ "base/media.cc",
+ "base/media.h",
"base/media_stub.cc",
"midi/midi_manager_android.cc",
"midi/usb_midi_device_android.cc",
@@ -620,7 +622,7 @@ component("media") {
if (is_chromeos) {
# A simple WebM encoder for animated avatars on ChromeOS.
- sources += [
+ sources += [
"formats/webm/chromeos/ebml_writer.cc",
"formats/webm/chromeos/ebml_writer.h",
"formats/webm/chromeos/webm_encoder.cc",
@@ -1286,50 +1288,48 @@ component("shared_memory_support") {
deps = [ "//base" ]
}
-if (media_use_ffmpeg) {
- test("ffmpeg_unittests") {
- sources = [ "ffmpeg/ffmpeg_unittest.cc" ]
+test("ffmpeg_unittests") {
+ sources = [ "ffmpeg/ffmpeg_unittest.cc" ]
- deps = [
- ":media",
- ":media_test_support",
- "//base",
- "//base:i18n",
- "//base/test:test_support",
- "//testing/gtest",
- "//third_party/ffmpeg",
- "//ui/gfx:gfx_test_support",
- ]
- }
+ deps = [
+ ":media",
+ ":media_test_support",
+ "//base",
+ "//base:i18n",
+ "//base/test:test_support",
+ "//testing/gtest",
+ "//third_party/ffmpeg",
+ "//ui/gfx:gfx_test_support",
+ ]
+}
- test("ffmpeg_regression_tests") {
- sources = [
- "base/run_all_unittests.cc",
- "ffmpeg/ffmpeg_regression_tests.cc",
- "filters/pipeline_integration_test_base.cc",
- ]
- configs += [ ":media_config" ]
- deps = [
- ":media",
- ":media_test_support",
- "//base/test:test_support",
- "//testing/gmock",
- "//testing/gtest",
- "//third_party/ffmpeg",
- "//ui/gfx/geometry",
- "//ui/gfx:gfx_test_support",
- ]
- # TODO(ajwong): This was in the original gyp, but it seems silly.
- # ['os_posix==1 and OS!="mac"', {
- # 'conditions': [
- # ['use_allocator!="none"', {
- # 'dependencies': [
- # '../base/allocator/allocator.gyp:allocator',
- # ],
- # }],
- # ],
- # }],
- }
+test("ffmpeg_regression_tests") {
+ sources = [
+ "base/run_all_unittests.cc",
+ "ffmpeg/ffmpeg_regression_tests.cc",
+ "filters/pipeline_integration_test_base.cc",
+ ]
+ configs += [ ":media_config" ]
+ deps = [
+ ":media",
+ ":media_test_support",
+ "//base/test:test_support",
+ "//testing/gmock",
+ "//testing/gtest",
+ "//third_party/ffmpeg",
+ "//ui/gfx/geometry",
+ "//ui/gfx:gfx_test_support",
+ ]
+# TODO(ajwong): This was in the original gyp, but it seems silly.
+# ['os_posix==1 and OS!="mac"', {
+# 'conditions': [
+# ['use_allocator!="none"', {
+# 'dependencies': [
+# '../base/allocator/allocator.gyp:allocator',
+# ],
+# }],
+# ],
+# }],
}
if (use_x11) {