Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / ffmpeg / ffmpeg_options.gni
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.
4
5 import("//build/config/arm.gni")
6
7 if (is_chrome_branded) {
8   _default_ffmpeg_branding = "Chrome"
9 } else {
10   _default_ffmpeg_branding = "Chromium"
11 }
12
13 if (is_chromeos) {
14   _default_ffmpeg_branding = _default_ffmpeg_branding + "OS"
15 }
16
17 declare_args() {
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
22
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
27 }
28
29 assert(ffmpeg_branding == "Chromium" ||
30        ffmpeg_branding == "Chrome" ||
31        ffmpeg_branding == "ChromiumOS" ||
32        ffmpeg_branding == "ChromeOS")
33
34 if (cpu_arch == "x86") {
35   ffmpeg_arch = "ia32"
36 } else if (cpu_arch == "arm" && arm_version == 7 && arm_use_neon) {
37   ffmpeg_arch = "arm-neon"
38 } else {
39   ffmpeg_arch = cpu_arch
40 }
41
42 os_config = os
43 if ((is_linux || is_chromeos) && is_msan) {
44   os_config = "linux-noasm"
45 } else if (is_chromeos) {
46   os_config = "linux"
47 }