| 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 # BUILD FLAGS | 6 # BUILD FLAGS |
| 7 # ============================================================================= | 7 # ============================================================================= |
| 8 # | 8 # |
| 9 # This block lists input arguments to the build, along with their default | 9 # This block lists input arguments to the build, along with their default |
| 10 # values. GN requires listing them explicitly so it can validate input and have | 10 # values. GN requires listing them explicitly so it can validate input and have |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 is_asan = false | 70 is_asan = false |
| 71 | 71 |
| 72 # Compile for Leak Sanitizer to find leaks. | 72 # Compile for Leak Sanitizer to find leaks. |
| 73 is_lsan = false | 73 is_lsan = false |
| 74 | 74 |
| 75 # Compile for Memory Sanitizer to find uninitialized reads. | 75 # Compile for Memory Sanitizer to find uninitialized reads. |
| 76 is_msan = false | 76 is_msan = false |
| 77 | 77 |
| 78 # Compile for Thread Sanitizer to find threading bugs. | 78 # Compile for Thread Sanitizer to find threading bugs. |
| 79 is_tsan = false | 79 is_tsan = false |
| 80 |
| 81 # When running in gyp-generating mode, this is the root of the build tree. |
| 82 gyp_output_dir = "out" |
| 80 } | 83 } |
| 81 | 84 |
| 82 # ============================================================================= | 85 # ============================================================================= |
| 83 # OS DEFINITIONS | 86 # OS DEFINITIONS |
| 84 # ============================================================================= | 87 # ============================================================================= |
| 85 # | 88 # |
| 86 # We set these various is_FOO booleans for convenience in writing OS-based | 89 # We set these various is_FOO booleans for convenience in writing OS-based |
| 87 # conditions. | 90 # conditions. |
| 88 # | 91 # |
| 89 # - is_android, is_chromeos, is_ios, and is_win should be obvious. | 92 # - is_android, is_chromeos, is_ios, and is_win should be obvious. |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 } else if (is_android) { | 435 } else if (is_android) { |
| 433 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" | 436 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" |
| 434 set_default_toolchain("//build/toolchain/android:$cpu_arch") | 437 set_default_toolchain("//build/toolchain/android:$cpu_arch") |
| 435 } else if (is_linux) { | 438 } else if (is_linux) { |
| 436 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" | 439 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" |
| 437 set_default_toolchain("//build/toolchain/linux:$cpu_arch") | 440 set_default_toolchain("//build/toolchain/linux:$cpu_arch") |
| 438 } else if (is_mac || is_ios) { | 441 } else if (is_mac || is_ios) { |
| 439 host_toolchain = "//build/toolchain/mac:clang" | 442 host_toolchain = "//build/toolchain/mac:clang" |
| 440 set_default_toolchain(host_toolchain) | 443 set_default_toolchain(host_toolchain) |
| 441 } | 444 } |
| OLD | NEW |