| 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/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//build/config/linux/pkg_config.gni") | 8 import("//build/config/linux/pkg_config.gni") |
| 9 import("//media/media_options.gni") | 9 import("//media/media_options.gni") |
| 10 | 10 |
| 11 # Common configuration for targets in the media directory. | 11 # Common configuration for targets in the media directory. |
| 12 # NOT for exporting. | 12 # NOT for exporting. |
| 13 config("media_config") { | 13 config("media_config") { |
| 14 defines = [ "MEDIA_IMPLEMENTATION" ] | 14 defines = [ "MEDIA_IMPLEMENTATION" ] |
| 15 if (cpu_arch == "arm" && arm_use_neon) { | 15 if (cpu_arch == "arm" && arm_use_neon) { |
| 16 defines += [ "USE_NEON" ] | 16 defines += [ "USE_NEON" ] |
| 17 } | 17 } |
| 18 if (use_pulseaudio) { | 18 if (use_pulseaudio) { |
| 19 defines += [ "USE_PULSEAUDIO" ] | 19 defines += [ "USE_PULSEAUDIO" ] |
| 20 if (linux_link_pulseaudio) { | 20 if (!linux_link_pulseaudio) { |
| 21 defines += [ "DLOPEN_PULSEAUDIO" ] | 21 defines += [ "DLOPEN_PULSEAUDIO" ] |
| 22 } | 22 } |
| 23 } | 23 } |
| 24 if (use_cras) { | 24 if (use_cras) { |
| 25 defines = [ "USE_CRAS" ] | 25 defines = [ "USE_CRAS" ] |
| 26 } | 26 } |
| 27 if (enable_mpeg2ts_stream_parser) { | 27 if (enable_mpeg2ts_stream_parser) { |
| 28 defines += [ "ENABLE_MPEG2TS_STREAM_PARSER" ] | 28 defines += [ "ENABLE_MPEG2TS_STREAM_PARSER" ] |
| 29 } | 29 } |
| 30 } | 30 } |
| (...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 ":test_support", | 820 ":test_support", |
| 821 "//base/test:test_support", | 821 "//base/test:test_support", |
| 822 "//media/audio:unittests", | 822 "//media/audio:unittests", |
| 823 "//media/audio:test_support", | 823 "//media/audio:test_support", |
| 824 "//skia", # Direct dependency required to inherit config. | 824 "//skia", # Direct dependency required to inherit config. |
| 825 "//testing/gmock", | 825 "//testing/gmock", |
| 826 "//testing/gtest", | 826 "//testing/gtest", |
| 827 # TODO(dalecurtis): Port the rest of Widevine stuff. | 827 # TODO(dalecurtis): Port the rest of Widevine stuff. |
| 828 "//third_party/widevine/cdm:version_h", | 828 "//third_party/widevine/cdm:version_h", |
| 829 "//ui/gfx:test_support", | 829 "//ui/gfx:test_support", |
| 830 "//url", |
| 830 ] | 831 ] |
| 831 if (media_use_ffmpeg) { | 832 if (media_use_ffmpeg) { |
| 832 deps += [ | 833 deps += [ |
| 833 "//third_party/ffmpeg", # Direct dependency required to inherit config. | 834 "//third_party/ffmpeg", # Direct dependency required to inherit config. |
| 834 ] | 835 ] |
| 835 } | 836 } |
| 836 } | 837 } |
| 837 | 838 |
| 838 test("media_perftests") { | 839 test("media_perftests") { |
| 839 sources = [ | 840 sources = [ |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1158 "base/android/java/src/org/chromium/media/ImageFormat.template", | 1159 "base/android/java/src/org/chromium/media/ImageFormat.template", |
| 1159 ] | 1160 ] |
| 1160 inputs = [ | 1161 inputs = [ |
| 1161 "video/capture/android/imageformat_list.h" | 1162 "video/capture/android/imageformat_list.h" |
| 1162 ] | 1163 ] |
| 1163 package_name = "org/chromium/media" | 1164 package_name = "org/chromium/media" |
| 1164 } | 1165 } |
| 1165 | 1166 |
| 1166 # TODO(dalecurtis): Finish media_unittests_apk and media_perftests_apk. | 1167 # TODO(dalecurtis): Finish media_unittests_apk and media_perftests_apk. |
| 1167 } | 1168 } |
| OLD | NEW |