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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 | 64 |
65 # Compile for Thread Sanitizer to find threading bugs. | 65 # Compile for Thread Sanitizer to find threading bugs. |
66 is_tsan = false | 66 is_tsan = false |
67 | 67 |
68 if (os == "chromeos") { | 68 if (os == "chromeos") { |
69 # Allows the target toolchain to be injected as arguments. This is needed | 69 # Allows the target toolchain to be injected as arguments. This is needed |
70 # to support the CrOS build system which supports per-build-configuration | 70 # to support the CrOS build system which supports per-build-configuration |
71 # toolchains. | 71 # toolchains. |
72 cros_use_custom_toolchain = false | 72 cros_use_custom_toolchain = false |
73 } | 73 } |
74 | |
75 if (os == "android") { | |
76 # Architecture of the target device. | |
brettw
2014/10/16 19:19:07
Can you add here something to the effect of "This
cjhopman
2014/10/16 21:29:59
Done.
| |
77 target_arch = "arm" | |
78 } | |
74 } | 79 } |
75 | 80 |
76 # ============================================================================= | 81 # ============================================================================= |
77 # OS DEFINITIONS | 82 # OS DEFINITIONS |
78 # ============================================================================= | 83 # ============================================================================= |
79 # | 84 # |
80 # We set these various is_FOO booleans for convenience in writing OS-based | 85 # We set these various is_FOO booleans for convenience in writing OS-based |
81 # conditions. | 86 # conditions. |
82 # | 87 # |
83 # - is_android, is_chromeos, is_ios, and is_win should be obvious. | 88 # - is_android, is_chromeos, is_ios, and is_win should be obvious. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
167 if (is_win) { | 172 if (is_win) { |
168 # Always use 32-bit on Windows, even when compiling on a 64-bit host OS, | 173 # Always use 32-bit on Windows, even when compiling on a 64-bit host OS, |
169 # unless the override flag is specified. | 174 # unless the override flag is specified. |
170 if (force_win64) { | 175 if (force_win64) { |
171 cpu_arch = "x64" | 176 cpu_arch = "x64" |
172 } else { | 177 } else { |
173 cpu_arch = "x86" | 178 cpu_arch = "x86" |
174 } | 179 } |
175 } | 180 } |
176 | 181 |
182 if (is_android) { | |
183 # TODO(cjhopman): enable this assert once bots are updated to not set | |
184 # cpu_arch. | |
185 #assert(cpu_arch == build_cpu_arch, "Android device target architecture should | |
186 # be set with 'target_arch', not 'cpu_arch'") | |
187 cpu_arch = target_arch | |
188 } | |
189 | |
177 # ============================================================================= | 190 # ============================================================================= |
178 # SOURCES FILTERS | 191 # SOURCES FILTERS |
179 # ============================================================================= | 192 # ============================================================================= |
180 # | 193 # |
181 # These patterns filter out platform-specific files when assigning to the | 194 # These patterns filter out platform-specific files when assigning to the |
182 # sources variable. The magic variable |sources_assignment_filter| is applied | 195 # sources variable. The magic variable |sources_assignment_filter| is applied |
183 # to each assignment or appending to the sources variable and matches are | 196 # to each assignment or appending to the sources variable and matches are |
184 # automatcally removed. | 197 # automatcally removed. |
185 # | 198 # |
186 # Note that the patterns are NOT regular expressions. Only "*" and "\b" (path | 199 # Note that the patterns are NOT regular expressions. Only "*" and "\b" (path |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
683 if (defined(invoker.output_extension)) { output_extension = invoker.output _extension } | 696 if (defined(invoker.output_extension)) { output_extension = invoker.output _extension } |
684 if (defined(invoker.output_name)) { output_name = invoker.output_name } | 697 if (defined(invoker.output_name)) { output_name = invoker.output_name } |
685 if (defined(invoker.public)) { public = invoker.public } | 698 if (defined(invoker.public)) { public = invoker.public } |
686 if (defined(invoker.public_configs)) { public_configs = invoker.public_con figs } | 699 if (defined(invoker.public_configs)) { public_configs = invoker.public_con figs } |
687 if (defined(invoker.public_deps)) { public_deps = invoker.public_deps } | 700 if (defined(invoker.public_deps)) { public_deps = invoker.public_deps } |
688 if (defined(invoker.sources)) { sources = invoker.sources } | 701 if (defined(invoker.sources)) { sources = invoker.sources } |
689 if (defined(invoker.visibility)) { visibility = invoker.visibility } | 702 if (defined(invoker.visibility)) { visibility = invoker.visibility } |
690 } | 703 } |
691 } | 704 } |
692 } | 705 } |
OLD | NEW |