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/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
8 import("//build/config/nacl/config.gni") | 8 import("//build/config/nacl/config.gni") |
9 import("//build/toolchain/cc_wrapper.gni") | 9 import("//build/toolchain/cc_wrapper.gni") |
10 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
(...skipping 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1544 # | 1544 # |
1545 # You can override the symbol level on a per-target basis by removing the | 1545 # You can override the symbol level on a per-target basis by removing the |
1546 # default config and then adding the named one you want: | 1546 # default config and then adding the named one you want: |
1547 # | 1547 # |
1548 # configs -= [ "//build/config/compiler:default_symbols" ] | 1548 # configs -= [ "//build/config/compiler:default_symbols" ] |
1549 # configs += [ "//build/config/compiler:symbols" ] | 1549 # configs += [ "//build/config/compiler:symbols" ] |
1550 | 1550 |
1551 # Full symbols. | 1551 # Full symbols. |
1552 config("symbols") { | 1552 config("symbols") { |
1553 if (is_win) { | 1553 if (is_win) { |
1554 import("//build/toolchain/goma.gni") | |
1555 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. | 1554 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. |
1556 | 1555 |
1557 if (is_win_fastlink) { | 1556 if (is_win_fastlink) { |
1558 # Tell VS 2015+ to create a PDB that references debug | 1557 # Tell VS 2015+ to create a PDB that references debug |
1559 # information in .obj and .lib files instead of copying | 1558 # information in .obj and .lib files instead of copying |
1560 # it all. This flag is incompatible with /PROFILE | 1559 # it all. This flag is incompatible with /PROFILE |
1561 ldflags = [ "/DEBUG:FASTLINK" ] | 1560 ldflags = [ "/DEBUG:FASTLINK" ] |
1562 } else { | 1561 } else { |
1563 ldflags = [ "/DEBUG" ] | 1562 ldflags = [ "/DEBUG" ] |
1564 } | 1563 } |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1641 | 1640 |
1642 if (is_ios || is_mac) { | 1641 if (is_ios || is_mac) { |
1643 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1642 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1644 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1643 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1645 config("enable_arc") { | 1644 config("enable_arc") { |
1646 common_flags = [ "-fobjc-arc" ] | 1645 common_flags = [ "-fobjc-arc" ] |
1647 cflags_objc = common_flags | 1646 cflags_objc = common_flags |
1648 cflags_objcc = common_flags | 1647 cflags_objcc = common_flags |
1649 } | 1648 } |
1650 } | 1649 } |
OLD | NEW |