OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 import("//build/config/features.gni") | 10 import("//build/config/features.gni") |
11 import("//build/config/mips.gni") | 11 import("//build/config/mips.gni") |
12 import("//build_overrides/webrtc.gni") | 12 import("//build_overrides/webrtc.gni") |
13 | 13 |
14 declare_args() { | 14 declare_args() { |
15 build_with_libjingle = true | |
16 | |
17 # Disable this to avoid building the Opus audio codec. | 15 # Disable this to avoid building the Opus audio codec. |
18 rtc_include_opus = true | 16 rtc_include_opus = true |
19 | 17 |
20 # Used to specify an external Jsoncpp include path when not compiling the | 18 # Used to specify an external Jsoncpp include path when not compiling the |
21 # library that comes with WebRTC (i.e. rtc_build_json == 0). | 19 # library that comes with WebRTC (i.e. rtc_build_json == 0). |
22 rtc_jsoncpp_root = "//third_party/jsoncpp/source/include" | 20 rtc_jsoncpp_root = "//third_party/jsoncpp/source/include" |
23 | 21 |
24 # Used to specify an external OpenSSL include path when not compiling the | 22 # Used to specify an external OpenSSL include path when not compiling the |
25 # library that comes with WebRTC (i.e. rtc_build_ssl == 0). | 23 # library that comes with WebRTC (i.e. rtc_build_ssl == 0). |
26 rtc_ssl_root = "" | 24 rtc_ssl_root = "" |
(...skipping 24 matching lines...) Expand all Loading... |
51 # Enable to use the Mozilla internal settings. | 49 # Enable to use the Mozilla internal settings. |
52 build_with_mozilla = false | 50 build_with_mozilla = false |
53 | 51 |
54 rtc_enable_android_opensl = false | 52 rtc_enable_android_opensl = false |
55 | 53 |
56 # Link-Time Optimizations. | 54 # Link-Time Optimizations. |
57 # Executes code generation at link-time instead of compile-time. | 55 # Executes code generation at link-time instead of compile-time. |
58 # https://gcc.gnu.org/wiki/LinkTimeOptimization | 56 # https://gcc.gnu.org/wiki/LinkTimeOptimization |
59 rtc_use_lto = false | 57 rtc_use_lto = false |
60 | 58 |
61 if (build_with_libjingle) { | 59 rtc_include_tests = false |
62 rtc_include_tests = false | 60 rtc_restrict_logging = true |
63 rtc_restrict_logging = true | |
64 } else { | |
65 rtc_include_tests = true | |
66 rtc_restrict_logging = false | |
67 } | |
68 | 61 |
69 if (is_ios) { | 62 if (is_ios) { |
70 rtc_build_libjpeg = false | 63 rtc_build_libjpeg = false |
71 rtc_enable_protobuf = false | 64 rtc_enable_protobuf = false |
72 } | 65 } |
73 | 66 |
74 if (current_cpu == "arm" || current_cpu == "arm64") { | 67 if (current_cpu == "arm" || current_cpu == "arm64") { |
75 rtc_prefer_fixed_point = true | 68 rtc_prefer_fixed_point = true |
76 } | 69 } |
77 | 70 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 declare_args() { | 109 declare_args() { |
117 # Include the iLBC audio codec? | 110 # Include the iLBC audio codec? |
118 rtc_include_ilbc = !(build_with_chromium || build_with_mozilla) | 111 rtc_include_ilbc = !(build_with_chromium || build_with_mozilla) |
119 } | 112 } |
120 | 113 |
121 # Make it possible to provide custom locations for some libraries (move these | 114 # Make it possible to provide custom locations for some libraries (move these |
122 # up into declare_args should we need to actually use them for the GN build). | 115 # up into declare_args should we need to actually use them for the GN build). |
123 rtc_libvpx_dir = "//third_party/libvpx" | 116 rtc_libvpx_dir = "//third_party/libvpx" |
124 rtc_libyuv_dir = "//third_party/libyuv" | 117 rtc_libyuv_dir = "//third_party/libyuv" |
125 rtc_opus_dir = "//third_party/opus" | 118 rtc_opus_dir = "//third_party/opus" |
OLD | NEW |