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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 # normally shouldn't need to include this in your target as it's automatically | 183 # normally shouldn't need to include this in your target as it's automatically |
184 # included when using the rtc_* templates. It set the defines, include paths and | 184 # included when using the rtc_* templates. It set the defines, include paths and |
185 # compilation warnings that should be propagated to dependents of the targets | 185 # compilation warnings that should be propagated to dependents of the targets |
186 # depending on the target having this config. | 186 # depending on the target having this config. |
187 rtc_common_inherited_config = webrtc_root + ":common_inherited_config" | 187 rtc_common_inherited_config = webrtc_root + ":common_inherited_config" |
188 | 188 |
189 # Common configs to remove or add in all rtc targets. | 189 # Common configs to remove or add in all rtc targets. |
190 rtc_remove_configs = [] | 190 rtc_remove_configs = [] |
191 rtc_add_configs = [ rtc_common_config ] | 191 rtc_add_configs = [ rtc_common_config ] |
192 | 192 |
193 if (!is_debug && is_win) { | |
194 rtc_remove_configs += [ "//build/config/compiler:default_optimization" ] | |
195 rtc_add_configs += [ "//build/config/compiler:optimize_max" ] | |
196 } | |
197 | |
198 set_defaults("rtc_test") { | 193 set_defaults("rtc_test") { |
199 configs = rtc_add_configs | 194 configs = rtc_add_configs |
200 suppressed_configs = [] | 195 suppressed_configs = [] |
201 } | 196 } |
202 | 197 |
203 set_defaults("rtc_source_set") { | 198 set_defaults("rtc_source_set") { |
204 configs = rtc_add_configs | 199 configs = rtc_add_configs |
205 suppressed_configs = [] | 200 suppressed_configs = [] |
206 } | 201 } |
207 | 202 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 ]) | 307 ]) |
313 configs += invoker.configs | 308 configs += invoker.configs |
314 configs -= rtc_remove_configs | 309 configs -= rtc_remove_configs |
315 configs -= invoker.suppressed_configs | 310 configs -= invoker.suppressed_configs |
316 public_configs = [ rtc_common_inherited_config ] | 311 public_configs = [ rtc_common_inherited_config ] |
317 if (defined(invoker.public_configs)) { | 312 if (defined(invoker.public_configs)) { |
318 public_configs += invoker.public_configs | 313 public_configs += invoker.public_configs |
319 } | 314 } |
320 } | 315 } |
321 } | 316 } |
OLD | NEW |