| 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 && !is_android) { | 34 if (is_posix) { |
| 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", |
| 598 "base/media_stub.cc", | 600 "base/media_stub.cc", |
| 599 "midi/midi_manager_android.cc", | 601 "midi/midi_manager_android.cc", |
| 600 "midi/usb_midi_device_android.cc", | 602 "midi/usb_midi_device_android.cc", |
| 601 "midi/usb_midi_device_android.h", | 603 "midi/usb_midi_device_android.h", |
| 602 "midi/usb_midi_device_factory_android.cc", | 604 "midi/usb_midi_device_factory_android.cc", |
| 603 "midi/usb_midi_device_factory_android.h", | 605 "midi/usb_midi_device_factory_android.h", |
| 604 "video/capture/android/video_capture_device_android.cc", | 606 "video/capture/android/video_capture_device_android.cc", |
| 605 "video/capture/android/video_capture_device_android.h", | 607 "video/capture/android/video_capture_device_android.h", |
| 606 "video/capture/android/video_capture_device_factory_android.cc", | 608 "video/capture/android/video_capture_device_factory_android.cc", |
| 607 "video/capture/android/video_capture_device_factory_android.h", | 609 "video/capture/android/video_capture_device_factory_android.h", |
| 608 ] | 610 ] |
| 609 defines += [ "DISABLE_USER_INPUT_MONITOR" ] | 611 defines += [ "DISABLE_USER_INPUT_MONITOR" ] |
| 610 # TODO(ajwong): Fix for android. | 612 # TODO(ajwong): Fix for android. |
| 611 # deps += [ | 613 # deps += [ |
| 612 # ":media_android_jni_headers", | 614 # ":media_android_jni_headers", |
| 613 # ":player_android", | 615 # ":player_android", |
| 614 # ":video_capture_android_jni_headers", | 616 # ":video_capture_android_jni_headers", |
| 615 # ] | 617 # ] |
| 616 # if (!android_webview_build) { | 618 # if (!android_webview_build) { |
| 617 # deps += [ ":media_java" ] | 619 # deps += [ ":media_java" ] |
| 618 # } | 620 # } |
| 619 } | 621 } |
| 620 | 622 |
| 621 if (is_chromeos) { | 623 if (is_chromeos) { |
| 622 # A simple WebM encoder for animated avatars on ChromeOS. | 624 # A simple WebM encoder for animated avatars on ChromeOS. |
| 623 sources += [ | 625 sources += [ |
| 624 "formats/webm/chromeos/ebml_writer.cc", | 626 "formats/webm/chromeos/ebml_writer.cc", |
| 625 "formats/webm/chromeos/ebml_writer.h", | 627 "formats/webm/chromeos/ebml_writer.h", |
| 626 "formats/webm/chromeos/webm_encoder.cc", | 628 "formats/webm/chromeos/webm_encoder.cc", |
| 627 "formats/webm/chromeos/webm_encoder.h", | 629 "formats/webm/chromeos/webm_encoder.h", |
| 628 ] | 630 ] |
| 629 deps += [ | 631 deps += [ |
| 630 "//third_party/libvpx", | 632 "//third_party/libvpx", |
| 631 "//third_party/libyuv" | 633 "//third_party/libyuv" |
| 632 ] | 634 ] |
| 633 # For VaapiVideoEncodeAccelerator. | 635 # For VaapiVideoEncodeAccelerator. |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1279 "base/channel_layout.h", | 1281 "base/channel_layout.h", |
| 1280 "base/limits.h", | 1282 "base/limits.h", |
| 1281 "base/media_export.h", | 1283 "base/media_export.h", |
| 1282 "base/vector_math.cc", | 1284 "base/vector_math.cc", |
| 1283 "base/vector_math.h", | 1285 "base/vector_math.h", |
| 1284 ] | 1286 ] |
| 1285 configs += [ ":media_config" ] | 1287 configs += [ ":media_config" ] |
| 1286 deps = [ "//base" ] | 1288 deps = [ "//base" ] |
| 1287 } | 1289 } |
| 1288 | 1290 |
| 1289 if (media_use_ffmpeg) { | 1291 test("ffmpeg_unittests") { |
| 1290 test("ffmpeg_unittests") { | 1292 sources = [ "ffmpeg/ffmpeg_unittest.cc" ] |
| 1291 sources = [ "ffmpeg/ffmpeg_unittest.cc" ] | |
| 1292 | 1293 |
| 1293 deps = [ | 1294 deps = [ |
| 1294 ":media", | 1295 ":media", |
| 1295 ":media_test_support", | 1296 ":media_test_support", |
| 1296 "//base", | 1297 "//base", |
| 1297 "//base:i18n", | 1298 "//base:i18n", |
| 1298 "//base/test:test_support", | 1299 "//base/test:test_support", |
| 1299 "//testing/gtest", | 1300 "//testing/gtest", |
| 1300 "//third_party/ffmpeg", | 1301 "//third_party/ffmpeg", |
| 1301 "//ui/gfx:gfx_test_support", | 1302 "//ui/gfx:gfx_test_support", |
| 1302 ] | 1303 ] |
| 1303 } | 1304 } |
| 1304 | 1305 |
| 1305 test("ffmpeg_regression_tests") { | 1306 test("ffmpeg_regression_tests") { |
| 1306 sources = [ | 1307 sources = [ |
| 1307 "base/run_all_unittests.cc", | 1308 "base/run_all_unittests.cc", |
| 1308 "ffmpeg/ffmpeg_regression_tests.cc", | 1309 "ffmpeg/ffmpeg_regression_tests.cc", |
| 1309 "filters/pipeline_integration_test_base.cc", | 1310 "filters/pipeline_integration_test_base.cc", |
| 1310 ] | 1311 ] |
| 1311 configs += [ ":media_config" ] | 1312 configs += [ ":media_config" ] |
| 1312 deps = [ | 1313 deps = [ |
| 1313 ":media", | 1314 ":media", |
| 1314 ":media_test_support", | 1315 ":media_test_support", |
| 1315 "//base/test:test_support", | 1316 "//base/test:test_support", |
| 1316 "//testing/gmock", | 1317 "//testing/gmock", |
| 1317 "//testing/gtest", | 1318 "//testing/gtest", |
| 1318 "//third_party/ffmpeg", | 1319 "//third_party/ffmpeg", |
| 1319 "//ui/gfx/geometry", | 1320 "//ui/gfx/geometry", |
| 1320 "//ui/gfx:gfx_test_support", | 1321 "//ui/gfx:gfx_test_support", |
| 1321 ] | 1322 ] |
| 1322 # TODO(ajwong): This was in the original gyp, but it seems silly. | 1323 # TODO(ajwong): This was in the original gyp, but it seems silly. |
| 1323 # ['os_posix==1 and OS!="mac"', { | 1324 # ['os_posix==1 and OS!="mac"', { |
| 1324 # 'conditions': [ | 1325 # 'conditions': [ |
| 1325 # ['use_allocator!="none"', { | 1326 # ['use_allocator!="none"', { |
| 1326 # 'dependencies': [ | 1327 # 'dependencies': [ |
| 1327 # '../base/allocator/allocator.gyp:allocator', | 1328 # '../base/allocator/allocator.gyp:allocator', |
| 1328 # ], | 1329 # ], |
| 1329 # }], | 1330 # }], |
| 1330 # ], | 1331 # ], |
| 1331 # }], | 1332 # }], |
| 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 |