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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 # normally shouldn't need to include this in your target as it's automatically | 173 # normally shouldn't need to include this in your target as it's automatically |
174 # included when using the rtc_* templates. It set the defines, include paths and | 174 # included when using the rtc_* templates. It set the defines, include paths and |
175 # compilation warnings that should be propagated to dependents of the targets | 175 # compilation warnings that should be propagated to dependents of the targets |
176 # depending on the target having this config. | 176 # depending on the target having this config. |
177 rtc_common_inherited_config = webrtc_root + ":common_inherited_config" | 177 rtc_common_inherited_config = webrtc_root + ":common_inherited_config" |
178 | 178 |
179 # Common configs to remove or add in all rtc targets. | 179 # Common configs to remove or add in all rtc targets. |
180 rtc_remove_configs = [] | 180 rtc_remove_configs = [] |
181 rtc_add_configs = [ rtc_common_config ] | 181 rtc_add_configs = [ rtc_common_config ] |
182 | 182 |
183 if (!is_debug) { | 183 if (!is_debug && is_win) { |
184 rtc_remove_configs += [ "//build/config/compiler:default_optimization" ] | 184 rtc_remove_configs += [ "//build/config/compiler:default_optimization" ] |
185 rtc_add_configs += [ "//build/config/compiler:optimize_max" ] | 185 rtc_add_configs += [ "//build/config/compiler:optimize_max" ] |
186 } | 186 } |
187 | 187 |
188 set_defaults("rtc_test") { | 188 set_defaults("rtc_test") { |
189 configs = rtc_add_configs | 189 configs = rtc_add_configs |
190 suppressed_configs = [] | 190 suppressed_configs = [] |
191 } | 191 } |
192 | 192 |
193 set_defaults("rtc_source_set") { | 193 set_defaults("rtc_source_set") { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 ]) | 278 ]) |
279 configs += invoker.configs | 279 configs += invoker.configs |
280 configs -= rtc_remove_configs | 280 configs -= rtc_remove_configs |
281 configs -= invoker.suppressed_configs | 281 configs -= invoker.suppressed_configs |
282 public_configs = [ rtc_common_inherited_config ] | 282 public_configs = [ rtc_common_inherited_config ] |
283 if (defined(invoker.public_configs)) { | 283 if (defined(invoker.public_configs)) { |
284 public_configs += invoker.public_configs | 284 public_configs += invoker.public_configs |
285 } | 285 } |
286 } | 286 } |
287 } | 287 } |
OLD | NEW |