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

Side by Side Diff: third_party/WebKit/Source/BUILD.gn

Issue 2702363002: Share precompiled header setup for blink between Windows and Mac. (Closed)
Patch Set: Added missing Cocoa imports Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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("config.gni") 5 import("config.gni")
6 if (is_clang) { 6 if (is_clang) {
7 import("//build/config/clang/clang.gni") 7 import("//build/config/clang/clang.gni")
8 } 8 }
9 9
10 visibility = [ "//third_party/WebKit/*" ] 10 visibility = [ "//third_party/WebKit/*" ]
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 precompiled_header = rebase_path("build/win/Precompile.h", root_build_dir) 62 precompiled_header = rebase_path("build/win/Precompile.h", root_build_dir)
63 63
64 # This is a file that GN will compile with the above header. It will be 64 # This is a file that GN will compile with the above header. It will be
65 # implicitly added to the sources (potentially multiple times, with one 65 # implicitly added to the sources (potentially multiple times, with one
66 # variant for each language used in the target). 66 # variant for each language used in the target).
67 precompiled_source = 67 precompiled_source =
68 "//third_party/WebKit/Source/build/win/Precompile.cpp" 68 "//third_party/WebKit/Source/build/win/Precompile.cpp"
69 69
70 # Force include the header. 70 # Force include the header.
71 cflags = [ "/FI$precompiled_header" ] 71 cflags = [ "/FI$precompiled_header" ]
72 } else if (is_mac) {
73 precompiled_source = "//third_party/WebKit/Source/build/mac/Prefix.h"
72 } 74 }
73 } 75 }
74 } 76 }
75 77
76 # config ----------------------------------------------------------------------- 78 # config -----------------------------------------------------------------------
77 79
78 config("config") { 80 config("config") {
79 include_dirs = [ 81 include_dirs = [
80 ".", 82 ".",
81 "..", 83 "..",
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 158
157 # The follow configs apply to all targets except for unit tests, which rely on 159 # The follow configs apply to all targets except for unit tests, which rely on
158 # static initializers. 160 # static initializers.
159 config("non_test_config") { 161 config("non_test_config") {
160 cflags = [] 162 cflags = []
161 163
162 if (is_clang) { 164 if (is_clang) {
163 cflags += [ "-Wglobal-constructors" ] 165 cflags += [ "-Wglobal-constructors" ]
164 } 166 }
165 } 167 }
166
167 if (is_mac) {
168 # This sets up precompiled headers for Mac.
169 config("mac_precompiled_headers") {
170 precompiled_header = rebase_path("build/mac/Prefix.h", root_build_dir)
171 precompiled_source = "//third_party/WebKit/Source/build/mac/Prefix.h"
172 }
173 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698