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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 'includes': [ | 51 'includes': [ |
52 'capture.gypi', | 52 'capture.gypi', |
53 'media_cdm.gypi', | 53 'media_cdm.gypi', |
54 'media_variables.gypi', | 54 'media_variables.gypi', |
55 ], | 55 ], |
56 'targets': [ | 56 'targets': [ |
57 { | 57 { |
58 # GN version: //media:media_features | 58 # GN version: //media:media_features |
59 'target_name': 'media_features', | 59 'target_name': 'media_features', |
60 'includes': [ '../build/buildflag_header.gypi' ], | 60 'includes': [ '../build/buildflag_header.gypi' ], |
| 61 'hard_dependency': 1, |
61 'variables': { | 62 'variables': { |
62 'buildflag_header_path': 'media/media_features.h', | 63 'buildflag_header_path': 'media/media_features.h', |
63 'buildflag_flags': [ | 64 'buildflag_flags': [ |
64 "ENABLE_AC3_EAC3_AUDIO_DEMUXING=<(enable_ac3_eac3_audio_demuxing)", | 65 "ENABLE_AC3_EAC3_AUDIO_DEMUXING=<(enable_ac3_eac3_audio_demuxing)", |
65 "ENABLE_HEVC_DEMUXING=<(enable_hevc_demuxing)", | 66 "ENABLE_HEVC_DEMUXING=<(enable_hevc_demuxing)", |
66 "ENABLE_MSE_MPEG2TS_STREAM_PARSER=<(enable_mse_mpeg2ts_stream_parser)"
, | 67 "ENABLE_MSE_MPEG2TS_STREAM_PARSER=<(enable_mse_mpeg2ts_stream_parser)"
, |
67 "ENABLE_MP4_VP9_DEMUXING=0", | 68 "ENABLE_MP4_VP9_DEMUXING=0", |
68 ], | 69 ], |
69 }, | 70 }, |
70 }, | 71 }, |
71 { | 72 { |
72 # GN version: //media | 73 # GN version: //media |
73 'target_name': 'media', | 74 'target_name': 'media', |
74 'type': '<(component)', | 75 'type': '<(component)', |
75 'dependencies': [ | 76 'dependencies': [ |
76 'media_features', | 77 'media_features', |
77 '../base/base.gyp:base', | 78 '../base/base.gyp:base', |
78 '../base/base.gyp:base_i18n', | 79 '../base/base.gyp:base_i18n', |
79 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 80 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
80 '../crypto/crypto.gyp:crypto', | 81 '../crypto/crypto.gyp:crypto', |
81 '../gpu/gpu.gyp:command_buffer_common', | 82 '../gpu/gpu.gyp:command_buffer_common', |
82 '../skia/skia.gyp:skia', | 83 '../skia/skia.gyp:skia', |
83 '../third_party/libwebm/libwebm.gyp:libwebm', | 84 '../third_party/libwebm/libwebm.gyp:libwebm', |
84 '../third_party/libyuv/libyuv.gyp:libyuv', | 85 '../third_party/libyuv/libyuv.gyp:libyuv', |
85 '../third_party/opus/opus.gyp:opus', | 86 '../third_party/opus/opus.gyp:opus', |
| 87 '../ui/display/display.gyp:display', |
86 '../ui/events/events.gyp:events_base', | 88 '../ui/events/events.gyp:events_base', |
87 '../ui/gfx/gfx.gyp:gfx', | 89 '../ui/gfx/gfx.gyp:gfx', |
88 '../ui/gfx/gfx.gyp:gfx_geometry', | 90 '../ui/gfx/gfx.gyp:gfx_geometry', |
89 '../url/url.gyp:url_lib', | 91 '../url/url.gyp:url_lib', |
90 'shared_memory_support', | 92 'shared_memory_support', |
91 ], | 93 ], |
| 94 'hard_dependency': 1, |
92 'export_dependent_settings': [ | 95 'export_dependent_settings': [ |
93 '../third_party/libwebm/libwebm.gyp:libwebm', | 96 '../third_party/libwebm/libwebm.gyp:libwebm', |
94 '../third_party/opus/opus.gyp:opus', | 97 '../third_party/opus/opus.gyp:opus', |
| 98 'media_features', |
95 ], | 99 ], |
96 'defines': [ | 100 'defines': [ |
97 'MEDIA_IMPLEMENTATION', | 101 'MEDIA_IMPLEMENTATION', |
98 ], | 102 ], |
99 'include_dirs': [ | 103 'include_dirs': [ |
100 '..', | 104 '..', |
101 ], | 105 ], |
102 'includes': [ | 106 'includes': [ |
103 'capture.gypi', | 107 'capture.gypi', |
104 ], | 108 ], |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 'base/demuxer.h', | 336 'base/demuxer.h', |
333 'base/demuxer_stream.cc', | 337 'base/demuxer_stream.cc', |
334 'base/demuxer_stream.h', | 338 'base/demuxer_stream.h', |
335 'base/demuxer_stream_provider.cc', | 339 'base/demuxer_stream_provider.cc', |
336 'base/demuxer_stream_provider.h', | 340 'base/demuxer_stream_provider.h', |
337 'base/djb2.cc', | 341 'base/djb2.cc', |
338 'base/djb2.h', | 342 'base/djb2.h', |
339 'base/eme_constants.h', | 343 'base/eme_constants.h', |
340 'base/encryption_scheme.cc', | 344 'base/encryption_scheme.cc', |
341 'base/encryption_scheme.h', | 345 'base/encryption_scheme.h', |
342 'base/key_system_info.cc', | |
343 'base/key_system_info.h', | |
344 'base/key_system_names.cc', | 346 'base/key_system_names.cc', |
345 'base/key_system_names.h', | 347 'base/key_system_names.h', |
346 'base/key_system_properties.cc', | 348 'base/key_system_properties.cc', |
347 'base/key_system_properties.h', | 349 'base/key_system_properties.h', |
348 'base/key_systems.cc', | 350 'base/key_systems.cc', |
349 'base/key_systems.h', | 351 'base/key_systems.h', |
350 'base/keyboard_event_counter.cc', | 352 'base/keyboard_event_counter.cc', |
351 'base/keyboard_event_counter.h', | 353 'base/keyboard_event_counter.h', |
352 'base/loopback_audio_converter.cc', | 354 'base/loopback_audio_converter.cc', |
353 'base/loopback_audio_converter.h', | 355 'base/loopback_audio_converter.h', |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 'filters/vpx_video_decoder.cc', | 706 'filters/vpx_video_decoder.cc', |
705 'filters/vpx_video_decoder.h', | 707 'filters/vpx_video_decoder.h', |
706 ], | 708 ], |
707 }], | 709 }], |
708 ['OS=="android"', { | 710 ['OS=="android"', { |
709 'dependencies': [ | 711 'dependencies': [ |
710 'capture_java', | 712 'capture_java', |
711 'media_android_jni_headers', | 713 'media_android_jni_headers', |
712 'media_java', | 714 'media_java', |
713 'player_android', | 715 'player_android', |
| 716 'screen_capture_java', |
| 717 'screen_capture_android_jni_headers', |
714 'video_capture_android_jni_headers', | 718 'video_capture_android_jni_headers', |
715 ], | 719 ], |
716 'sources!': [ | 720 'sources!': [ |
717 'base/audio_video_metadata_extractor.cc', | 721 'base/audio_video_metadata_extractor.cc', |
718 'base/audio_video_metadata_extractor.h', | 722 'base/audio_video_metadata_extractor.h', |
719 'base/media_file_checker.cc', | 723 'base/media_file_checker.cc', |
720 'base/media_file_checker.h', | 724 'base/media_file_checker.h', |
721 'filters/decrypting_audio_decoder.cc', | 725 'filters/decrypting_audio_decoder.cc', |
722 'filters/decrypting_audio_decoder.h', | 726 'filters/decrypting_audio_decoder.h', |
723 'filters/decrypting_video_decoder.cc', | 727 'filters/decrypting_video_decoder.cc', |
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1721 ['OS=="android"', { | 1725 ['OS=="android"', { |
1722 'targets': [ | 1726 'targets': [ |
1723 { | 1727 { |
1724 # TODO(GN) | 1728 # TODO(GN) |
1725 'target_name': 'media_unittests_apk', | 1729 'target_name': 'media_unittests_apk', |
1726 'type': 'none', | 1730 'type': 'none', |
1727 'dependencies': [ | 1731 'dependencies': [ |
1728 'capture_java', | 1732 'capture_java', |
1729 'media_java', | 1733 'media_java', |
1730 'media_unittests', | 1734 'media_unittests', |
| 1735 'screen_capture_java', |
1731 ], | 1736 ], |
1732 'variables': { | 1737 'variables': { |
1733 'test_suite_name': 'media_unittests', | 1738 'test_suite_name': 'media_unittests', |
1734 'isolate_file': 'media_unittests.isolate', | 1739 'isolate_file': 'media_unittests.isolate', |
1735 }, | 1740 }, |
1736 'includes': ['../build/apk_test.gypi'], | 1741 'includes': ['../build/apk_test.gypi'], |
1737 }, | 1742 }, |
1738 { | 1743 { |
1739 # TODO(GN) | 1744 # TODO(GN) |
1740 'target_name': 'media_perftests_apk', | 1745 'target_name': 'media_perftests_apk', |
1741 'type': 'none', | 1746 'type': 'none', |
1742 'dependencies': [ | 1747 'dependencies': [ |
1743 'capture_java', | 1748 'capture_java', |
1744 'media_java', | 1749 'media_java', |
1745 'media_perftests', | 1750 'media_perftests', |
| 1751 'screen_capture_java', |
1746 ], | 1752 ], |
1747 'variables': { | 1753 'variables': { |
1748 'test_suite_name': 'media_perftests', | 1754 'test_suite_name': 'media_perftests', |
1749 'isolate_file': 'media_perftests.isolate', | 1755 'isolate_file': 'media_perftests.isolate', |
1750 }, | 1756 }, |
1751 'includes': ['../build/apk_test.gypi'], | 1757 'includes': ['../build/apk_test.gypi'], |
1752 }, | 1758 }, |
1753 { | 1759 { |
1754 # GN: //media/base/android:media_jni_headers | 1760 # GN: //media/base/android:media_jni_headers |
1755 'target_name': 'media_android_jni_headers', | 1761 'target_name': 'media_android_jni_headers', |
(...skipping 18 matching lines...) Expand all Loading... |
1774 'type': 'none', | 1780 'type': 'none', |
1775 'sources': [ | 1781 'sources': [ |
1776 'capture/video/android/java/src/org/chromium/media/VideoCapture.java
', | 1782 'capture/video/android/java/src/org/chromium/media/VideoCapture.java
', |
1777 'capture/video/android/java/src/org/chromium/media/VideoCaptureFacto
ry.java', | 1783 'capture/video/android/java/src/org/chromium/media/VideoCaptureFacto
ry.java', |
1778 ], | 1784 ], |
1779 'variables': { | 1785 'variables': { |
1780 'jni_gen_package': 'media', | 1786 'jni_gen_package': 'media', |
1781 }, | 1787 }, |
1782 'includes': ['../build/jni_generator.gypi'], | 1788 'includes': ['../build/jni_generator.gypi'], |
1783 }, | 1789 }, |
| 1790 { |
| 1791 # GN: //media/capture/video/android:screen_capture_jni_headers |
| 1792 'target_name': 'screen_capture_android_jni_headers', |
| 1793 'type': 'none', |
| 1794 'sources': [ |
| 1795 'capture/content/android/java/src/org/chromium/media/ScreenCapture.j
ava', |
| 1796 ], |
| 1797 'variables': { |
| 1798 'jni_gen_package': 'media', |
| 1799 }, |
| 1800 'includes': ['../build/jni_generator.gypi'], |
| 1801 }, |
1784 { | 1802 { |
1785 # GN: //media/base/android:android | 1803 # GN: //media/base/android:android |
1786 'target_name': 'player_android', | 1804 'target_name': 'player_android', |
1787 'type': 'static_library', | 1805 'type': 'static_library', |
1788 'sources': [ | 1806 'sources': [ |
1789 'base/android/access_unit_queue.cc', | 1807 'base/android/access_unit_queue.cc', |
1790 'base/android/access_unit_queue.h', | 1808 'base/android/access_unit_queue.h', |
1791 'base/android/android_cdm_factory.cc', | 1809 'base/android/android_cdm_factory.cc', |
1792 'base/android/android_cdm_factory.h', | 1810 'base/android/android_cdm_factory.h', |
1793 'base/android/audio_decoder_job.cc', | 1811 'base/android/audio_decoder_job.cc', |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1834 'base/android/media_task_runner.cc', | 1852 'base/android/media_task_runner.cc', |
1835 'base/android/media_task_runner.h', | 1853 'base/android/media_task_runner.h', |
1836 'base/android/media_url_interceptor.h', | 1854 'base/android/media_url_interceptor.h', |
1837 'base/android/provision_fetcher.h', | 1855 'base/android/provision_fetcher.h', |
1838 'base/android/sdk_media_codec_bridge.cc', | 1856 'base/android/sdk_media_codec_bridge.cc', |
1839 'base/android/sdk_media_codec_bridge.h', | 1857 'base/android/sdk_media_codec_bridge.h', |
1840 'base/android/video_decoder_job.cc', | 1858 'base/android/video_decoder_job.cc', |
1841 'base/android/video_decoder_job.h', | 1859 'base/android/video_decoder_job.h', |
1842 'base/android/video_media_codec_decoder.cc', | 1860 'base/android/video_media_codec_decoder.cc', |
1843 'base/android/video_media_codec_decoder.h', | 1861 'base/android/video_media_codec_decoder.h', |
| 1862 'capture/content/android/screen_capture_jni_registrar.cc', |
| 1863 'capture/content/android/screen_capture_jni_registrar.h', |
1844 'capture/video/android/capture_jni_registrar.cc', | 1864 'capture/video/android/capture_jni_registrar.cc', |
1845 'capture/video/android/capture_jni_registrar.h', | 1865 'capture/video/android/capture_jni_registrar.h', |
1846 ], | 1866 ], |
1847 'conditions': [ | 1867 'conditions': [ |
1848 # Only 64 bit builds are using android-21 NDK library, check common.
gypi | 1868 # Only 64 bit builds are using android-21 NDK library, check common.
gypi |
1849 ['target_arch=="arm64" or target_arch=="x64" or target_arch=="mips64
el"', { | 1869 ['target_arch=="arm64" or target_arch=="x64" or target_arch=="mips64
el"', { |
1850 'sources': [ | 1870 'sources': [ |
1851 'base/android/ndk_media_codec_bridge.cc', | 1871 'base/android/ndk_media_codec_bridge.cc', |
1852 'base/android/ndk_media_codec_bridge.h', | 1872 'base/android/ndk_media_codec_bridge.h', |
1853 'base/android/ndk_media_codec_wrapper.cc', | 1873 'base/android/ndk_media_codec_wrapper.cc', |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1896 ], | 1916 ], |
1897 'export_dependent_settings': [ | 1917 'export_dependent_settings': [ |
1898 '../base/base.gyp:base', | 1918 '../base/base.gyp:base', |
1899 ], | 1919 ], |
1900 'variables': { | 1920 'variables': { |
1901 'java_in_dir': 'base/android/java', | 1921 'java_in_dir': 'base/android/java', |
1902 }, | 1922 }, |
1903 'includes': ['../build/java.gypi'], | 1923 'includes': ['../build/java.gypi'], |
1904 }, | 1924 }, |
1905 { | 1925 { |
| 1926 # GN: //media/capture/content/android:screen_capture_java |
| 1927 'target_name': 'screen_capture_java', |
| 1928 'type': 'none', |
| 1929 'dependencies': [ |
| 1930 '../base/base.gyp:base', |
| 1931 ], |
| 1932 'export_dependent_settings': [ |
| 1933 '../base/base.gyp:base', |
| 1934 ], |
| 1935 'variables': { |
| 1936 'java_in_dir': 'capture/content/android/java', |
| 1937 }, |
| 1938 'includes': ['../build/java.gypi'], |
| 1939 }, |
| 1940 { |
1906 # GN: //media/base/android:media_android_captureapitype | 1941 # GN: //media/base/android:media_android_captureapitype |
1907 'target_name': 'media_android_captureapitype', | 1942 'target_name': 'media_android_captureapitype', |
1908 'type': 'none', | 1943 'type': 'none', |
1909 'variables': { | 1944 'variables': { |
1910 'source_file': 'capture/video/video_capture_device.h', | 1945 'source_file': 'capture/video/video_capture_device.h', |
1911 }, | 1946 }, |
1912 'includes': [ '../build/android/java_cpp_enum.gypi' ], | 1947 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
1913 }, | 1948 }, |
1914 { | 1949 { |
1915 # GN: //media/base/android:media_android_imageformat | 1950 # GN: //media/base/android:media_android_imageformat |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2157 '../ui/ozone/ozone.gyp:ozone', | 2192 '../ui/ozone/ozone.gyp:ozone', |
2158 ], | 2193 ], |
2159 }], | 2194 }], |
2160 ], | 2195 ], |
2161 } | 2196 } |
2162 ] | 2197 ] |
2163 }], | 2198 }], |
2164 ['chromeos==1 or OS=="win" or OS=="android"', { | 2199 ['chromeos==1 or OS=="win" or OS=="android"', { |
2165 'targets': [ | 2200 'targets': [ |
2166 { | 2201 { |
2167 # TODO(GYP): Port Windows and ChromeOS logic. | |
2168 # GN: //media/gpu:video_decode_accelerator_unittest | 2202 # GN: //media/gpu:video_decode_accelerator_unittest |
2169 'target_name': 'video_decode_accelerator_unittest', | 2203 'target_name': 'video_decode_accelerator_unittest', |
2170 'type': '<(gtest_target_type)', | 2204 'type': '<(gtest_target_type)', |
2171 'dependencies': [ | 2205 'dependencies': [ |
2172 '../base/base.gyp:base', | 2206 '../base/base.gyp:base', |
2173 '../gpu/gpu.gyp:command_buffer_service', | 2207 '../gpu/gpu.gyp:command_buffer_service', |
2174 '../media/gpu/ipc/media_ipc.gyp:media_gpu_ipc_service', | 2208 '../media/gpu/ipc/media_ipc.gyp:media_gpu_ipc_service', |
2175 '../media/media.gyp:media', | 2209 '../media/media.gyp:media', |
2176 '../media/media.gyp:media_gpu', | 2210 '../media/media.gyp:media_gpu', |
2177 '../testing/gtest.gyp:gtest', | 2211 '../testing/gtest.gyp:gtest', |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2283 'dependencies': [ | 2317 'dependencies': [ |
2284 '../build/linux/system.gyp:libdrm', | 2318 '../build/linux/system.gyp:libdrm', |
2285 ] | 2319 ] |
2286 }], | 2320 }], |
2287 ], | 2321 ], |
2288 } | 2322 } |
2289 ] | 2323 ] |
2290 }], | 2324 }], |
2291 ], | 2325 ], |
2292 } | 2326 } |
OLD | NEW |