blob: 281047a53aff7be6b8615f4bb9ae66b285a3da99 [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 # Enables the use of protocol buffers for debug recordings.
36 enable_protobuf = true
37
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000038 # Disable these to not build components which can be externally provided.
39 build_json = true
40 build_libjpeg = true
41 build_libyuv = true
42 build_libvpx = true
43 build_ssl = true
44
kjellander@webrtc.org851a09e2014-06-17 08:54:03 +000045 # Disable by default.
46 have_dbus_glib = false
47
48 # Enable to use the Mozilla internal settings.
49 build_with_mozilla = false
50
51 # Define MIPS architecture variant, MIPS DSP variant and MIPS FPU
52 # This may be subject to change in accordance to Chromium's MIPS flags
53 mips_arch_variant = "mips32r1"
54 mips_dsp_rev = 0
55 mips_fpu = true
56
57 enable_android_opensl = true
58
59 if (is_ios) {
60 build_libjpeg = false
61 enable_protobuf = false
62 }
63
64 if (cpu_arch == "arm") {
65 prefer_fixed_point = true
66 }
67}