Index: media/media.gyp |
diff --git a/media/media.gyp b/media/media.gyp |
index b47be2c814dcadcc3ece1ba444c5cba1b8a35381..d9853c153b806bc19a7268e09a1234a96bd51569 100644 |
--- a/media/media.gyp |
+++ b/media/media.gyp |
@@ -17,7 +17,6 @@ |
'../base/base.gyp:base', |
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
'../build/temp_gyp/googleurl.gyp:googleurl', |
- '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
'../third_party/openmax/openmax.gyp:il', |
'../ui/ui.gyp:ui', |
], |
@@ -49,6 +48,10 @@ |
'audio/audio_parameters.h', |
'audio/audio_util.cc', |
'audio/audio_util.h', |
+ 'audio/android/audio_manager_android.cc', |
+ 'audio/android/audio_manager_android.h', |
+ 'audio/android/audio_track_output_android.cc', |
+ 'audio/android/audio_track_output_android.h', |
'audio/fake_audio_input_stream.cc', |
'audio/fake_audio_input_stream.h', |
'audio/fake_audio_output_stream.cc', |
@@ -128,6 +131,7 @@ |
'base/h264_bitstream_converter.cc', |
'base/h264_bitstream_converter.h', |
'base/media.h', |
+ 'base/media_android.cc', |
'base/media_export.h', |
'base/media_log.cc', |
'base/media_log.h', |
@@ -260,10 +264,12 @@ |
'conditions': [ |
# Android doesn't use ffmpeg, so make the dependency conditional |
# and exclude the sources which depend on ffmpeg. |
- ['OS=="android"', { |
- 'dependencies!': [ |
+ ['OS!="android"', { |
scherkus (not reviewing)
2011/11/29 20:00:28
nit: spaces around operators here + below
michaelbai
2011/11/30 17:20:34
Done.
|
+ 'dependencies': [ |
'../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
], |
+ }], |
+ ['OS=="android"', { |
'sources!': [ |
'base/media_posix.cc', |
'ffmpeg/ffmpeg_common.cc', |
@@ -295,6 +301,17 @@ |
'video/ffmpeg_video_decode_engine.h', |
], |
}], |
+ # The below 'android' condition were added temporarily and should be |
+ # removed in downstream, because there is no Java environment setup in |
+ # upstream yet. |
+ ['OS=="android"', { |
+ 'sources!':[ |
+ 'audio/android/audio_track_output_android.cc', |
+ ], |
+ 'sources':[ |
+ 'audio/android/audio_track_output_stub_android.cc', |
+ ], |
+ }], |
['OS=="linux" or OS=="freebsd" or OS=="solaris"', { |
'link_settings': { |
'libraries': [ |
@@ -337,6 +354,9 @@ |
], |
}], |
], |
+ }], |
+ ['os_posix == 1 and OS != "android"', { |
+ # Video capture isn't supported in Android yet. |
'sources!': [ |
'video/capture/video_capture_device_dummy.cc', |
'video/capture/video_capture_device_dummy.h', |
@@ -449,7 +469,7 @@ |
'base/simd/scale_yuv_to_rgb_sse2_x64.asm', |
], |
}], |
- [ 'os_posix == 1 and OS != "mac"', { |
+ [ 'os_posix == 1 and OS != "mac" and OS != "android"', { |
'cflags': [ |
'-msse2', |
'-msse3', |
@@ -553,7 +573,6 @@ |
'../base/base.gyp:test_support_base', |
'../testing/gmock.gyp:gmock', |
'../testing/gtest.gyp:gtest', |
- '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
'../ui/ui.gyp:ui', |
], |
'sources': [ |
@@ -617,9 +636,6 @@ |
], |
}], |
['OS=="android"', { |
- 'dependencies!': [ |
- '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
- ], |
'sources!': [ |
'ffmpeg/ffmpeg_common_unittest.cc', |
'filters/ffmpeg_audio_decoder_unittest.cc', |
@@ -798,7 +814,7 @@ |
}, |
], |
}], |
- ['os_posix == 1 and OS != "mac"', { |
+ ['os_posix == 1 and OS != "mac" and OS != "android"', { |
'targets': [ |
{ |
'target_name': 'player_x11', |