OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 cras (ChromeOS audio) library. | 8 # Override to dynamically link the cras (ChromeOS audio) library. |
9 'use_cras%': 0, | 9 'use_cras%': 0, |
10 # Option e.g. for Linux distributions to link pulseaudio directly | 10 # Option e.g. for Linux distributions to link pulseaudio directly |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 ], | 553 ], |
554 'link_settings': { | 554 'link_settings': { |
555 'libraries': [ | 555 'libraries': [ |
556 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', | 556 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', |
557 '$(SDKROOT)/System/Library/Frameworks/AVFoundation.framework', | 557 '$(SDKROOT)/System/Library/Frameworks/AVFoundation.framework', |
558 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', | 558 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', |
559 ], | 559 ], |
560 }, | 560 }, |
561 }], | 561 }], |
562 ['OS == "android"', { | 562 ['OS == "android"', { |
563 'sources': [ | |
564 'base/media_stub.cc', | |
565 ], | |
566 'link_settings': { | 563 'link_settings': { |
567 'libraries': [ | 564 'libraries': [ |
568 '-lOpenSLES', | 565 '-lOpenSLES', |
569 ], | 566 ], |
570 }, | 567 }, |
571 'include_dirs': [ | 568 'include_dirs': [ |
572 '<(SHARED_INTERMEDIATE_DIR)/media', | 569 '<(SHARED_INTERMEDIATE_DIR)/media', |
573 ], | 570 ], |
574 'dependencies': [ | 571 'dependencies': [ |
575 'media_android_jni_headers', | 572 'media_android_jni_headers', |
576 'player_android', | 573 'player_android', |
577 'video_capture_android_jni_headers', | 574 'video_capture_android_jni_headers', |
578 ], | 575 ], |
579 'conditions': [ | 576 'conditions': [ |
580 ['android_webview_build == 0', { | 577 ['android_webview_build == 0', { |
581 'dependencies': [ | 578 'dependencies': [ |
582 'media_java', | 579 'media_java', |
583 ], | 580 ], |
584 }], | 581 }], |
585 ] | 582 ['use_openmax_dl_fft==1', { |
| 583 # FFT library requires Neon support, so we enable |
| 584 # WebAudio only if Neon is detected at runtime. |
| 585 'sources': [ |
| 586 'base/media_android.cc', |
| 587 ], |
| 588 'includes': [ |
| 589 '../build/android/cpufeatures.gypi', |
| 590 ], |
| 591 }, { |
| 592 'sources': [ |
| 593 'base/media_stub.cc', |
| 594 ], |
| 595 }], |
| 596 ], |
586 }], | 597 }], |
587 # A simple WebM encoder for animated avatars on ChromeOS. | 598 # A simple WebM encoder for animated avatars on ChromeOS. |
588 ['chromeos==1', { | 599 ['chromeos==1', { |
589 'dependencies': [ | 600 'dependencies': [ |
590 '../third_party/libvpx/libvpx.gyp:libvpx', | 601 '../third_party/libvpx/libvpx.gyp:libvpx', |
591 '../third_party/libyuv/libyuv.gyp:libyuv', | 602 '../third_party/libyuv/libyuv.gyp:libyuv', |
592 ], | 603 ], |
593 'sources': [ | 604 'sources': [ |
594 'webm/chromeos/ebml_writer.cc', | 605 'webm/chromeos/ebml_writer.cc', |
595 'webm/chromeos/ebml_writer.h', | 606 'webm/chromeos/ebml_writer.h', |
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1439 'variables': { | 1450 'variables': { |
1440 'test_suite_name': 'media_unittests', | 1451 'test_suite_name': 'media_unittests', |
1441 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)media_uni
ttests<(SHARED_LIB_SUFFIX)', | 1452 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)media_uni
ttests<(SHARED_LIB_SUFFIX)', |
1442 }, | 1453 }, |
1443 'includes': [ '../build/apk_test.gypi' ], | 1454 'includes': [ '../build/apk_test.gypi' ], |
1444 }, | 1455 }, |
1445 ], | 1456 ], |
1446 }], | 1457 }], |
1447 ['OS == "android"', { | 1458 ['OS == "android"', { |
1448 'targets': [ | 1459 'targets': [ |
1449 { | 1460 { |
1450 'target_name': 'media_player_jni_headers', | 1461 'target_name': 'media_player_jni_headers', |
1451 'type': 'none', | 1462 'type': 'none', |
1452 'variables': { | 1463 'variables': { |
1453 'jni_gen_package': 'media', | 1464 'jni_gen_package': 'media', |
1454 'input_java_class': 'android/media/MediaPlayer.class', | 1465 'input_java_class': 'android/media/MediaPlayer.class', |
1455 }, | 1466 }, |
1456 'includes': [ '../build/jar_file_jni_generator.gypi' ], | 1467 'includes': [ '../build/jar_file_jni_generator.gypi' ], |
1457 }, | 1468 }, |
1458 { | 1469 { |
1459 'target_name': 'media_android_jni_headers', | 1470 'target_name': 'media_android_jni_headers', |
1460 'type': 'none', | 1471 'type': 'none', |
1461 'dependencies': [ | 1472 'dependencies': [ |
1462 'media_player_jni_headers', | 1473 'media_player_jni_headers', |
1463 ], | 1474 ], |
1464 'sources': [ | 1475 'sources': [ |
1465 'base/android/java/src/org/chromium/media/AudioManagerAndroid.java', | 1476 'base/android/java/src/org/chromium/media/AudioManagerAndroid.java', |
1466 'base/android/java/src/org/chromium/media/MediaPlayerBridge.java', | 1477 'base/android/java/src/org/chromium/media/MediaPlayerBridge.java', |
1467 'base/android/java/src/org/chromium/media/MediaPlayerListener.java', | 1478 'base/android/java/src/org/chromium/media/MediaPlayerListener.java', |
| 1479 'base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.j
ava', |
1468 ], | 1480 ], |
1469 'variables': { | 1481 'variables': { |
1470 'jni_gen_package': 'media', | 1482 'jni_gen_package': 'media', |
1471 }, | 1483 }, |
1472 'includes': [ '../build/jni_generator.gypi' ], | 1484 'includes': [ '../build/jni_generator.gypi' ], |
1473 }, | 1485 }, |
1474 { | 1486 { |
1475 'target_name': 'video_capture_android_jni_headers', | 1487 'target_name': 'video_capture_android_jni_headers', |
1476 'type': 'none', | 1488 'type': 'none', |
1477 'sources': [ | 1489 'sources': [ |
(...skipping 27 matching lines...) Expand all Loading... |
1505 'type': 'static_library', | 1517 'type': 'static_library', |
1506 'sources': [ | 1518 'sources': [ |
1507 'base/android/media_codec_bridge.cc', | 1519 'base/android/media_codec_bridge.cc', |
1508 'base/android/media_codec_bridge.h', | 1520 'base/android/media_codec_bridge.h', |
1509 'base/android/media_jni_registrar.cc', | 1521 'base/android/media_jni_registrar.cc', |
1510 'base/android/media_jni_registrar.h', | 1522 'base/android/media_jni_registrar.h', |
1511 'base/android/media_player_bridge.cc', | 1523 'base/android/media_player_bridge.cc', |
1512 'base/android/media_player_bridge.h', | 1524 'base/android/media_player_bridge.h', |
1513 'base/android/media_player_listener.cc', | 1525 'base/android/media_player_listener.cc', |
1514 'base/android/media_player_listener.h', | 1526 'base/android/media_player_listener.h', |
| 1527 'base/android/webaudio_media_codec_bridge.cc', |
| 1528 'base/android/webaudio_media_codec_bridge.h', |
1515 ], | 1529 ], |
1516 'dependencies': [ | 1530 'dependencies': [ |
1517 '../base/base.gyp:base', | 1531 '../base/base.gyp:base', |
1518 'media_android_jni_headers', | 1532 'media_android_jni_headers', |
1519 'media_codec_jni_headers', | 1533 'media_codec_jni_headers', |
1520 'media_format_jni_headers', | 1534 'media_format_jni_headers', |
1521 ], | 1535 ], |
1522 'include_dirs': [ | 1536 'include_dirs': [ |
1523 '<(SHARED_INTERMEDIATE_DIR)/media', | 1537 '<(SHARED_INTERMEDIATE_DIR)/media', |
1524 ], | 1538 ], |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1675 ], | 1689 ], |
1676 'sources': [ | 1690 'sources': [ |
1677 'base/simd/sinc_resampler_sse.cc', | 1691 'base/simd/sinc_resampler_sse.cc', |
1678 'base/simd/vector_math_sse.cc', | 1692 'base/simd/vector_math_sse.cc', |
1679 ], | 1693 ], |
1680 }, # end of target media_sse | 1694 }, # end of target media_sse |
1681 ], | 1695 ], |
1682 }], | 1696 }], |
1683 ], | 1697 ], |
1684 } | 1698 } |
OLD | NEW |