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

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

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again Created 3 years, 5 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/jumbo.gni")
6 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
7 import("//testing/libfuzzer/fuzzer_test.gni") 8 import("//testing/libfuzzer/fuzzer_test.gni")
8 import("//testing/test.gni") 9 import("//testing/test.gni")
9 import("//third_party/WebKit/public/public_features.gni") 10 import("//third_party/WebKit/public/public_features.gni")
10 import("//third_party/WebKit/Source/build/scripts/scripts.gni") 11 import("//third_party/WebKit/Source/build/scripts/scripts.gni")
11 import("//third_party/WebKit/Source/config.gni") 12 import("//third_party/WebKit/Source/config.gni")
12 import("//third_party/WebKit/Source/platform/platform_generated.gni") 13 import("//third_party/WebKit/Source/platform/platform_generated.gni")
13 14
14 # Most targets in this file are private actions so use that as the default. 15 # Most targets in this file are private actions so use that as the default.
15 visibility = [ ":*" ] 16 visibility = [ ":*" ]
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 208
208 # Force include the header. 209 # Force include the header.
209 cflags = [ "/FI$precompiled_header" ] 210 cflags = [ "/FI$precompiled_header" ]
210 } else if (is_mac) { 211 } else if (is_mac) {
211 precompiled_source = 212 precompiled_source =
212 "//third_party/WebKit/Source/platform/Precompile-platform.h" 213 "//third_party/WebKit/Source/platform/Precompile-platform.h"
213 } 214 }
214 } 215 }
215 } 216 }
216 217
217 component("platform") { 218 jumbo_component("platform") {
219 target_type = "component"
218 visibility = [] # Allow re-assignment of list. 220 visibility = [] # Allow re-assignment of list.
219 visibility = [ 221 visibility = [
220 "//components/pdf/common:interfaces_blink", 222 "//components/pdf/common:interfaces_blink",
221 "//third_party/WebKit/*", 223 "//third_party/WebKit/*",
222 "//url/mojo:url_mojom_origin_blink", 224 "//url/mojo:url_mojom_origin_blink",
223 "//url/mojo:url_mojom_gurl_blink", 225 "//url/mojo:url_mojom_gurl_blink",
224 ] 226 ]
225 output_name = "blink_platform" 227 output_name = "blink_platform"
226 228
227 sources = [ 229 sources = [
(...skipping 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 ":blink_platform_pch", 1550 ":blink_platform_pch",
1549 "//third_party/WebKit/Source:config", 1551 "//third_party/WebKit/Source:config",
1550 "//third_party/WebKit/Source:non_test_config", 1552 "//third_party/WebKit/Source:non_test_config",
1551 ] 1553 ]
1552 1554
1553 defines = [ 1555 defines = [
1554 "BLINK_PLATFORM_IMPLEMENTATION=1", 1556 "BLINK_PLATFORM_IMPLEMENTATION=1",
1555 "INSIDE_BLINK", 1557 "INSIDE_BLINK",
1556 ] 1558 ]
1557 1559
1560 jumbo_excluded_sources = [
1561 # Collides with fonts/opentype/FontSetting (AddToHash^2)
1562 # Needed??
1563 "fonts/FontDescription.cpp",
1564
1565 # Too much using WTF::Unicode
1566 "text/Character.cpp",
1567 "text/CharacterEmoji.cpp",
1568 "text/TextBoundaries.cpp",
1569 "text/UnicodeUtilities.cpp",
1570
1571 # Too much using icu
1572 "text/LocaleICU.cpp",
1573
1574 # Duplicate code wth JSONParser.cpp
1575 "json/JSONValues.cpp",
1576
1577 # operator<<(...FloatPoint3D)
1578 "graphics/filters/PointLightSource.cpp",
1579
1580 # SizeAsJSONArray
1581 "graphics/compositing/PaintArtifactCompositor.cpp",
1582 ]
1583
1584 if (is_mac || is_win) {
1585 jumbo_excluded_sources -= [ "text/LocaleICU.cpp" ]
1586 }
1587
1558 include_dirs = [ 1588 include_dirs = [
1559 #"$angle_path/include", 1589 #"$angle_path/include",
1560 "$root_gen_dir/blink", 1590 "$root_gen_dir/blink",
1561 ] 1591 ]
1562 1592
1563 public_deps = [ 1593 public_deps = [
1564 ":make_platform_generated", 1594 ":make_platform_generated",
1565 "//base", 1595 "//base",
1566 "//cc", 1596 "//cc",
1567 "//cc/animation", 1597 "//cc/animation",
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1700 include_dirs += [ "//third_party/openmax_dl" ] 1730 include_dirs += [ "//third_party/openmax_dl" ]
1701 deps += [ "//third_party/openmax_dl/dl" ] 1731 deps += [ "//third_party/openmax_dl/dl" ]
1702 } 1732 }
1703 1733
1704 if (remove_webcore_debug_symbols) { 1734 if (remove_webcore_debug_symbols) {
1705 configs -= [ "//build/config/compiler:default_symbols" ] 1735 configs -= [ "//build/config/compiler:default_symbols" ]
1706 configs += remove_webcore_symbols_config 1736 configs += remove_webcore_symbols_config
1707 } 1737 }
1708 } 1738 }
1709 1739
1710 static_library("test_support") { 1740 jumbo_target("test_support") {
1741 target_type = "static_library"
1711 visibility += [ "//third_party/WebKit/*" ] 1742 visibility += [ "//third_party/WebKit/*" ]
1712 testonly = true 1743 testonly = true
1713 1744
1714 sources = [ 1745 sources = [
1715 "graphics/gpu/DrawingBufferTestHelpers.h", 1746 "graphics/gpu/DrawingBufferTestHelpers.h",
1716 "network/mime/MockMimeRegistry.h", 1747 "network/mime/MockMimeRegistry.h",
1717 "scheduler/base/task_queue_manager_delegate_for_test.cc", 1748 "scheduler/base/task_queue_manager_delegate_for_test.cc",
1718 "scheduler/base/task_queue_manager_delegate_for_test.h", 1749 "scheduler/base/task_queue_manager_delegate_for_test.h",
1719 "scheduler/base/test_task_time_observer.h", 1750 "scheduler/base/test_task_time_observer.h",
1720 "scheduler/base/test_time_source.cc", 1751 "scheduler/base/test_time_source.cc",
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
1795 "//base/test:test_support", 1826 "//base/test:test_support",
1796 "//mojo/edk/system", 1827 "//mojo/edk/system",
1797 "//third_party/WebKit/Source/platform/loader:test_support", 1828 "//third_party/WebKit/Source/platform/loader:test_support",
1798 ] 1829 ]
1799 1830
1800 if (is_win) { 1831 if (is_win) {
1801 cflags = [ "/wd4267" ] # Truncation from size_t to int. 1832 cflags = [ "/wd4267" ] # Truncation from size_t to int.
1802 } 1833 }
1803 } 1834 }
1804 1835
1805 test("blink_platform_unittests") { 1836 jumbo_target("blink_platform_unittests") {
1837 target_type="test"
1806 visibility = [] # Allow re-assignment of list. 1838 visibility = [] # Allow re-assignment of list.
1807 visibility = [ "*" ] 1839 visibility = [ "*" ]
1808 1840
1809 sources = [ 1841 sources = [
1810 "DecimalTest.cpp", 1842 "DecimalTest.cpp",
1811 "DragImageTest.cpp", 1843 "DragImageTest.cpp",
1812 "HistogramTest.cpp", 1844 "HistogramTest.cpp",
1813 "LayoutLocaleTest.cpp", 1845 "LayoutLocaleTest.cpp",
1814 "LayoutUnitTest.cpp", 1846 "LayoutUnitTest.cpp",
1815 "LifecycleContextTest.cpp", 1847 "LifecycleContextTest.cpp",
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
2002 if (!is_mac) { 2034 if (!is_mac) {
2003 sources += [ "scroll/ScrollAnimatorTest.cpp" ] 2035 sources += [ "scroll/ScrollAnimatorTest.cpp" ]
2004 } 2036 }
2005 2037
2006 if (use_default_render_theme) { 2038 if (use_default_render_theme) {
2007 sources += [ "scroll/ScrollbarThemeAuraTest.cpp" ] 2039 sources += [ "scroll/ScrollbarThemeAuraTest.cpp" ]
2008 } 2040 }
2009 2041
2010 sources += [ "testing/RunAllTests.cpp" ] 2042 sources += [ "testing/RunAllTests.cpp" ]
2011 2043
2044 jumbo_excluded_sources = [
2045 # Same CreateDecoder as GIFImageDecoderTest.cpp
2046 "image-decoders/bmp/BMPImageDecoderTest.cpp",
2047 "image-decoders/ico/ICOImageDecoderTest.cpp",
2048 "image-decoders/png/PNGImageDecoderTest.cpp",
2049 "image-decoders/webp/WEBPImageDecoderTest.cpp",
2050 "image-decoders/jpeg/JPEGImageDecoderTest.cpp",
2051
2052 # Too many TestClass1 and TestClass2
2053 "PODFreeListArenaTest.cpp",
2054
2055 # Too many TestDisplayItem
2056 "graphics/paint/PaintControllerTest.cpp",
2057
2058 # Too many InsertionAndDeletionTest
2059 "PODIntervalTreeTest.cpp",
2060
2061 # Too many ExpectedRun
2062 "fonts/OrientationIteratorTest.cpp",
2063
2064 # Too many IsValid
2065 "network/ParsedContentTypeTest.cpp",
2066
2067 # Too many TestRun and ExpectedRun
2068 "fonts/SmallCapsIteratorTest.cpp",
2069 "fonts/SymbolsIteratorTest.cpp",
2070
2071 # Something with base::Bind types.
2072 "scheduler/child/idle_helper_unittest.cc",
2073 "scheduler/renderer/auto_advancing_virtual_time_domain_unittest.cc",
2074 "scheduler/renderer/task_queue_throttler_unittest.cc",
2075 "scheduler/renderer/renderer_scheduler_impl_unittest.cc",
2076
2077 # Too many DECLARE_RUNSVECTOR
2078 "fonts/shaping/RunSegmenterTest.cpp",
2079
2080 # Too many To16Bit
2081 "fonts/shaping/ShapingLineBreakerTest.cpp",
2082
2083 # Too many EXPECT_RECT_EQ
2084 "graphics/paint/GeometryMapperTest.cpp",
2085
2086 # Too many MockTaskObserver
2087 "scheduler/child/scheduler_helper_unittest.cc",
2088
2089 # Too many AppendToVectorTestTask
2090 "scheduler/child/worker_scheduler_impl_unittest.cc",
2091 "scheduler/child/worker_global_scope_scheduler_unittest.cc",
2092
2093 # Too many MockObserver
2094 "scheduler/renderer/render_widget_signals_unittest.cc",
2095
2096 # Too many MakeRepeatingTask and RunRepeatingTask
2097 "scheduler/renderer/web_view_scheduler_impl_unittest.cc",
2098
2099 # Too many MockTask
2100 "scheduler/renderer/webthread_impl_for_renderer_scheduler_unittest.cc",
2101
2102 ]
2103 if (!is_mac) {
2104 # Too many MockScrollableArea
2105 jumbo_excluded_sources += [ "scroll/ScrollAnimatorTest.cpp" ]
2106 }
2107
2012 configs += [ 2108 configs += [
2013 ":blink_platform_pch", 2109 ":blink_platform_pch",
2014 "//third_party/WebKit/Source/platform/wtf:wtf_config", 2110 "//third_party/WebKit/Source/platform/wtf:wtf_config",
2015 "//third_party/WebKit/Source:config", 2111 "//third_party/WebKit/Source:config",
2016 ] 2112 ]
2017 2113
2018 deps = [ 2114 deps = [
2019 ":platform", 2115 ":platform",
2020 ":test_support", 2116 ":test_support",
2021 "//base", 2117 "//base",
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
2100 data = [ 2196 data = [
2101 "testing/data/", 2197 "testing/data/",
2102 2198
2103 # Required by some image decoder tests. 2199 # Required by some image decoder tests.
2104 "image-decoders/testing/", 2200 "image-decoders/testing/",
2105 "../../LayoutTests/images/resources/", 2201 "../../LayoutTests/images/resources/",
2106 ] 2202 ]
2107 } 2203 }
2108 2204
2109 if (current_cpu == "arm") { 2205 if (current_cpu == "arm") {
2110 source_set("blink_arm_neon") { 2206 jumbo_target("blink_arm_neon") {
2207 target_type = "source_set"
2111 sources = blink_platform_neon_files 2208 sources = blink_platform_neon_files
2112 # The *NEON.cpp files fail to compile when -mthumb is passed. Force 2209 # The *NEON.cpp files fail to compile when -mthumb is passed. Force
2113 # them to build in ARM mode. 2210 # them to build in ARM mode.
2114 # See https://bugs.webkit.org/show_bug.cgi?id=62916. 2211 # See https://bugs.webkit.org/show_bug.cgi?id=62916.
2115 # TODO(GYP) 2212 # TODO(GYP)
2116 #'cflags': ['-marm'], 2213 #'cflags': ['-marm'],
2117 # 'conditions': [ 2214 # 'conditions': [
2118 # ['OS=="android"', { 2215 # ['OS=="android"', {
2119 # 'cflags!': ['-mthumb'], 2216 # 'cflags!': ['-mthumb'],
2120 # }], 2217 # }],
2121 # ], 2218 # ],
2122 } 2219 }
2123 } 2220 }
2124 2221
2125 if (current_cpu == "mipsel" || current_cpu == "mips64el") { 2222 if (current_cpu == "mipsel" || current_cpu == "mips64el") {
2126 source_set("blink_mips_msa") { 2223 jumbo_target("blink_mips_msa") {
2224 target_type = "source_set"
2127 sources = blink_platform_msa_files 2225 sources = blink_platform_msa_files
2128 } 2226 }
2129 } 2227 }
2130 2228
2131 if (current_cpu == "x86" || current_cpu == "x64") { 2229 if (current_cpu == "x86" || current_cpu == "x64") {
2132 source_set("blink_x86_sse") { 2230 jumbo_target("blink_x86_sse") {
2231 target_type = "source_set"
2133 sources = blink_platform_sse_files 2232 sources = blink_platform_sse_files
2134 } 2233 }
2135 } 2234 }
2136 2235
2137 # This source set is used for fuzzers that need an environment similar to unit 2236 # This source set is used for fuzzers that need an environment similar to unit
2138 # tests. 2237 # tests.
2139 source_set("blink_fuzzer_test_support") { 2238 jumbo_target("blink_fuzzer_test_support") {
2239 target_type = "source_set"
2140 testonly = true 2240 testonly = true
2141 visibility = [] # Allow re-assignment of list. 2241 visibility = [] # Allow re-assignment of list.
2142 visibility = [ "*" ] 2242 visibility = [ "*" ]
2143 sources = [ 2243 sources = [
2144 "testing/BlinkFuzzerTestSupport.cpp", 2244 "testing/BlinkFuzzerTestSupport.cpp",
2145 "testing/BlinkFuzzerTestSupport.h", 2245 "testing/BlinkFuzzerTestSupport.h",
2146 ] 2246 ]
2147 deps = [ 2247 deps = [
2148 ":platform", 2248 ":platform",
2149 ":test_support", 2249 ":test_support",
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
2286 "//third_party/WebKit/Source:config", 2386 "//third_party/WebKit/Source:config",
2287 "//third_party/WebKit/Source:inside_blink", 2387 "//third_party/WebKit/Source:inside_blink",
2288 ] 2388 ]
2289 2389
2290 deps = [ 2390 deps = [
2291 ":test_support", 2391 ":test_support",
2292 "//testing/gmock", 2392 "//testing/gmock",
2293 "//testing/gtest", 2393 "//testing/gtest",
2294 ] 2394 ]
2295 } 2395 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698