| 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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//testing/libfuzzer/fuzzer_test.gni") | 7 import("//testing/libfuzzer/fuzzer_test.gni") |
| 8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 9 import("//third_party/WebKit/public/public_features.gni") | 9 import("//third_party/WebKit/public/public_features.gni") |
| 10 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 10 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 } | 162 } |
| 163 | 163 |
| 164 import("//build/config/pch.gni") | 164 import("//build/config/pch.gni") |
| 165 | 165 |
| 166 config("blink_platform_pch") { | 166 config("blink_platform_pch") { |
| 167 if (enable_precompiled_headers) { | 167 if (enable_precompiled_headers) { |
| 168 if (is_win) { | 168 if (is_win) { |
| 169 # This is a string rather than a file GN knows about. It has to match | 169 # This is a string rather than a file GN knows about. It has to match |
| 170 # exactly what's in the /FI flag below, and what might appear in the | 170 # exactly what's in the /FI flag below, and what might appear in the |
| 171 # source code in quotes for an #include directive. | 171 # source code in quotes for an #include directive. |
| 172 precompiled_header = | 172 precompiled_header = rebase_path("Precompile-platform.h", root_build_dir) |
| 173 rebase_path("win/Precompile-platform.h", root_build_dir) | |
| 174 | 173 |
| 175 # This is a file that GN will compile with the above header. It will be | 174 # This is a file that GN will compile with the above header. It will be |
| 176 # implicitly added to the sources (potentially multiple times, with one | 175 # implicitly added to the sources (potentially multiple times, with one |
| 177 # variant for each language used in the target). | 176 # variant for each language used in the target). |
| 178 precompiled_source = | 177 precompiled_source = |
| 179 "//third_party/WebKit/Source/platform/win/Precompile-platform.cpp" | 178 "//third_party/WebKit/Source/platform/win/Precompile-platform.cpp" |
| 180 | 179 |
| 181 # Force include the header. | 180 # Force include the header. |
| 182 cflags = [ "/FI$precompiled_header" ] | 181 cflags = [ "/FI$precompiled_header" ] |
| 182 } else if (is_mac) { |
| 183 precompiled_source = |
| 184 "//third_party/WebKit/Source/platform/Precompile-platform.h" |
| 183 } | 185 } |
| 184 } | 186 } |
| 185 } | 187 } |
| 186 | 188 |
| 187 component("platform") { | 189 component("platform") { |
| 188 visibility = [] # Allow re-assignment of list. | 190 visibility = [] # Allow re-assignment of list. |
| 189 visibility = [ | 191 visibility = [ |
| 190 "//third_party/WebKit/*", | 192 "//third_party/WebKit/*", |
| 191 "//url/mojo:url_mojom_origin_blink", | 193 "//url/mojo:url_mojom_origin_blink", |
| 192 "//url/mojo:url_mojom_gurl_blink", | 194 "//url/mojo:url_mojom_gurl_blink", |
| (...skipping 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1453 "KillRingNone.cpp", | 1455 "KillRingNone.cpp", |
| 1454 "fonts/skia/FontCacheSkia.cpp", | 1456 "fonts/skia/FontCacheSkia.cpp", |
| 1455 "scroll/ScrollAnimator.cpp", | 1457 "scroll/ScrollAnimator.cpp", |
| 1456 "scroll/ScrollAnimator.h", | 1458 "scroll/ScrollAnimator.h", |
| 1457 | 1459 |
| 1458 # Uses LocaleMac instead. | 1460 # Uses LocaleMac instead. |
| 1459 "text/LocaleICU.cpp", | 1461 "text/LocaleICU.cpp", |
| 1460 "text/LocaleICU.h", | 1462 "text/LocaleICU.h", |
| 1461 ] | 1463 ] |
| 1462 | 1464 |
| 1463 configs += [ "//third_party/WebKit/Source:mac_precompiled_headers" ] | |
| 1464 libs = [ | 1465 libs = [ |
| 1465 "AppKit.framework", | 1466 "AppKit.framework", |
| 1466 "Accelerate.framework", | 1467 "Accelerate.framework", |
| 1467 "Carbon.framework", | 1468 "Carbon.framework", |
| 1468 "Foundation.framework", | 1469 "Foundation.framework", |
| 1469 ] | 1470 ] |
| 1470 } else { | 1471 } else { |
| 1471 sources -= [ | 1472 sources -= [ |
| 1472 "geometry/cg/FloatPointCG.cpp", | 1473 "geometry/cg/FloatPointCG.cpp", |
| 1473 "geometry/cg/FloatRectCG.cpp", | 1474 "geometry/cg/FloatRectCG.cpp", |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2071 "//third_party/WebKit/Source:config", | 2072 "//third_party/WebKit/Source:config", |
| 2072 "//third_party/WebKit/Source:inside_blink", | 2073 "//third_party/WebKit/Source:inside_blink", |
| 2073 ] | 2074 ] |
| 2074 | 2075 |
| 2075 deps = [ | 2076 deps = [ |
| 2076 ":test_support", | 2077 ":test_support", |
| 2077 "//testing/gmock", | 2078 "//testing/gmock", |
| 2078 "//testing/gtest", | 2079 "//testing/gtest", |
| 2079 ] | 2080 ] |
| 2080 } | 2081 } |
| OLD | NEW |