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

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

Issue 1397143003: [GN]: Enable PCH for WebKit on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/*" ]
11 11
12 # features --------------------------------------------------------------------- 12 # features ---------------------------------------------------------------------
13 13
14 config("features") { 14 config("features") {
15 defines = feature_defines_list 15 defines = feature_defines_list
16 } 16 }
17 17
18 # inside_blink ----------------------------------------------------------------- 18 # inside_blink -----------------------------------------------------------------
19 19
20 config("inside_blink") { 20 config("inside_blink") {
21 defines = [ 21 defines = [
22 "BLINK_IMPLEMENTATION=1", 22 "BLINK_IMPLEMENTATION=1",
23 "INSIDE_BLINK", 23 "INSIDE_BLINK",
24 ] 24 ]
25 } 25 }
26 26
27 # config ----------------------------------------------------------------------- 27 # config -----------------------------------------------------------------------
28 28
29 config("config") { 29 config("config") {
30 include_dirs = [ ".", ".." ] 30 include_dirs = [
31 ".",
32 "..",
33 ]
31 34
32 cflags = [] 35 cflags = []
33 defines = [] 36 defines = []
34 37
35 if (is_win) { 38 if (is_win) {
36 cflags += [ 39 cflags += [
37 "/wd4305", # Truncation from 'type1' to 'type2'. 40 "/wd4305", # Truncation from 'type1' to 'type2'.
38 "/wd4324", # Struct padded due to declspec(align). 41 "/wd4324", # Struct padded due to declspec(align).
39 "/wd4714", # Function marked forceinline not inlined. 42 "/wd4714", # Function marked forceinline not inlined.
40 "/wd4800", # Value forced to bool. 43 "/wd4800", # Value forced to bool.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 79
77 # The follow configs apply to all targets except for unit tests, which rely on 80 # The follow configs apply to all targets except for unit tests, which rely on
78 # static initializers. 81 # static initializers.
79 config("non_test_config") { 82 config("non_test_config") {
80 cflags = [] 83 cflags = []
81 84
82 if (is_clang) { 85 if (is_clang) {
83 cflags += [ "-Wglobal-constructors" ] 86 cflags += [ "-Wglobal-constructors" ]
84 } 87 }
85 } 88 }
89
90 if (is_mac) {
91 # This sets up precompiled headers for Mac.
92 config("mac_precompiled_headers") {
93 precompiled_header = rebase_path("build/mac/Prefix.h", root_build_dir)
94 precompiled_source = "//third_party/WebKit/Source/build/mac/Prefix.h"
95 }
96 }
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