• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS.  All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9declare_args() {
10  # Assume Chromium build for now, since that's the priority case for getting GN
11  # up and running with WebRTC.
12  build_with_chromium = true
13  build_with_libjingle = true
14
15  if (build_with_libjingle) {
16    include_tests = false
17    restrict_webrtc_logging = true
18  } else {
19    include_tests = true
20    restrict_webrtc_logging = false
21  }
22
23  # Adds video support to dependencies shared by voice and video engine.
24  # This should normally be enabled; the intended use is to disable only
25  # when building voice engine exclusively.
26  enable_video = true
27
28  # Selects fixed-point code where possible.
29  prefer_fixed_point = false
30
31  build_libjpeg = true
32  # Enables the use of protocol buffers for debug recordings.
33  enable_protobuf = true
34
35  # Disable by default.
36  have_dbus_glib = false
37
38  # Enable to use the Mozilla internal settings.
39  build_with_mozilla = false
40
41  # Define MIPS architecture variant, MIPS DSP variant and MIPS FPU
42  # This may be subject to change in accordance to Chromium's MIPS flags
43  mips_arch_variant = "mips32r1"
44  mips_dsp_rev = 0
45  mips_fpu = true
46
47  enable_android_opensl = true
48
49  if (is_ios) {
50    build_libjpeg = false
51    enable_protobuf = false
52  }
53
54  if (cpu_arch == "arm") {
55    prefer_fixed_point = true
56  }
57}
58