| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 # Override to dynamically link the PulseAudio library. | 8 # Override to dynamically link the PulseAudio library. |
| 9 'use_pulseaudio%': 0, | 9 'use_pulseaudio%': 0, |
| 10 }, | 10 }, |
| 11 'targets': [ | 11 'targets': [ |
| 12 { | 12 { |
| 13 'target_name': 'media', | 13 'target_name': 'media', |
| 14 'type': '<(component)', | 14 'type': '<(component)', |
| 15 'dependencies': [ | 15 'dependencies': [ |
| 16 'yuv_convert', | 16 'yuv_convert', |
| 17 '../base/base.gyp:base', | 17 '../base/base.gyp:base', |
| 18 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 18 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
| 19 '../build/temp_gyp/googleurl.gyp:googleurl', | 19 '../build/temp_gyp/googleurl.gyp:googleurl', |
| 20 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | |
| 21 '../third_party/openmax/openmax.gyp:il', | 20 '../third_party/openmax/openmax.gyp:il', |
| 22 '../ui/ui.gyp:ui', | 21 '../ui/ui.gyp:ui', |
| 23 ], | 22 ], |
| 24 'defines': [ | 23 'defines': [ |
| 25 'MEDIA_IMPLEMENTATION', | 24 'MEDIA_IMPLEMENTATION', |
| 26 ], | 25 ], |
| 27 'include_dirs': [ | 26 'include_dirs': [ |
| 28 '..', | 27 '..', |
| 29 ], | 28 ], |
| 30 'sources': [ | 29 'sources': [ |
| (...skipping 11 matching lines...) Expand all Loading... |
| 42 'audio/audio_output_controller.cc', | 41 'audio/audio_output_controller.cc', |
| 43 'audio/audio_output_controller.h', | 42 'audio/audio_output_controller.h', |
| 44 'audio/audio_output_dispatcher.cc', | 43 'audio/audio_output_dispatcher.cc', |
| 45 'audio/audio_output_dispatcher.h', | 44 'audio/audio_output_dispatcher.h', |
| 46 'audio/audio_output_proxy.cc', | 45 'audio/audio_output_proxy.cc', |
| 47 'audio/audio_output_proxy.h', | 46 'audio/audio_output_proxy.h', |
| 48 'audio/audio_parameters.cc', | 47 'audio/audio_parameters.cc', |
| 49 'audio/audio_parameters.h', | 48 'audio/audio_parameters.h', |
| 50 'audio/audio_util.cc', | 49 'audio/audio_util.cc', |
| 51 'audio/audio_util.h', | 50 'audio/audio_util.h', |
| 51 'audio/android/audio_manager_android.cc', |
| 52 'audio/android/audio_manager_android.h', |
| 53 'audio/android/audio_track_output_android.cc', |
| 54 'audio/android/audio_track_output_android.h', |
| 52 'audio/fake_audio_input_stream.cc', | 55 'audio/fake_audio_input_stream.cc', |
| 53 'audio/fake_audio_input_stream.h', | 56 'audio/fake_audio_input_stream.h', |
| 54 'audio/fake_audio_output_stream.cc', | 57 'audio/fake_audio_output_stream.cc', |
| 55 'audio/fake_audio_output_stream.h', | 58 'audio/fake_audio_output_stream.h', |
| 56 'audio/linux/audio_manager_linux.cc', | 59 'audio/linux/audio_manager_linux.cc', |
| 57 'audio/linux/audio_manager_linux.h', | 60 'audio/linux/audio_manager_linux.h', |
| 58 'audio/linux/alsa_input.cc', | 61 'audio/linux/alsa_input.cc', |
| 59 'audio/linux/alsa_input.h', | 62 'audio/linux/alsa_input.h', |
| 60 'audio/linux/alsa_output.cc', | 63 'audio/linux/alsa_output.cc', |
| 61 'audio/linux/alsa_output.h', | 64 'audio/linux/alsa_output.h', |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 'base/filter_collection.cc', | 126 'base/filter_collection.cc', |
| 124 'base/filter_collection.h', | 127 'base/filter_collection.h', |
| 125 'base/filter_factories.cc', | 128 'base/filter_factories.cc', |
| 126 'base/filter_factories.h', | 129 'base/filter_factories.h', |
| 127 'base/filter_host.h', | 130 'base/filter_host.h', |
| 128 'base/filters.cc', | 131 'base/filters.cc', |
| 129 'base/filters.h', | 132 'base/filters.h', |
| 130 'base/h264_bitstream_converter.cc', | 133 'base/h264_bitstream_converter.cc', |
| 131 'base/h264_bitstream_converter.h', | 134 'base/h264_bitstream_converter.h', |
| 132 'base/media.h', | 135 'base/media.h', |
| 136 'base/media_android.cc', |
| 133 'base/media_export.h', | 137 'base/media_export.h', |
| 134 'base/media_log.cc', | 138 'base/media_log.cc', |
| 135 'base/media_log.h', | 139 'base/media_log.h', |
| 136 'base/media_log_event.h', | 140 'base/media_log_event.h', |
| 137 'base/media_posix.cc', | 141 'base/media_posix.cc', |
| 138 'base/media_switches.cc', | 142 'base/media_switches.cc', |
| 139 'base/media_switches.h', | 143 'base/media_switches.h', |
| 140 'base/media_win.cc', | 144 'base/media_win.cc', |
| 141 'base/message_loop_factory.cc', | 145 'base/message_loop_factory.cc', |
| 142 'base/message_loop_factory.h', | 146 'base/message_loop_factory.h', |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 'webm/webm_tracks_parser.h', | 259 'webm/webm_tracks_parser.h', |
| 256 ], | 260 ], |
| 257 'direct_dependent_settings': { | 261 'direct_dependent_settings': { |
| 258 'include_dirs': [ | 262 'include_dirs': [ |
| 259 '..', | 263 '..', |
| 260 ], | 264 ], |
| 261 }, | 265 }, |
| 262 'conditions': [ | 266 'conditions': [ |
| 263 # Android doesn't use ffmpeg, so make the dependency conditional | 267 # Android doesn't use ffmpeg, so make the dependency conditional |
| 264 # and exclude the sources which depend on ffmpeg. | 268 # and exclude the sources which depend on ffmpeg. |
| 265 ['OS=="android"', { | 269 ['OS != "android"', { |
| 266 'dependencies!': [ | 270 'dependencies': [ |
| 267 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | 271 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
| 268 ], | 272 ], |
| 273 }], |
| 274 ['OS == "android"', { |
| 269 'sources!': [ | 275 'sources!': [ |
| 270 'base/media_posix.cc', | 276 'base/media_posix.cc', |
| 271 'ffmpeg/ffmpeg_common.cc', | 277 'ffmpeg/ffmpeg_common.cc', |
| 272 'ffmpeg/ffmpeg_common.h', | 278 'ffmpeg/ffmpeg_common.h', |
| 273 'ffmpeg/file_protocol.cc', | 279 'ffmpeg/file_protocol.cc', |
| 274 'ffmpeg/file_protocol.h', | 280 'ffmpeg/file_protocol.h', |
| 275 'filters/audio_file_reader.cc', | 281 'filters/audio_file_reader.cc', |
| 276 'filters/audio_file_reader.h', | 282 'filters/audio_file_reader.h', |
| 277 'filters/bitstream_converter.cc', | 283 'filters/bitstream_converter.cc', |
| 278 'filters/bitstream_converter.h', | 284 'filters/bitstream_converter.h', |
| (...skipping 11 matching lines...) Expand all Loading... |
| 290 'filters/ffmpeg_h264_bitstream_converter.cc', | 296 'filters/ffmpeg_h264_bitstream_converter.cc', |
| 291 'filters/ffmpeg_h264_bitstream_converter.h', | 297 'filters/ffmpeg_h264_bitstream_converter.h', |
| 292 'filters/ffmpeg_glue.cc', | 298 'filters/ffmpeg_glue.cc', |
| 293 'filters/ffmpeg_glue.h', | 299 'filters/ffmpeg_glue.h', |
| 294 'filters/ffmpeg_video_decoder.cc', | 300 'filters/ffmpeg_video_decoder.cc', |
| 295 'filters/ffmpeg_video_decoder.h', | 301 'filters/ffmpeg_video_decoder.h', |
| 296 'video/ffmpeg_video_decode_engine.cc', | 302 'video/ffmpeg_video_decode_engine.cc', |
| 297 'video/ffmpeg_video_decode_engine.h', | 303 'video/ffmpeg_video_decode_engine.h', |
| 298 ], | 304 ], |
| 299 }], | 305 }], |
| 306 # The below 'android' condition were added temporarily and should be |
| 307 # removed in downstream, because there is no Java environment setup in |
| 308 # upstream yet. |
| 309 ['OS == "android"', { |
| 310 'sources!':[ |
| 311 'audio/android/audio_track_output_android.cc', |
| 312 ], |
| 313 'sources':[ |
| 314 'audio/android/audio_track_output_stub_android.cc', |
| 315 ], |
| 316 }], |
| 300 ['OS=="linux" or OS=="freebsd" or OS=="solaris"', { | 317 ['OS=="linux" or OS=="freebsd" or OS=="solaris"', { |
| 301 'link_settings': { | 318 'link_settings': { |
| 302 'libraries': [ | 319 'libraries': [ |
| 303 '-lasound', | 320 '-lasound', |
| 304 ], | 321 ], |
| 305 }, | 322 }, |
| 306 }], | 323 }], |
| 307 ['OS=="openbsd"', { | 324 ['OS=="openbsd"', { |
| 308 'sources/': [ ['exclude', '/alsa_' ], | 325 'sources/': [ ['exclude', '/alsa_' ], |
| 309 ['exclude', '/audio_manager_linux' ] ], | 326 ['exclude', '/audio_manager_linux' ] ], |
| (...skipping 22 matching lines...) Expand all Loading... |
| 332 'defines': [ | 349 'defines': [ |
| 333 'USE_PULSEAUDIO', | 350 'USE_PULSEAUDIO', |
| 334 ], | 351 ], |
| 335 }, { # else: use_pulseaudio == 0 | 352 }, { # else: use_pulseaudio == 0 |
| 336 'sources!': [ | 353 'sources!': [ |
| 337 'audio/pulse/pulse_output.cc', | 354 'audio/pulse/pulse_output.cc', |
| 338 'audio/pulse/pulse_output.h', | 355 'audio/pulse/pulse_output.h', |
| 339 ], | 356 ], |
| 340 }], | 357 }], |
| 341 ], | 358 ], |
| 359 }], |
| 360 ['os_posix == 1 and OS != "android"', { |
| 361 # Video capture isn't supported in Android yet. |
| 342 'sources!': [ | 362 'sources!': [ |
| 343 'video/capture/video_capture_device_dummy.cc', | 363 'video/capture/video_capture_device_dummy.cc', |
| 344 'video/capture/video_capture_device_dummy.h', | 364 'video/capture/video_capture_device_dummy.h', |
| 345 ], | 365 ], |
| 346 }], | 366 }], |
| 347 ['OS=="mac"', { | 367 ['OS=="mac"', { |
| 348 'link_settings': { | 368 'link_settings': { |
| 349 'libraries': [ | 369 'libraries': [ |
| 350 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', | 370 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', |
| 351 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', | 371 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 'base/simd/yuv_to_rgb_table.h', | 464 'base/simd/yuv_to_rgb_table.h', |
| 445 ], | 465 ], |
| 446 'conditions': [ | 466 'conditions': [ |
| 447 [ 'target_arch == "x64"', { | 467 [ 'target_arch == "x64"', { |
| 448 # Source files optimized for X64 systems. | 468 # Source files optimized for X64 systems. |
| 449 'sources': [ | 469 'sources': [ |
| 450 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm', | 470 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm', |
| 451 'base/simd/scale_yuv_to_rgb_sse2_x64.asm', | 471 'base/simd/scale_yuv_to_rgb_sse2_x64.asm', |
| 452 ], | 472 ], |
| 453 }], | 473 }], |
| 454 [ 'os_posix == 1 and OS != "mac"', { | 474 [ 'os_posix == 1 and OS != "mac" and OS != "android"', { |
| 455 'cflags': [ | 475 'cflags': [ |
| 456 '-msse2', | 476 '-msse2', |
| 457 '-msse3', | 477 '-msse3', |
| 458 '-mssse3', | 478 '-mssse3', |
| 459 ], | 479 ], |
| 460 }], | 480 }], |
| 461 [ 'OS == "openbsd"', { | 481 [ 'OS == "openbsd"', { |
| 462 # OpenBSD's gcc (4.2.1) does not support -mssse3 | 482 # OpenBSD's gcc (4.2.1) does not support -mssse3 |
| 463 'cflags!': [ | 483 'cflags!': [ |
| 464 '-mssse3', | 484 '-mssse3', |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 'type': 'executable', | 568 'type': 'executable', |
| 549 'dependencies': [ | 569 'dependencies': [ |
| 550 'media', | 570 'media', |
| 551 'media_test_support', | 571 'media_test_support', |
| 552 'yuv_convert', | 572 'yuv_convert', |
| 553 '../base/base.gyp:base', | 573 '../base/base.gyp:base', |
| 554 '../base/base.gyp:base_i18n', | 574 '../base/base.gyp:base_i18n', |
| 555 '../base/base.gyp:test_support_base', | 575 '../base/base.gyp:test_support_base', |
| 556 '../testing/gmock.gyp:gmock', | 576 '../testing/gmock.gyp:gmock', |
| 557 '../testing/gtest.gyp:gtest', | 577 '../testing/gtest.gyp:gtest', |
| 558 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | |
| 559 '../ui/ui.gyp:ui', | 578 '../ui/ui.gyp:ui', |
| 560 ], | 579 ], |
| 561 'sources': [ | 580 'sources': [ |
| 562 'audio/audio_input_controller_unittest.cc', | 581 'audio/audio_input_controller_unittest.cc', |
| 563 'audio/audio_input_device_unittest.cc', | 582 'audio/audio_input_device_unittest.cc', |
| 564 'audio/audio_input_unittest.cc', | 583 'audio/audio_input_unittest.cc', |
| 565 'audio/audio_output_controller_unittest.cc', | 584 'audio/audio_output_controller_unittest.cc', |
| 566 'audio/audio_output_proxy_unittest.cc', | 585 'audio/audio_output_proxy_unittest.cc', |
| 567 'audio/audio_parameters_unittest.cc', | 586 'audio/audio_parameters_unittest.cc', |
| 568 'audio/audio_util_unittest.cc', | 587 'audio/audio_util_unittest.cc', |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 'conditions': [ | 630 'conditions': [ |
| 612 ['os_posix==1 and OS!="mac"', { | 631 ['os_posix==1 and OS!="mac"', { |
| 613 'conditions': [ | 632 'conditions': [ |
| 614 ['linux_use_tcmalloc==1', { | 633 ['linux_use_tcmalloc==1', { |
| 615 'dependencies': [ | 634 'dependencies': [ |
| 616 '../base/allocator/allocator.gyp:allocator', | 635 '../base/allocator/allocator.gyp:allocator', |
| 617 ], | 636 ], |
| 618 }], | 637 }], |
| 619 ], | 638 ], |
| 620 }], | 639 }], |
| 621 ['OS=="android"', { | 640 ['OS != "android"', { |
| 622 'dependencies!': [ | 641 'dependencies': [ |
| 623 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | 642 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
| 624 ], | 643 ], |
| 644 }], |
| 645 ['OS == "android"', { |
| 625 'sources!': [ | 646 'sources!': [ |
| 647 'base/test_data_util.cc', |
| 648 'base/test_data_util.h', |
| 626 'ffmpeg/ffmpeg_common_unittest.cc', | 649 'ffmpeg/ffmpeg_common_unittest.cc', |
| 627 'filters/ffmpeg_audio_decoder_unittest.cc', | 650 'filters/ffmpeg_audio_decoder_unittest.cc', |
| 628 'filters/bitstream_converter_unittest.cc', | 651 'filters/bitstream_converter_unittest.cc', |
| 629 'filters/chunk_demuxer_unittest.cc', | 652 'filters/chunk_demuxer_unittest.cc', |
| 630 'filters/ffmpeg_demuxer_unittest.cc', | 653 'filters/ffmpeg_demuxer_unittest.cc', |
| 631 'filters/ffmpeg_glue_unittest.cc', | 654 'filters/ffmpeg_glue_unittest.cc', |
| 632 'filters/ffmpeg_h264_bitstream_converter_unittest.cc', | 655 'filters/ffmpeg_h264_bitstream_converter_unittest.cc', |
| 633 'filters/ffmpeg_video_decoder_unittest.cc', | 656 'filters/ffmpeg_video_decoder_unittest.cc', |
| 634 ], | 657 ], |
| 635 }], | 658 }], |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 'libraries': [ | 816 'libraries': [ |
| 794 '-lGL', | 817 '-lGL', |
| 795 '-ldl', | 818 '-ldl', |
| 796 ], | 819 ], |
| 797 'sources': [ | 820 'sources': [ |
| 798 'tools/tile_render_bench/tile_render_bench.cc', | 821 'tools/tile_render_bench/tile_render_bench.cc', |
| 799 ], | 822 ], |
| 800 }, | 823 }, |
| 801 ], | 824 ], |
| 802 }], | 825 }], |
| 803 ['os_posix == 1 and OS != "mac"', { | 826 ['os_posix == 1 and OS != "mac" and OS != "android"', { |
| 804 'targets': [ | 827 'targets': [ |
| 805 { | 828 { |
| 806 'target_name': 'player_x11', | 829 'target_name': 'player_x11', |
| 807 'type': 'executable', | 830 'type': 'executable', |
| 808 'dependencies': [ | 831 'dependencies': [ |
| 809 'media', | 832 'media', |
| 810 'yuv_convert', | 833 'yuv_convert', |
| 811 '../base/base.gyp:base', | 834 '../base/base.gyp:base', |
| 812 '../ui/gfx/gl/gl.gyp:gl', | 835 '../ui/gfx/gl/gl.gyp:gl', |
| 813 ], | 836 ], |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | 911 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
| 889 ], | 912 ], |
| 890 'sources': [ | 913 'sources': [ |
| 891 'tools/media_bench/media_bench.cc', | 914 'tools/media_bench/media_bench.cc', |
| 892 ], | 915 ], |
| 893 }, | 916 }, |
| 894 ], | 917 ], |
| 895 }] | 918 }] |
| 896 ], | 919 ], |
| 897 } | 920 } |
| OLD | NEW |