summaryrefslogtreecommitdiffstats
path: root/media/media.gyp
diff options
context:
space:
mode:
authormichaelbai@chromium.org <michaelbai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-02 18:27:37 +0000
committermichaelbai@chromium.org <michaelbai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-02 18:27:37 +0000
commitf2e1da2af95e714268df7c044747ede815b56fd1 (patch)
tree3700245bd07a5639e128344f2bd55a2027510010 /media/media.gyp
parent4297bea874c5620b111cd07bb06bd4e256e7e72b (diff)
downloadchromium_src-f2e1da2af95e714268df7c044747ede815b56fd1.zip
chromium_src-f2e1da2af95e714268df7c044747ede815b56fd1.tar.gz
chromium_src-f2e1da2af95e714268df7c044747ede815b56fd1.tar.bz2
Upstream: Media implementation for Android.
- This CL makes media_unittests linked. - The audio_track_output_stub_android.cc is in place of audio_track_output_android.cc because the Java environment is not avaliable yet. - Also changed to dependence on '../third_party/ffmpeg/ffmpeg.gyp' only if os is not Android in media.gyp. BUG= TEST= Review URL: http://codereview.chromium.org/8718014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112739 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/media.gyp')
-rw-r--r--media/media.gyp39
1 files changed, 31 insertions, 8 deletions
diff --git a/media/media.gyp b/media/media.gyp
index 44a7bcc..90d91d3 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',
@@ -130,6 +133,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',
@@ -262,10 +266,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"', {
+ 'dependencies': [
'../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
],
+ }],
+ ['OS == "android"', {
'sources!': [
'base/media_posix.cc',
'ffmpeg/ffmpeg_common.cc',
@@ -297,6 +303,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': [
@@ -339,6 +356,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',
@@ -451,7 +471,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',
@@ -555,7 +575,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': [
@@ -618,11 +637,15 @@
}],
],
}],
- ['OS=="android"', {
- 'dependencies!': [
+ ['OS != "android"', {
+ 'dependencies': [
'../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
],
+ }],
+ ['OS == "android"', {
'sources!': [
+ 'base/test_data_util.cc',
+ 'base/test_data_util.h',
'ffmpeg/ffmpeg_common_unittest.cc',
'filters/ffmpeg_audio_decoder_unittest.cc',
'filters/bitstream_converter_unittest.cc',
@@ -800,7 +823,7 @@
},
],
}],
- ['os_posix == 1 and OS != "mac"', {
+ ['os_posix == 1 and OS != "mac" and OS != "android"', {
'targets': [
{
'target_name': 'player_x11',