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/allocator.gni") | 5 import("//build/config/allocator.gni") |
6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 import("//build/module_args/v8.gni") | 9 import("//build/module_args/v8.gni") |
10 | 10 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 } else { | 128 } else { |
129 defines += [ "NVALGRIND" ] | 129 defines += [ "NVALGRIND" ] |
130 if (!is_nacl) { | 130 if (!is_nacl) { |
131 # NaCl always enables dynamic annotations. Currently this value is set to | 131 # NaCl always enables dynamic annotations. Currently this value is set to |
132 # 1 for all .nexes. | 132 # 1 for all .nexes. |
133 defines += [ "DYNAMIC_ANNOTATIONS_ENABLED=0" ] | 133 defines += [ "DYNAMIC_ANNOTATIONS_ENABLED=0" ] |
134 } | 134 } |
135 } | 135 } |
136 } | 136 } |
137 | 137 |
| 138 # TODO(vtl): Chromium supports precompiled headers (on a per-target basis), but |
| 139 # we don't. Stuff from //base depends on this. Add stuff here if we ever want |
| 140 # precompiled headers. |
| 141 config("precompiled_headers") { |
| 142 } |
| 143 |
138 # Default libraries ------------------------------------------------------------ | 144 # Default libraries ------------------------------------------------------------ |
139 | 145 |
140 # This config defines the default libraries applied to all targets. | 146 # This config defines the default libraries applied to all targets. |
141 config("default_libs") { | 147 config("default_libs") { |
142 if (is_android) { | 148 if (is_android) { |
143 # Android uses -nostdlib so we need to add even libc here. | 149 # Android uses -nostdlib so we need to add even libc here. |
144 libs = [ | 150 libs = [ |
145 # TODO(brettw) write a version of this, hopefully we can express this | 151 # TODO(brettw) write a version of this, hopefully we can express this |
146 # without forking out to GCC just to get the library name. The android | 152 # without forking out to GCC just to get the library name. The android |
147 # toolchain directory should probably be extracted into a .gni file that | 153 # toolchain directory should probably be extracted into a .gni file that |
(...skipping 19 matching lines...) Expand all Loading... |
167 "CoreFoundation.framework", | 173 "CoreFoundation.framework", |
168 "CoreGraphics.framework", | 174 "CoreGraphics.framework", |
169 "CoreText.framework", | 175 "CoreText.framework", |
170 "Foundation.framework", | 176 "Foundation.framework", |
171 "UIKit.framework", | 177 "UIKit.framework", |
172 ] | 178 ] |
173 } else if (is_linux) { | 179 } else if (is_linux) { |
174 libs = [ "dl" ] | 180 libs = [ "dl" ] |
175 } | 181 } |
176 } | 182 } |
OLD | NEW |