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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 # muct match the pattern (so you need "*.cc" to match all .cc files, for | 200 # muct match the pattern (so you need "*.cc" to match all .cc files, for |
201 # example). | 201 # example). |
202 | 202 |
203 # DO NOT ADD MORE PATTERNS TO THIS LIST, see set_sources_assignment_filter call | 203 # DO NOT ADD MORE PATTERNS TO THIS LIST, see set_sources_assignment_filter call |
204 # below. | 204 # below. |
205 windows_sources_filters = [ | 205 windows_sources_filters = [ |
206 "*_win.cc", | 206 "*_win.cc", |
207 "*_win.h", | 207 "*_win.h", |
208 "*_win_unittest.cc", | 208 "*_win_unittest.cc", |
209 "*\bwin/*", | 209 "*\bwin/*", |
| 210 "*.rc", |
210 ] | 211 ] |
211 mac_sources_filters = [ | 212 mac_sources_filters = [ |
212 "*_mac.h", | 213 "*_mac.h", |
213 "*_mac.cc", | 214 "*_mac.cc", |
214 "*_mac.mm", | 215 "*_mac.mm", |
215 "*_mac_unittest.h", | 216 "*_mac_unittest.h", |
216 "*_mac_unittest.cc", | 217 "*_mac_unittest.cc", |
217 "*_mac_unittest.mm", | 218 "*_mac_unittest.mm", |
218 "*\bmac/*", | 219 "*\bmac/*", |
219 "*_cocoa.h", | 220 "*_cocoa.h", |
(...skipping 30 matching lines...) Expand all Loading... |
250 "*_android_unittest.cc", | 251 "*_android_unittest.cc", |
251 "*\bandroid/*", | 252 "*\bandroid/*", |
252 ] | 253 ] |
253 posix_sources_filters = [ | 254 posix_sources_filters = [ |
254 "*_posix.h", | 255 "*_posix.h", |
255 "*_posix.cc", | 256 "*_posix.cc", |
256 "*_posix_unittest.h", | 257 "*_posix_unittest.h", |
257 "*_posix_unittest.cc", | 258 "*_posix_unittest.cc", |
258 "*\bposix/*", | 259 "*\bposix/*", |
259 ] | 260 ] |
| 261 chromeos_sources_filters = [ |
| 262 "*_chromeos.h", |
| 263 "*_chromeos.cc", |
| 264 "*_chromeos_unittest.h", |
| 265 "*_chromeos_unittest.cc", |
| 266 "*\bchromeos/*", |
| 267 ] |
260 # DO NOT ADD MORE PATTERNS TO THIS LIST, see set_sources_assignment_filter call | 268 # DO NOT ADD MORE PATTERNS TO THIS LIST, see set_sources_assignment_filter call |
261 # below. | 269 # below. |
262 | 270 |
263 # Construct the full list of sources we're using for this platform. | 271 # Construct the full list of sources we're using for this platform. |
264 sources_assignment_filter = [] | 272 sources_assignment_filter = [] |
265 if (is_win) { | 273 if (is_win) { |
266 sources_assignment_filter += posix_sources_filters | 274 sources_assignment_filter += posix_sources_filters |
267 } else { | 275 } else { |
268 sources_assignment_filter += windows_sources_filters | 276 sources_assignment_filter += windows_sources_filters |
269 } | 277 } |
270 if (!is_mac) { | 278 if (!is_mac) { |
271 sources_assignment_filter += mac_sources_filters | 279 sources_assignment_filter += mac_sources_filters |
272 } | 280 } |
273 if (!is_ios) { | 281 if (!is_ios) { |
274 sources_assignment_filter += ios_sources_filters | 282 sources_assignment_filter += ios_sources_filters |
275 } | 283 } |
276 if (!is_mac && !is_ios) { | 284 if (!is_mac && !is_ios) { |
277 sources_assignment_filter += objective_c_sources_filters | 285 sources_assignment_filter += objective_c_sources_filters |
278 } | 286 } |
279 if (!is_linux) { | 287 if (!is_linux) { |
280 sources_assignment_filter += linux_sources_filters | 288 sources_assignment_filter += linux_sources_filters |
281 } | 289 } |
282 if (!is_android) { | 290 if (!is_android) { |
283 sources_assignment_filter += android_sources_filters | 291 sources_assignment_filter += android_sources_filters |
284 } | 292 } |
| 293 if (!is_chromeos) { |
| 294 sources_assignment_filter += chromeos_sources_filters |
| 295 } |
285 | 296 |
286 # Actually save this list. | 297 # Actually save this list. |
287 # | 298 # |
288 # DO NOT ADD MORE PATTERNS TO THIS LIST. | 299 # DO NOT ADD MORE PATTERNS TO THIS LIST. |
289 # | 300 # |
290 # These patterns are executed for every file in the source tree of every run. | 301 # These patterns are executed for every file in the source tree of every run. |
291 # Therefore, adding more patterns slows down the build for everybody. We should | 302 # Therefore, adding more patterns slows down the build for everybody. We should |
292 # only add automatic patterns for configurations affecting hundreds of files | 303 # only add automatic patterns for configurations affecting hundreds of files |
293 # across many projects in the tree. | 304 # across many projects in the tree. |
294 # | 305 # |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 } else if (is_linux) { | 471 } else if (is_linux) { |
461 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" | 472 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" |
462 set_default_toolchain("//build/toolchain/linux:$cpu_arch") | 473 set_default_toolchain("//build/toolchain/linux:$cpu_arch") |
463 } else if (is_mac) { | 474 } else if (is_mac) { |
464 host_toolchain = "//build/toolchain/mac:clang" | 475 host_toolchain = "//build/toolchain/mac:clang" |
465 set_default_toolchain(host_toolchain) | 476 set_default_toolchain(host_toolchain) |
466 } else if (is_ios) { | 477 } else if (is_ios) { |
467 host_toolchain = "//build/toolchain/mac:host_clang" | 478 host_toolchain = "//build/toolchain/mac:host_clang" |
468 set_default_toolchain("//build/toolchain/mac:clang") | 479 set_default_toolchain("//build/toolchain/mac:clang") |
469 } | 480 } |
OLD | NEW |