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 PulseAudio library. | 8 # Override to dynamically link the PulseAudio library. |
9 'use_pulseaudio%': 0, | 9 'use_pulseaudio%': 0, |
10 # Override to dynamically link the cras (ChromeOS audio) library. | 10 # Override to dynamically link the cras (ChromeOS audio) library. |
11 'use_cras%': 0, | 11 'use_cras%': 0, |
12 }, | 12 }, |
13 'targets': [ | 13 'targets': [ |
14 { | 14 { |
15 'target_name': 'media', | 15 'target_name': 'media', |
16 'type': '<(component)', | 16 'type': '<(component)', |
17 'dependencies': [ | 17 'dependencies': [ |
18 '../base/base.gyp:base', | 18 '../base/base.gyp:base', |
19 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | |
20 '../build/temp_gyp/googleurl.gyp:googleurl', | 19 '../build/temp_gyp/googleurl.gyp:googleurl', |
21 '../crypto/crypto.gyp:crypto', | 20 '../crypto/crypto.gyp:crypto', |
22 'shared_memory_support', | |
23 '../ui/ui.gyp:ui', | 21 '../ui/ui.gyp:ui', |
24 'yuv_convert', | |
25 ], | 22 ], |
26 'defines': [ | 23 'defines': [ |
27 'MEDIA_IMPLEMENTATION', | 24 'MEDIA_IMPLEMENTATION', |
28 ], | 25 ], |
29 'include_dirs': [ | 26 'include_dirs': [ |
30 '..', | 27 '..', |
31 ], | 28 ], |
32 'sources': [ | 29 'sources': [ |
33 'audio/android/audio_manager_android.cc', | 30 'audio/android/audio_manager_android.cc', |
34 'audio/android/audio_manager_android.h', | 31 'audio/android/audio_manager_android.h', |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
169 'base/demuxer.cc', | 166 'base/demuxer.cc', |
170 'base/demuxer.h', | 167 'base/demuxer.h', |
171 'base/demuxer_stream.cc', | 168 'base/demuxer_stream.cc', |
172 'base/demuxer_stream.h', | 169 'base/demuxer_stream.h', |
173 'base/djb2.cc', | 170 'base/djb2.cc', |
174 'base/djb2.h', | 171 'base/djb2.h', |
175 'base/filter_collection.cc', | 172 'base/filter_collection.cc', |
176 'base/filter_collection.h', | 173 'base/filter_collection.h', |
177 'base/media.h', | 174 'base/media.h', |
178 'base/media_android.cc', | 175 'base/media_android.cc', |
176 'base/media_ios.cc', | |
179 'base/media_log.cc', | 177 'base/media_log.cc', |
180 'base/media_log.h', | 178 'base/media_log.h', |
181 'base/media_log_event.h', | 179 'base/media_log_event.h', |
182 'base/media_posix.cc', | 180 'base/media_posix.cc', |
183 'base/media_switches.cc', | 181 'base/media_switches.cc', |
184 'base/media_switches.h', | 182 'base/media_switches.h', |
185 'base/media_win.cc', | 183 'base/media_win.cc', |
186 'base/message_loop_factory.cc', | 184 'base/message_loop_factory.cc', |
187 'base/message_loop_factory.h', | 185 'base/message_loop_factory.h', |
188 'base/multi_channel_resampler.cc', | 186 'base/multi_channel_resampler.cc', |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
301 'webm/webm_stream_parser.h', | 299 'webm/webm_stream_parser.h', |
302 'webm/webm_tracks_parser.cc', | 300 'webm/webm_tracks_parser.cc', |
303 'webm/webm_tracks_parser.h', | 301 'webm/webm_tracks_parser.h', |
304 ], | 302 ], |
305 'direct_dependent_settings': { | 303 'direct_dependent_settings': { |
306 'include_dirs': [ | 304 'include_dirs': [ |
307 '..', | 305 '..', |
308 ], | 306 ], |
309 }, | 307 }, |
310 'conditions': [ | 308 'conditions': [ |
311 # Android doesn't use ffmpeg, so make the dependency conditional | 309 ['OS != "ios"', { |
312 # and exclude the sources which depend on ffmpeg. | 310 'dependencies': [ |
313 ['OS != "android"', { | 311 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations', |
312 'shared_memory_support', | |
313 'yuv_convert', | |
314 ], | |
315 }], | |
316 ['OS == "ios"', { | |
317 'includes': [ | |
318 # For shared_memory_support_sources variable. | |
319 'shared_memory_support.gypi', | |
320 ], | |
321 # These sources are normally built via a dependency on the | |
322 # shared_memory_support target, but that target is not built on iOS. | |
323 # Instead, directly build only the files that are needed for iOS. | |
324 'sources': [ | |
325 '<@(shared_memory_support_sources)', | |
326 ], | |
327 'sources/': [ | |
328 # IOS support is limited to audio input only. | |
stuartmorgan
2012/09/05 11:10:19
iOS
blundell
2012/09/05 12:04:29
Done.
| |
329 ['exclude', '.*'], | |
330 ['include', '^audio/audio_buffers_state\\.cc$'], | |
331 ['include', '^audio/audio_input_controller\\.cc$'], | |
332 ['include', '^audio/audio_input_controller\\.h$'], | |
stuartmorgan
2012/09/05 11:10:19
Combine these into:
['include', '^audio/audio_inpu
blundell
2012/09/05 12:04:29
Done.
| |
333 ['include', '^audio/audio_io\\.h$'], | |
334 ['include', '^audio/audio_manager\\.cc$'], | |
335 ['include', '^audio/audio_manager\\.h$'], | |
336 ['include', '^audio/audio_manager_base\\.cc$'], | |
337 ['include', '^audio/audio_manager_base\\.h$'], | |
338 ['include', '^audio/audio_parameters\\.cc$'], | |
339 ['include', '^audio/audio_parameters\\.h$'], | |
340 ['include', '^audio/fake_audio_input_stream\\.cc$'], | |
341 ['include', '^audio/fake_audio_input_stream\\.h$'], | |
342 ['include', '^audio/fake_audio_output_stream\\.cc$'], | |
343 ['include', '^audio/fake_audio_output_stream\\.h$'], | |
344 ['include', '^base/channel_layout\\.cc$'], | |
345 ['include', '^base/channel_layout\\.h$'], | |
346 ['include', '^base/media\\.h$'], | |
347 ['include', '^base/media_ios\\.cc$'], | |
348 ], | |
stuartmorgan
2012/09/05 11:10:19
Indent 2 more.
blundell
2012/09/05 12:04:29
Done.
| |
349 'link_settings': { | |
350 'libraries': [ | |
351 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', | |
352 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', | |
353 ], | |
354 }, | |
355 }], | |
356 # Android and iOS don't use ffmpeg, so make the dependency conditional. | |
stuartmorgan
2012/09/05 11:10:19
Remove everything from the ',' on.
blundell
2012/09/05 12:04:29
Done.
| |
357 ['OS != "android" and OS != "ios"', { | |
314 'dependencies': [ | 358 'dependencies': [ |
315 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | 359 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
316 ], | 360 ], |
317 }], | 361 }], |
362 # On Android, exclude the sources that depend on ffmpeg. | |
318 ['OS == "android"', { | 363 ['OS == "android"', { |
319 'sources!': [ | 364 'sources!': [ |
320 'base/media_posix.cc', | 365 'base/media_posix.cc', |
321 'ffmpeg/ffmpeg_common.cc', | 366 'ffmpeg/ffmpeg_common.cc', |
322 'ffmpeg/ffmpeg_common.h', | 367 'ffmpeg/ffmpeg_common.h', |
323 'ffmpeg/file_protocol.cc', | 368 'ffmpeg/file_protocol.cc', |
324 'ffmpeg/file_protocol.h', | 369 'ffmpeg/file_protocol.h', |
325 'filters/audio_file_reader.cc', | 370 'filters/audio_file_reader.cc', |
326 'filters/audio_file_reader.h', | 371 'filters/audio_file_reader.h', |
327 'filters/chunk_demuxer.cc', | 372 'filters/chunk_demuxer.cc', |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
491 ], | 536 ], |
492 }], | 537 }], |
493 ], | 538 ], |
494 }, | 539 }, |
495 { | 540 { |
496 'target_name': 'media_unittests', | 541 'target_name': 'media_unittests', |
497 'type': '<(gtest_target_type)', | 542 'type': '<(gtest_target_type)', |
498 'dependencies': [ | 543 'dependencies': [ |
499 'media', | 544 'media', |
500 'media_test_support', | 545 'media_test_support', |
501 'shared_memory_support', | |
502 'yuv_convert', | |
503 '../base/base.gyp:base', | 546 '../base/base.gyp:base', |
504 '../base/base.gyp:base_i18n', | 547 '../base/base.gyp:base_i18n', |
505 '../base/base.gyp:test_support_base', | 548 '../base/base.gyp:test_support_base', |
506 '../testing/gmock.gyp:gmock', | 549 '../testing/gmock.gyp:gmock', |
507 '../testing/gtest.gyp:gtest', | 550 '../testing/gtest.gyp:gtest', |
508 '../ui/ui.gyp:ui', | 551 '../ui/ui.gyp:ui', |
509 ], | 552 ], |
510 'sources': [ | 553 'sources': [ |
511 'audio/async_socket_io_handler_unittest.cc', | 554 'audio/async_socket_io_handler_unittest.cc', |
512 'audio/audio_input_controller_unittest.cc', | 555 'audio/audio_input_controller_unittest.cc', |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
569 'filters/source_buffer_stream_unittest.cc', | 612 'filters/source_buffer_stream_unittest.cc', |
570 'filters/video_renderer_base_unittest.cc', | 613 'filters/video_renderer_base_unittest.cc', |
571 'video/capture/video_capture_device_unittest.cc', | 614 'video/capture/video_capture_device_unittest.cc', |
572 'webm/cluster_builder.cc', | 615 'webm/cluster_builder.cc', |
573 'webm/cluster_builder.h', | 616 'webm/cluster_builder.h', |
574 'webm/webm_cluster_parser_unittest.cc', | 617 'webm/webm_cluster_parser_unittest.cc', |
575 'webm/webm_content_encodings_client_unittest.cc', | 618 'webm/webm_content_encodings_client_unittest.cc', |
576 'webm/webm_parser_unittest.cc', | 619 'webm/webm_parser_unittest.cc', |
577 ], | 620 ], |
578 'conditions': [ | 621 'conditions': [ |
579 ['os_posix==1 and OS!="mac"', { | 622 ['OS != "ios"', { |
623 'dependencies': [ | |
624 'shared_memory_support', | |
625 'yuv_convert', | |
626 ], | |
627 }], | |
628 ['OS == "ios"', { | |
629 'sources/': [ | |
630 ['exclude', '.*'], | |
631 ['include', '^audio/audio_parameters_unittest\\.cc$'], | |
632 ['include', '^base/mock_reader\\.h$'], | |
633 ['include', '^base/run_all_unittests\\.cc$'], | |
634 ], | |
635 }], | |
636 # Android and iOS don't use ffmpeg, so make the dependency conditional. | |
stuartmorgan
2012/09/05 11:10:19
Same as above.
blundell
2012/09/05 12:04:29
Done.
| |
637 ['OS != "android" and OS != "ios"', { | |
638 'dependencies': [ | |
639 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | |
640 ], | |
641 }], | |
642 ['os_posix==1 and OS!="mac" and OS!="ios"', { | |
580 'conditions': [ | 643 'conditions': [ |
581 ['linux_use_tcmalloc==1', { | 644 ['linux_use_tcmalloc==1', { |
582 'dependencies': [ | 645 'dependencies': [ |
583 '../base/allocator/allocator.gyp:allocator', | 646 '../base/allocator/allocator.gyp:allocator', |
584 ], | 647 ], |
585 }], | 648 }], |
586 ], | 649 ], |
587 }], | 650 }], |
588 ['OS=="android"', { | 651 ['OS=="android"', { |
589 'sources!': [ | 652 'sources!': [ |
(...skipping 12 matching lines...) Expand all Loading... | |
602 'mp4/mp4_stream_parser_unittest.cc', | 665 'mp4/mp4_stream_parser_unittest.cc', |
603 'webm/webm_cluster_parser_unittest.cc', | 666 'webm/webm_cluster_parser_unittest.cc', |
604 ], | 667 ], |
605 'conditions': [ | 668 'conditions': [ |
606 ['gtest_target_type == "shared_library"', { | 669 ['gtest_target_type == "shared_library"', { |
607 'dependencies': [ | 670 'dependencies': [ |
608 '../testing/android/native_test.gyp:native_test_native_code', | 671 '../testing/android/native_test.gyp:native_test_native_code', |
609 ], | 672 ], |
610 }], | 673 }], |
611 ], | 674 ], |
612 }, { # OS!=android | |
613 'dependencies': [ | |
614 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | |
615 ], | |
616 }], | 675 }], |
617 ['OS == "linux"', { | 676 ['OS == "linux"', { |
618 'conditions': [ | 677 'conditions': [ |
619 ['use_cras == 1', { | 678 ['use_cras == 1', { |
620 'sources': [ | 679 'sources': [ |
621 'audio/linux/cras_input_unittest.cc', | 680 'audio/linux/cras_input_unittest.cc', |
622 'audio/linux/cras_output_unittest.cc', | 681 'audio/linux/cras_output_unittest.cc', |
623 ], | 682 ], |
624 'defines': [ | 683 'defines': [ |
625 'USE_CRAS', | 684 'USE_CRAS', |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1183 'media', | 1242 'media', |
1184 ], | 1243 ], |
1185 'sources': [ | 1244 'sources': [ |
1186 'tools/media_bench/media_bench.cc', | 1245 'tools/media_bench/media_bench.cc', |
1187 ], | 1246 ], |
1188 }, | 1247 }, |
1189 ], | 1248 ], |
1190 }] | 1249 }] |
1191 ], | 1250 ], |
1192 } | 1251 } |
OLD | NEW |