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") |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 # automatically included when using the rtc_* templates. | 166 # automatically included when using the rtc_* templates. |
167 # It sets defines, include paths and compilation warnings accordingly, | 167 # It sets defines, include paths and compilation warnings accordingly, |
168 # both for WebRTC stand-alone builds and for the scenario when WebRTC | 168 # both for WebRTC stand-alone builds and for the scenario when WebRTC |
169 # native code is built as part of Chromium. | 169 # native code is built as part of Chromium. |
170 rtc_common_config = webrtc_root + ":common_config" | 170 rtc_common_config = webrtc_root + ":common_config" |
171 | 171 |
172 # Common configs to remove or add in all rtc targets. | 172 # Common configs to remove or add in all rtc targets. |
173 rtc_remove_configs = [] | 173 rtc_remove_configs = [] |
174 rtc_add_configs = [ rtc_common_config ] | 174 rtc_add_configs = [ rtc_common_config ] |
175 | 175 |
| 176 if (!is_debug) { |
| 177 rtc_remove_configs += [ "//build/config/compiler:default_optimization" ] |
| 178 rtc_add_configs += [ "//build/config/compiler:optimize_max" ] |
| 179 } |
| 180 |
176 set_defaults("rtc_test") { | 181 set_defaults("rtc_test") { |
177 configs = rtc_add_configs | 182 configs = rtc_add_configs |
178 suppressed_configs = [] | 183 suppressed_configs = [] |
179 } | 184 } |
180 | 185 |
181 set_defaults("rtc_source_set") { | 186 set_defaults("rtc_source_set") { |
182 configs = rtc_add_configs | 187 configs = rtc_add_configs |
183 suppressed_configs = [] | 188 suppressed_configs = [] |
184 } | 189 } |
185 | 190 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 "*", | 251 "*", |
247 [ | 252 [ |
248 "configs", | 253 "configs", |
249 "suppressed_configs", | 254 "suppressed_configs", |
250 ]) | 255 ]) |
251 configs += invoker.configs | 256 configs += invoker.configs |
252 configs -= rtc_remove_configs | 257 configs -= rtc_remove_configs |
253 configs -= invoker.suppressed_configs | 258 configs -= invoker.suppressed_configs |
254 } | 259 } |
255 } | 260 } |
OLD | NEW |