kjellander@webrtc.org | 851a09e | 2014-06-17 08:54:03 +0000 | [diff] [blame] | 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 | |
| 9 | declare_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 | |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame^] | 28 | # Disable this to not build libvpx and instead use an externally provided lib. |
| 29 | build_libvpx = true |
| 30 | |
kjellander@webrtc.org | 851a09e | 2014-06-17 08:54:03 +0000 | [diff] [blame] | 31 | # Selects fixed-point code where possible. |
| 32 | prefer_fixed_point = false |
| 33 | |
kjellander@webrtc.org | 78f440c | 2014-06-21 14:25:16 +0000 | [diff] [blame] | 34 | # Enable data logging. Produces text files with data logged within engines |
| 35 | # which can be easily parsed for offline processing. |
| 36 | enable_data_logging = false |
| 37 | |
kjellander@webrtc.org | 851a09e | 2014-06-17 08:54:03 +0000 | [diff] [blame] | 38 | # Enables the use of protocol buffers for debug recordings. |
| 39 | enable_protobuf = true |
| 40 | |
kjellander@webrtc.org | 11bea89 | 2014-07-03 17:04:12 +0000 | [diff] [blame] | 41 | # Disable these to not build components which can be externally provided. |
| 42 | build_json = true |
| 43 | build_libjpeg = true |
| 44 | build_libyuv = true |
| 45 | build_libvpx = true |
| 46 | build_ssl = true |
| 47 | |
kjellander@webrtc.org | 851a09e | 2014-06-17 08:54:03 +0000 | [diff] [blame] | 48 | # Disable by default. |
| 49 | have_dbus_glib = false |
| 50 | |
| 51 | # Enable to use the Mozilla internal settings. |
| 52 | build_with_mozilla = false |
| 53 | |
| 54 | # Define MIPS architecture variant, MIPS DSP variant and MIPS FPU |
| 55 | # This may be subject to change in accordance to Chromium's MIPS flags |
| 56 | mips_arch_variant = "mips32r1" |
| 57 | mips_dsp_rev = 0 |
| 58 | mips_fpu = true |
| 59 | |
| 60 | enable_android_opensl = true |
| 61 | |
| 62 | if (is_ios) { |
| 63 | build_libjpeg = false |
| 64 | enable_protobuf = false |
| 65 | } |
| 66 | |
| 67 | if (cpu_arch == "arm") { |
| 68 | prefer_fixed_point = true |
| 69 | } |
| 70 | } |