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 # PLATFORM SELECTION | 6 # PLATFORM SELECTION |
7 # ============================================================================= | 7 # ============================================================================= |
8 # | 8 # |
9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name | 9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name |
10 # of the GN thing that encodes combinations of these things. | 10 # of the GN thing that encodes combinations of these things. |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 is_win = false | 333 is_win = false |
334 } | 334 } |
335 | 335 |
336 # ============================================================================= | 336 # ============================================================================= |
337 # SOURCES FILTERS | 337 # SOURCES FILTERS |
338 # ============================================================================= | 338 # ============================================================================= |
339 # | 339 # |
340 # These patterns filter out platform-specific files when assigning to the | 340 # These patterns filter out platform-specific files when assigning to the |
341 # sources variable. The magic variable |sources_assignment_filter| is applied | 341 # sources variable. The magic variable |sources_assignment_filter| is applied |
342 # to each assignment or appending to the sources variable and matches are | 342 # to each assignment or appending to the sources variable and matches are |
343 # automatcally removed. | 343 # automatically removed. |
344 # | 344 # |
345 # Note that the patterns are NOT regular expressions. Only "*" and "\b" (path | 345 # Note that the patterns are NOT regular expressions. Only "*" and "\b" (path |
346 # boundary = end of string or slash) are supported, and the entire string | 346 # boundary = end of string or slash) are supported, and the entire string |
347 # muct match the pattern (so you need "*.cc" to match all .cc files, for | 347 # must match the pattern (so you need "*.cc" to match all .cc files, for |
348 # example). | 348 # example). |
349 | 349 |
350 # DO NOT ADD MORE PATTERNS TO THIS LIST, see set_sources_assignment_filter call | 350 # DO NOT ADD MORE PATTERNS TO THIS LIST, see set_sources_assignment_filter call |
351 # below. | 351 # below. |
352 sources_assignment_filter = [] | 352 sources_assignment_filter = [] |
353 if (!is_posix) { | 353 if (!is_posix) { |
354 sources_assignment_filter += [ | 354 sources_assignment_filter += [ |
355 "*_posix.h", | 355 "*_posix.h", |
356 "*_posix.cc", | 356 "*_posix.cc", |
357 "*_posix_unittest.h", | 357 "*_posix_unittest.h", |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 set_defaults("component") { | 630 set_defaults("component") { |
631 if (is_component_build) { | 631 if (is_component_build) { |
632 configs = default_shared_library_configs | 632 configs = default_shared_library_configs |
633 if (is_android) { | 633 if (is_android) { |
634 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 634 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
635 } | 635 } |
636 } else { | 636 } else { |
637 configs = default_compiler_configs | 637 configs = default_compiler_configs |
638 } | 638 } |
639 } | 639 } |
OLD | NEW |