| 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) { | |
| 28 defines += [ "ENABLE_MPEG2TS_STREAM_PARSER" ] | |
| 29 } | |
| 30 } | 27 } |
| 31 | 28 |
| 32 config("media_dependent_config") { | 29 config("media_dependent_config") { |
| 33 if (!media_use_libvpx) { | 30 if (!media_use_libvpx) { |
| 34 defines = [ "MEDIA_DISABLE_LIBVPX" ] | 31 defines = [ "MEDIA_DISABLE_LIBVPX" ] |
| 35 } | 32 } |
| 36 if (is_win) { | 33 if (is_win) { |
| 37 ldflags = [ | 34 ldflags = [ |
| 38 "/DELAYLOAD:mf.dll", | 35 "/DELAYLOAD:mf.dll", |
| 39 "/DELAYLOAD:mfplat.dll", | 36 "/DELAYLOAD:mfplat.dll", |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 java_cpp_template("media_android_imageformat_list") { | 737 java_cpp_template("media_android_imageformat_list") { |
| 741 sources = [ | 738 sources = [ |
| 742 "base/android/java/src/org/chromium/media/ImageFormat.template", | 739 "base/android/java/src/org/chromium/media/ImageFormat.template", |
| 743 ] | 740 ] |
| 744 inputs = [ | 741 inputs = [ |
| 745 "video/capture/android/imageformat_list.h" | 742 "video/capture/android/imageformat_list.h" |
| 746 ] | 743 ] |
| 747 package_name = "org/chromium/media" | 744 package_name = "org/chromium/media" |
| 748 } | 745 } |
| 749 } | 746 } |
| OLD | NEW |