| 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 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 import("//build/config/chromecast_build.gni") | 7 import("//build/config/chromecast_build.gni") |
| 8 import("//build/config/compiler/compiler.gni") | 8 import("//build/config/compiler/compiler.gni") |
| 9 import("//build/config/nacl/config.gni") | 9 import("//build/config/nacl/config.gni") |
| 10 import("//build/config/sanitizers/sanitizers.gni") | 10 import("//build/config/sanitizers/sanitizers.gni") |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 | 494 |
| 495 # Assign any flags set for the C compiler to asmflags so that they are sent | 495 # Assign any flags set for the C compiler to asmflags so that they are sent |
| 496 # to the assembler. The Windows assembler takes different types of flags | 496 # to the assembler. The Windows assembler takes different types of flags |
| 497 # so only do so for posix platforms. | 497 # so only do so for posix platforms. |
| 498 if (is_posix) { | 498 if (is_posix) { |
| 499 asmflags += cflags | 499 asmflags += cflags |
| 500 asmflags += cflags_c | 500 asmflags += cflags_c |
| 501 } | 501 } |
| 502 } | 502 } |
| 503 | 503 |
| 504 # This is separate from :compiler (and not even a sub-config there) |
| 505 # so that some targets can remove it from the list with: |
| 506 # configs -= [ "//build/config/compiler:pthread" ] |
| 507 config("pthread") { |
| 508 if (is_linux) { |
| 509 cflags = [ "-pthread" ] |
| 510 ldflags = [ "-pthread" ] |
| 511 } |
| 512 } |
| 513 |
| 504 # This provides the basic options to select the target CPU and ABI. | 514 # This provides the basic options to select the target CPU and ABI. |
| 505 # It is factored out of "compiler" so that special cases can use this | 515 # It is factored out of "compiler" so that special cases can use this |
| 506 # without using everything that "compiler" brings in. Options that | 516 # without using everything that "compiler" brings in. Options that |
| 507 # tweak code generation for a particular CPU do not belong here! | 517 # tweak code generation for a particular CPU do not belong here! |
| 508 # See "compiler_codegen", below. | 518 # See "compiler_codegen", below. |
| 509 config("compiler_cpu_abi") { | 519 config("compiler_cpu_abi") { |
| 510 cflags = [] | 520 cflags = [] |
| 511 ldflags = [] | 521 ldflags = [] |
| 512 | 522 |
| 513 if (is_posix && !(is_mac || is_ios)) { | 523 if (is_posix && !(is_mac || is_ios)) { |
| (...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1634 | 1644 |
| 1635 if (is_ios || is_mac) { | 1645 if (is_ios || is_mac) { |
| 1636 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1646 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1637 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1647 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1638 config("enable_arc") { | 1648 config("enable_arc") { |
| 1639 common_flags = [ "-fobjc-arc" ] | 1649 common_flags = [ "-fobjc-arc" ] |
| 1640 cflags_objc = common_flags | 1650 cflags_objc = common_flags |
| 1641 cflags_objcc = common_flags | 1651 cflags_objcc = common_flags |
| 1642 } | 1652 } |
| 1643 } | 1653 } |
| OLD | NEW |