| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } | |
| OLD | NEW |