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
3 # found in the LICENSE file.
5 import("//build/config/arm.gni")
7 if (is_chrome_branded) {
8 _default_ffmpeg_branding = "Chrome"
10 _default_ffmpeg_branding = "Chromium"
14 _default_ffmpeg_branding = _default_ffmpeg_branding + "OS"
18 # Controls whether we build the Chromium or Google Chrome version of FFmpeg.
19 # The Google Chrome version contains additional codecs. Typical values are
20 # Chromium, Chrome, ChromiumOS, and ChromeOS.
21 ffmpeg_branding = _default_ffmpeg_branding
23 # When set to false will build Chromium against Chrome's FFmpeg headers, but
24 # not build ffmpegsumo itself. Users are expected to build and provide
25 # their own version of ffmpegsumo.
26 build_ffmpegsumo = true
29 assert(ffmpeg_branding == "Chromium" ||
30 ffmpeg_branding == "Chrome" ||
31 ffmpeg_branding == "ChromiumOS" ||
32 ffmpeg_branding == "ChromeOS")
34 if (cpu_arch == "x86") {
36 } else if (cpu_arch == "arm" && arm_version == 7 && arm_use_neon) {
37 ffmpeg_arch = "arm-neon"
39 ffmpeg_arch = cpu_arch
43 if ((is_linux || is_chromeos) && is_msan) {
44 os_config = "linux-noasm"
45 } else if (is_chromeos) {