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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 # Setting this flag will override this logic and generate 64-bit toolchains. | 48 # Setting this flag will override this logic and generate 64-bit toolchains. |
49 # | 49 # |
50 # Normally this would get set automatically when you specify a target using | 50 # Normally this would get set automatically when you specify a target using |
51 # the 64-bit toolchain. You can also set this on the command line to convert | 51 # the 64-bit toolchain. You can also set this on the command line to convert |
52 # the default toolchain to 64-bit. | 52 # the default toolchain to 64-bit. |
53 force_win64 = false | 53 force_win64 = false |
54 | 54 |
55 # Set to true on the command line when invoked by GYP. Build files can key | 55 # Set to true on the command line when invoked by GYP. Build files can key |
56 # off of this to make any GYP-output-specific changes to the build. | 56 # off of this to make any GYP-output-specific changes to the build. |
57 is_gyp = false | 57 is_gyp = false |
| 58 |
| 59 # Selects the desired build flavor. Official builds get additional |
| 60 # processing to prepare for release. Normally you will want to develop and |
| 61 # test with this flag off. |
| 62 is_official_build = false |
| 63 |
| 64 # Select the desired branding flavor. False means normal Chromium branding, |
| 65 # true means official Google Chrome branding (requires extra Google-internal |
| 66 # resources). |
| 67 is_chrome_branded = false |
58 } | 68 } |
59 | 69 |
60 # ============================================================================= | 70 # ============================================================================= |
61 # OS DEFINITIONS | 71 # OS DEFINITIONS |
62 # ============================================================================= | 72 # ============================================================================= |
63 # | 73 # |
64 # We set these various is_FOO booleans for convenience in writing OS-based | 74 # We set these various is_FOO booleans for convenience in writing OS-based |
65 # conditions. | 75 # conditions. |
66 # | 76 # |
67 # - is_android, is_chromeos, is_ios, and is_win should be obvious. | 77 # - is_android, is_chromeos, is_ios, and is_win should be obvious. |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 set_default_toolchain("//build/toolchain/linux:arm") | 417 set_default_toolchain("//build/toolchain/linux:arm") |
408 } else if (build_cpu_arch == "x86") { | 418 } else if (build_cpu_arch == "x86") { |
409 set_default_toolchain("//build/toolchain/linux:32") | 419 set_default_toolchain("//build/toolchain/linux:32") |
410 } else if (build_cpu_arch == "x64") { | 420 } else if (build_cpu_arch == "x64") { |
411 set_default_toolchain("//build/toolchain/linux:64") | 421 set_default_toolchain("//build/toolchain/linux:64") |
412 } | 422 } |
413 } else if (is_mac) { | 423 } else if (is_mac) { |
414 host_toolchain = "//build/toolchain/mac:clang" | 424 host_toolchain = "//build/toolchain/mac:clang" |
415 set_default_toolchain(host_toolchain) | 425 set_default_toolchain(host_toolchain) |
416 } | 426 } |
OLD | NEW |