OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/arm.gni") | 5 import("//build/config/arm.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//build/config/linux/pkg_config.gni") | 7 import("//build/config/linux/pkg_config.gni") |
8 | 8 |
9 # These variables need to be args. | 9 # These variables need to be args. |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 if (is_android) { | 24 if (is_android) { |
25 # Android doesn't use ffmpeg or libvpx. | 25 # Android doesn't use ffmpeg or libvpx. |
26 media_use_ffmpeg = false | 26 media_use_ffmpeg = false |
27 media_use_libvpx = false | 27 media_use_libvpx = false |
28 } | 28 } |
29 | 29 |
30 # TODO(ajwong): how to disable embedded? | 30 # TODO(ajwong): how to disable embedded? |
31 # Original conditional: (OS=="linux" or OS=="freebsd" or OS=="solaris") and embe
dded!=1 | 31 # Original conditional: (OS=="linux" or OS=="freebsd" or OS=="solaris") and embe
dded!=1 |
32 use_alsa = false | 32 use_alsa = false |
33 use_pulseaudio = false | 33 use_pulseaudio = false |
34 if (is_posix) { | 34 if (is_posix && !is_android) { |
35 use_alsa = true | 35 use_alsa = true |
36 if (!use_cras) { | 36 if (!use_cras) { |
37 use_pulseaudio = true | 37 use_pulseaudio = true |
38 } | 38 } |
39 } | 39 } |
40 | 40 |
41 # TODO(ajwong): is_openbsd should be a platform define. | 41 # TODO(ajwong): is_openbsd should be a platform define. |
42 is_openbsd = false | 42 is_openbsd = false |
43 | 43 |
44 # TODO(ajwong): This should be branding controlled? | 44 # TODO(ajwong): This should be branding controlled? |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 } else { | 588 } else { |
589 sources += [ | 589 sources += [ |
590 "audio/android/audio_manager_android.cc", | 590 "audio/android/audio_manager_android.cc", |
591 "audio/android/audio_manager_android.h", | 591 "audio/android/audio_manager_android.h", |
592 "base/android/demuxer_android.h", | 592 "base/android/demuxer_android.h", |
593 "base/android/demuxer_stream_player_params.cc", | 593 "base/android/demuxer_stream_player_params.cc", |
594 "base/android/demuxer_stream_player_params.h", | 594 "base/android/demuxer_stream_player_params.h", |
595 "base/android/media_player_manager.h", | 595 "base/android/media_player_manager.h", |
596 "base/android/media_resource_getter.cc", | 596 "base/android/media_resource_getter.cc", |
597 "base/android/media_resource_getter.h", | 597 "base/android/media_resource_getter.h", |
598 "base/media.cc", | |
599 "base/media.h", | |
600 "base/media_stub.cc", | 598 "base/media_stub.cc", |
601 "midi/midi_manager_android.cc", | 599 "midi/midi_manager_android.cc", |
602 "midi/usb_midi_device_android.cc", | 600 "midi/usb_midi_device_android.cc", |
603 "midi/usb_midi_device_android.h", | 601 "midi/usb_midi_device_android.h", |
604 "midi/usb_midi_device_factory_android.cc", | 602 "midi/usb_midi_device_factory_android.cc", |
605 "midi/usb_midi_device_factory_android.h", | 603 "midi/usb_midi_device_factory_android.h", |
606 "video/capture/android/video_capture_device_android.cc", | 604 "video/capture/android/video_capture_device_android.cc", |
607 "video/capture/android/video_capture_device_android.h", | 605 "video/capture/android/video_capture_device_android.h", |
608 "video/capture/android/video_capture_device_factory_android.cc", | 606 "video/capture/android/video_capture_device_factory_android.cc", |
609 "video/capture/android/video_capture_device_factory_android.h", | 607 "video/capture/android/video_capture_device_factory_android.h", |
610 ] | 608 ] |
611 defines += [ "DISABLE_USER_INPUT_MONITOR" ] | 609 defines += [ "DISABLE_USER_INPUT_MONITOR" ] |
612 # TODO(ajwong): Fix for android. | 610 # TODO(ajwong): Fix for android. |
613 # deps += [ | 611 # deps += [ |
614 # ":media_android_jni_headers", | 612 # ":media_android_jni_headers", |
615 # ":player_android", | 613 # ":player_android", |
616 # ":video_capture_android_jni_headers", | 614 # ":video_capture_android_jni_headers", |
617 # ] | 615 # ] |
618 # if (!android_webview_build) { | 616 # if (!android_webview_build) { |
619 # deps += [ ":media_java" ] | 617 # deps += [ ":media_java" ] |
620 # } | 618 # } |
621 } | 619 } |
622 | 620 |
623 if (is_chromeos) { | 621 if (is_chromeos) { |
624 # A simple WebM encoder for animated avatars on ChromeOS. | 622 # A simple WebM encoder for animated avatars on ChromeOS. |
625 sources += [ | 623 sources += [ |
626 "formats/webm/chromeos/ebml_writer.cc", | 624 "formats/webm/chromeos/ebml_writer.cc", |
627 "formats/webm/chromeos/ebml_writer.h", | 625 "formats/webm/chromeos/ebml_writer.h", |
628 "formats/webm/chromeos/webm_encoder.cc", | 626 "formats/webm/chromeos/webm_encoder.cc", |
629 "formats/webm/chromeos/webm_encoder.h", | 627 "formats/webm/chromeos/webm_encoder.h", |
630 ] | 628 ] |
631 deps += [ | 629 deps += [ |
632 "//third_party/libvpx", | 630 "//third_party/libvpx", |
633 "//third_party/libyuv" | 631 "//third_party/libyuv" |
634 ] | 632 ] |
635 # For VaapiVideoEncodeAccelerator. | 633 # For VaapiVideoEncodeAccelerator. |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 "base/channel_layout.h", | 1279 "base/channel_layout.h", |
1282 "base/limits.h", | 1280 "base/limits.h", |
1283 "base/media_export.h", | 1281 "base/media_export.h", |
1284 "base/vector_math.cc", | 1282 "base/vector_math.cc", |
1285 "base/vector_math.h", | 1283 "base/vector_math.h", |
1286 ] | 1284 ] |
1287 configs += [ ":media_config" ] | 1285 configs += [ ":media_config" ] |
1288 deps = [ "//base" ] | 1286 deps = [ "//base" ] |
1289 } | 1287 } |
1290 | 1288 |
1291 test("ffmpeg_unittests") { | 1289 if (media_use_ffmpeg) { |
1292 sources = [ "ffmpeg/ffmpeg_unittest.cc" ] | 1290 test("ffmpeg_unittests") { |
| 1291 sources = [ "ffmpeg/ffmpeg_unittest.cc" ] |
1293 | 1292 |
1294 deps = [ | 1293 deps = [ |
1295 ":media", | 1294 ":media", |
1296 ":media_test_support", | 1295 ":media_test_support", |
1297 "//base", | 1296 "//base", |
1298 "//base:i18n", | 1297 "//base:i18n", |
1299 "//base/test:test_support", | 1298 "//base/test:test_support", |
1300 "//testing/gtest", | 1299 "//testing/gtest", |
1301 "//third_party/ffmpeg", | 1300 "//third_party/ffmpeg", |
1302 "//ui/gfx:gfx_test_support", | 1301 "//ui/gfx:gfx_test_support", |
1303 ] | 1302 ] |
1304 } | 1303 } |
1305 | 1304 |
1306 test("ffmpeg_regression_tests") { | 1305 test("ffmpeg_regression_tests") { |
1307 sources = [ | 1306 sources = [ |
1308 "base/run_all_unittests.cc", | 1307 "base/run_all_unittests.cc", |
1309 "ffmpeg/ffmpeg_regression_tests.cc", | 1308 "ffmpeg/ffmpeg_regression_tests.cc", |
1310 "filters/pipeline_integration_test_base.cc", | 1309 "filters/pipeline_integration_test_base.cc", |
1311 ] | 1310 ] |
1312 configs += [ ":media_config" ] | 1311 configs += [ ":media_config" ] |
1313 deps = [ | 1312 deps = [ |
1314 ":media", | 1313 ":media", |
1315 ":media_test_support", | 1314 ":media_test_support", |
1316 "//base/test:test_support", | 1315 "//base/test:test_support", |
1317 "//testing/gmock", | 1316 "//testing/gmock", |
1318 "//testing/gtest", | 1317 "//testing/gtest", |
1319 "//third_party/ffmpeg", | 1318 "//third_party/ffmpeg", |
1320 "//ui/gfx/geometry", | 1319 "//ui/gfx/geometry", |
1321 "//ui/gfx:gfx_test_support", | 1320 "//ui/gfx:gfx_test_support", |
1322 ] | 1321 ] |
1323 # TODO(ajwong): This was in the original gyp, but it seems silly. | 1322 # TODO(ajwong): This was in the original gyp, but it seems silly. |
1324 # ['os_posix==1 and OS!="mac"', { | 1323 # ['os_posix==1 and OS!="mac"', { |
1325 # 'conditions': [ | 1324 # 'conditions': [ |
1326 # ['use_allocator!="none"', { | 1325 # ['use_allocator!="none"', { |
1327 # 'dependencies': [ | 1326 # 'dependencies': [ |
1328 # '../base/allocator/allocator.gyp:allocator', | 1327 # '../base/allocator/allocator.gyp:allocator', |
1329 # ], | 1328 # ], |
1330 # }], | 1329 # }], |
1331 # ], | 1330 # ], |
1332 # }], | 1331 # }], |
| 1332 } |
1333 } | 1333 } |
1334 | 1334 |
1335 if (use_x11) { | 1335 if (use_x11) { |
1336 executable("player_x11") { | 1336 executable("player_x11") { |
1337 sources = [ | 1337 sources = [ |
1338 "tools/player_x11/data_source_logger.cc", | 1338 "tools/player_x11/data_source_logger.cc", |
1339 "tools/player_x11/data_source_logger.h", | 1339 "tools/player_x11/data_source_logger.h", |
1340 "tools/player_x11/gl_video_renderer.cc", | 1340 "tools/player_x11/gl_video_renderer.cc", |
1341 "tools/player_x11/gl_video_renderer.h", | 1341 "tools/player_x11/gl_video_renderer.h", |
1342 "tools/player_x11/player_x11.cc", | 1342 "tools/player_x11/player_x11.cc", |
(...skipping 10 matching lines...) Expand all Loading... |
1353 deps = [ | 1353 deps = [ |
1354 ":media", | 1354 ":media", |
1355 ":shared_memory_support", | 1355 ":shared_memory_support", |
1356 "//base", | 1356 "//base", |
1357 "//ui/gl", | 1357 "//ui/gl", |
1358 "//ui/gfx", | 1358 "//ui/gfx", |
1359 "//ui/gfx/geometry", | 1359 "//ui/gfx/geometry", |
1360 ] | 1360 ] |
1361 } | 1361 } |
1362 } | 1362 } |
OLD | NEW |