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/sysroot.gni") | 5 import("//build/config/sysroot.gni") |
6 import("//build/config/ios/ios_sdk.gni") | 6 if (is_ios) { |
| 7 import("//build/config/ios/ios_sdk.gni") |
| 8 } |
7 import("//build/config/mac/mac_sdk.gni") | 9 import("//build/config/mac/mac_sdk.gni") |
8 import("//build/config/mac/symbols.gni") | 10 import("//build/config/mac/symbols.gni") |
9 | 11 |
10 # This is included by reference in the //build/config/compiler config that | 12 # This is included by reference in the //build/config/compiler config that |
11 # is applied to all targets. It is here to separate out the logic. | 13 # is applied to all targets. It is here to separate out the logic. |
12 # | 14 # |
13 # This is applied to BOTH desktop Mac and iOS targets. | 15 # This is applied to BOTH desktop Mac and iOS targets. |
14 config("compiler") { | 16 config("compiler") { |
15 # These flags are shared between the C compiler and linker. | 17 # These flags are shared between the C compiler and linker. |
16 common_mac_flags = [] | 18 common_mac_flags = [] |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 # after running "lipo" too. | 125 # after running "lipo" too. |
124 _enable_stripping = false | 126 _enable_stripping = false |
125 } else { | 127 } else { |
126 _enable_stripping = enable_stripping | 128 _enable_stripping = enable_stripping |
127 } | 129 } |
128 | 130 |
129 if (_enable_stripping) { | 131 if (_enable_stripping) { |
130 ldflags = [ "-Wcrl,strip,-x,-S" ] | 132 ldflags = [ "-Wcrl,strip,-x,-S" ] |
131 } | 133 } |
132 } | 134 } |
OLD | NEW |