Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: build/config/BUILD.gn

Issue 1207903002: Windows precompiled header support in GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/crypto.gni") 7 import("//build/config/crypto.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
10 import("//build/module_args/v8.gni") 10 import("//build/module_args/v8.gni")
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 "CoreFoundation.framework", 389 "CoreFoundation.framework",
390 "CoreGraphics.framework", 390 "CoreGraphics.framework",
391 "CoreText.framework", 391 "CoreText.framework",
392 "Foundation.framework", 392 "Foundation.framework",
393 "UIKit.framework", 393 "UIKit.framework",
394 ] 394 ]
395 } else if (is_linux) { 395 } else if (is_linux) {
396 libs = [ "dl" ] 396 libs = [ "dl" ]
397 } 397 }
398 } 398 }
399
400 config("precompiled_headers") {
401 if (is_win) {
402 #if (false) {
403 # This is a string rather than a file GN knows about. It has to match
404 # exactly what's in the /FI flag below, and what might appear in the source
405 # code in quotes for an #include directive.
406 precompiled_header = "build/precompile.h"
407
408 # This is a file that GN will compile with the above header. It will be
409 # implicitly added to the sources (potentially multiple times, with one
410 # variant for each language used in the target).
411 precompiled_source = "//build/precompile.cc"
412
413 # Force include the header.
414 cflags = [ "/FI$precompiled_header" ]
415 }
416 }
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | tools/gn/BUILD.gn » ('j') | tools/gn/config_values_generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698