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

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

Issue 2702363002: Share precompiled header setup for blink between Windows and Mac. (Closed)
Patch Set: Created 3 years, 10 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 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 rebase_path("win/Precompile-platform.h", root_build_dir) 173 rebase_path("win/Precompile-platform.h", root_build_dir)
174 174
175 # This is a file that GN will compile with the above header. It will be 175 # 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 176 # implicitly added to the sources (potentially multiple times, with one
177 # variant for each language used in the target). 177 # variant for each language used in the target).
178 precompiled_source = 178 precompiled_source =
179 "//third_party/WebKit/Source/platform/win/Precompile-platform.cpp" 179 "//third_party/WebKit/Source/platform/win/Precompile-platform.cpp"
180 180
181 # Force include the header. 181 # Force include the header.
182 cflags = [ "/FI$precompiled_header" ] 182 cflags = [ "/FI$precompiled_header" ]
183 } else if (is_mac) {
184 precompiled_header =
185 rebase_path("mac/Precompile-platform.h", root_build_dir)
186 precompiled_source =
187 "//third_party/WebKit/Source/platform/mac/Precompile-platform.h"
183 } 188 }
184 } 189 }
185 } 190 }
186 191
187 component("platform") { 192 component("platform") {
188 visibility = [] # Allow re-assignment of list. 193 visibility = [] # Allow re-assignment of list.
189 visibility = [ 194 visibility = [
190 "//third_party/WebKit/*", 195 "//third_party/WebKit/*",
191 "//url/mojo:url_mojom_origin_blink", 196 "//url/mojo:url_mojom_origin_blink",
192 "//url/mojo:url_mojom_gurl_blink", 197 "//url/mojo:url_mojom_gurl_blink",
(...skipping 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1453 "KillRingNone.cpp", 1458 "KillRingNone.cpp",
1454 "fonts/skia/FontCacheSkia.cpp", 1459 "fonts/skia/FontCacheSkia.cpp",
1455 "scroll/ScrollAnimator.cpp", 1460 "scroll/ScrollAnimator.cpp",
1456 "scroll/ScrollAnimator.h", 1461 "scroll/ScrollAnimator.h",
1457 1462
1458 # Uses LocaleMac instead. 1463 # Uses LocaleMac instead.
1459 "text/LocaleICU.cpp", 1464 "text/LocaleICU.cpp",
1460 "text/LocaleICU.h", 1465 "text/LocaleICU.h",
1461 ] 1466 ]
1462 1467
1463 configs += [ "//third_party/WebKit/Source:mac_precompiled_headers" ]
1464 libs = [ 1468 libs = [
1465 "AppKit.framework", 1469 "AppKit.framework",
1466 "Accelerate.framework", 1470 "Accelerate.framework",
1467 "Carbon.framework", 1471 "Carbon.framework",
1468 "Foundation.framework", 1472 "Foundation.framework",
1469 ] 1473 ]
1470 } else { 1474 } else {
1471 sources -= [ 1475 sources -= [
1472 "geometry/cg/FloatPointCG.cpp", 1476 "geometry/cg/FloatPointCG.cpp",
1473 "geometry/cg/FloatRectCG.cpp", 1477 "geometry/cg/FloatRectCG.cpp",
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
2071 "//third_party/WebKit/Source:config", 2075 "//third_party/WebKit/Source:config",
2072 "//third_party/WebKit/Source:inside_blink", 2076 "//third_party/WebKit/Source:inside_blink",
2073 ] 2077 ]
2074 2078
2075 deps = [ 2079 deps = [
2076 ":test_support", 2080 ":test_support",
2077 "//testing/gmock", 2081 "//testing/gmock",
2078 "//testing/gtest", 2082 "//testing/gtest",
2079 ] 2083 ]
2080 } 2084 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698