| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # ============================================================================= | 5 # ============================================================================= |
| 6 # PLATFORM SELECTION | 6 # PLATFORM SELECTION |
| 7 # ============================================================================= | 7 # ============================================================================= |
| 8 # | 8 # |
| 9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name | 9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name |
| 10 # of the GN thing that encodes combinations of these things. | 10 # of the GN thing that encodes combinations of these things. |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 _native_compiler_configs += [ | 229 _native_compiler_configs += [ |
| 230 "//build/config/win:lean_and_mean", | 230 "//build/config/win:lean_and_mean", |
| 231 "//build/config/win:nominmax", | 231 "//build/config/win:nominmax", |
| 232 "//build/config/win:sdk", | 232 "//build/config/win:sdk", |
| 233 "//build/config/win:unicode", | 233 "//build/config/win:unicode", |
| 234 "//build/config/win:winver", | 234 "//build/config/win:winver", |
| 235 ] | 235 ] |
| 236 } | 236 } |
| 237 if (is_posix) { | 237 if (is_posix) { |
| 238 _native_compiler_configs += [ "//build/config/gcc:no_exceptions" ] | 238 _native_compiler_configs += [ "//build/config/gcc:no_exceptions" ] |
| 239 if (is_product) { |
| 240 _native_compiler_configs += |
| 241 [ "//build/config/gcc:symbol_visibility_hidden" ] |
| 242 } |
| 239 } | 243 } |
| 240 | 244 |
| 241 if (is_linux) { | 245 if (is_linux) { |
| 242 _native_compiler_configs += [ "//build/config/linux:sdk" ] | 246 _native_compiler_configs += [ "//build/config/linux:sdk" ] |
| 243 } else if (is_mac) { | 247 } else if (is_mac) { |
| 244 _native_compiler_configs += [ "//build/config/mac:sdk" ] | 248 _native_compiler_configs += [ "//build/config/mac:sdk" ] |
| 245 } else if (is_android) { | 249 } else if (is_android) { |
| 246 _native_compiler_configs += [ "//build/config/android:sdk" ] | 250 _native_compiler_configs += [ "//build/config/android:sdk" ] |
| 247 } | 251 } |
| 248 | 252 |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 sources = invoker.sources | 467 sources = invoker.sources |
| 464 } | 468 } |
| 465 if (defined(invoker.testonly)) { | 469 if (defined(invoker.testonly)) { |
| 466 testonly = invoker.testonly | 470 testonly = invoker.testonly |
| 467 } | 471 } |
| 468 if (defined(invoker.visibility)) { | 472 if (defined(invoker.visibility)) { |
| 469 visibility = invoker.visibility | 473 visibility = invoker.visibility |
| 470 } | 474 } |
| 471 } | 475 } |
| 472 } | 476 } |
| OLD | NEW |