blob: 409ae1d23c4bb6040683f262cfa53ae23a3a3997 [file] [log] [blame]
kjellander@webrtc.org851a09e2014-06-17 08:54:03 +00001# 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
kjellander@webrtc.org78f440c2014-06-21 14:25:16 +000031 # Enable data logging. Produces text files with data logged within engines
32 # which can be easily parsed for offline processing.
33 enable_data_logging = false
34
kjellander@webrtc.org851a09e2014-06-17 08:54:03 +000035 build_libjpeg = true
36 # Enables the use of protocol buffers for debug recordings.
37 enable_protobuf = true
38
39 # Disable by default.
40 have_dbus_glib = false
41
42 # Enable to use the Mozilla internal settings.
43 build_with_mozilla = false
44
45 # Define MIPS architecture variant, MIPS DSP variant and MIPS FPU
46 # This may be subject to change in accordance to Chromium's MIPS flags
47 mips_arch_variant = "mips32r1"
48 mips_dsp_rev = 0
49 mips_fpu = true
50
51 enable_android_opensl = true
52
53 if (is_ios) {
54 build_libjpeg = false
55 enable_protobuf = false
56 }
57
58 if (cpu_arch == "arm") {
59 prefer_fixed_point = true
60 }
61}