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 # WHAT IS THIS FILE? | 6 # WHAT IS THIS FILE? |
7 # ============================================================================= | 7 # ============================================================================= |
8 # | 8 # |
9 # This is the master GN build configuration. This file is loaded after the | 9 # This is the master GN build configuration. This file is loaded after the |
10 # build args (args.gn) for the build directory and after the toplevel ".gn" | 10 # build args (args.gn) for the build directory and after the toplevel ".gn" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 # separate flags. | 130 # separate flags. |
131 is_official_build = false | 131 is_official_build = false |
132 | 132 |
133 # Whether we're a traditional desktop unix. | 133 # Whether we're a traditional desktop unix. |
134 is_desktop_linux = current_os == "linux" | 134 is_desktop_linux = current_os == "linux" |
135 | 135 |
136 # Set to true when compiling with the Clang compiler. Typically this is used | 136 # Set to true when compiling with the Clang compiler. Typically this is used |
137 # to configure warnings. | 137 # to configure warnings. |
138 is_clang = | 138 is_clang = |
139 current_os == "mac" || current_os == "ios" || current_os == "chromeos" || | 139 current_os == "mac" || current_os == "ios" || current_os == "chromeos" || |
140 current_os == "fuchsia" || current_os == "win" || | 140 current_os == "fuchsia" || |
141 (current_os == "linux" && current_cpu != "s390x" && | 141 (current_os == "linux" && current_cpu != "s390x" && |
142 current_cpu != "s390" && current_cpu != "ppc64" && | 142 current_cpu != "s390" && current_cpu != "ppc64" && |
143 current_cpu != "ppc" && current_cpu != "mips" && current_cpu != "mips64") | 143 current_cpu != "ppc" && current_cpu != "mips" && current_cpu != "mips64") |
144 | 144 |
145 # Allows the path to a custom target toolchain to be injected as a single | 145 # Allows the path to a custom target toolchain to be injected as a single |
146 # argument, and set as the default toolchain. | 146 # argument, and set as the default toolchain. |
147 custom_toolchain = "" | 147 custom_toolchain = "" |
148 | 148 |
149 # This should not normally be set as a build argument. It's here so that | 149 # This should not normally be set as a build argument. It's here so that |
150 # every toolchain can pass through the "global" value via toolchain_args(). | 150 # every toolchain can pass through the "global" value via toolchain_args(). |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 set_defaults("component") { | 690 set_defaults("component") { |
691 if (is_component_build) { | 691 if (is_component_build) { |
692 configs = default_shared_library_configs | 692 configs = default_shared_library_configs |
693 if (is_android) { | 693 if (is_android) { |
694 configs -= [ "//build/config/android:hide_all_but_jni_onload" ] | 694 configs -= [ "//build/config/android:hide_all_but_jni_onload" ] |
695 } | 695 } |
696 } else { | 696 } else { |
697 configs = default_compiler_configs | 697 configs = default_compiler_configs |
698 } | 698 } |
699 } | 699 } |
OLD | NEW |