| 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/config/jumbo.gni") |
| 7 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
| 8 import("//testing/libfuzzer/fuzzer_test.gni") | 9 import("//testing/libfuzzer/fuzzer_test.gni") |
| 9 import("//testing/test.gni") | 10 import("//testing/test.gni") |
| 10 import("//third_party/WebKit/public/public_features.gni") | 11 import("//third_party/WebKit/public/public_features.gni") |
| 11 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 12 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
| 12 import("//third_party/WebKit/Source/config.gni") | 13 import("//third_party/WebKit/Source/config.gni") |
| 13 import("//third_party/WebKit/Source/platform/platform_generated.gni") | 14 import("//third_party/WebKit/Source/platform/platform_generated.gni") |
| 14 | 15 |
| 15 # Most targets in this file are private actions so use that as the default. | 16 # Most targets in this file are private actions so use that as the default. |
| 16 visibility = [ ":*" ] | 17 visibility = [ ":*" ] |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 240 |
| 240 # Force include the header. | 241 # Force include the header. |
| 241 cflags = [ "/FI$precompiled_header" ] | 242 cflags = [ "/FI$precompiled_header" ] |
| 242 } else if (is_mac) { | 243 } else if (is_mac) { |
| 243 precompiled_source = | 244 precompiled_source = |
| 244 "//third_party/WebKit/Source/platform/Precompile-platform.h" | 245 "//third_party/WebKit/Source/platform/Precompile-platform.h" |
| 245 } | 246 } |
| 246 } | 247 } |
| 247 } | 248 } |
| 248 | 249 |
| 249 component("platform") { | 250 jumbo_component("platform") { |
| 250 visibility = [] # Allow re-assignment of list. | 251 visibility = [] # Allow re-assignment of list. |
| 251 visibility = [ | 252 visibility = [ |
| 252 "//components/pdf/common:interfaces_blink", | 253 "//components/pdf/common:interfaces_blink", |
| 253 "//third_party/WebKit/*", | 254 "//third_party/WebKit/*", |
| 254 "//url/mojo:url_mojom_origin_blink", | 255 "//url/mojo:url_mojom_origin_blink", |
| 255 "//url/mojo:url_mojom_gurl_blink", | 256 "//url/mojo:url_mojom_gurl_blink", |
| 256 ] | 257 ] |
| 257 output_name = "blink_platform" | 258 output_name = "blink_platform" |
| 258 | 259 |
| 259 sources = [ | 260 sources = [ |
| (...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1467 sources -= blink_platform_sse_files | 1468 sources -= blink_platform_sse_files |
| 1468 | 1469 |
| 1469 # Add in the generated files. | 1470 # Add in the generated files. |
| 1470 sources += get_target_outputs(":character_data") + | 1471 sources += get_target_outputs(":character_data") + |
| 1471 get_target_outputs(":color_data") + | 1472 get_target_outputs(":color_data") + |
| 1472 get_target_outputs(":font_family_names") + | 1473 get_target_outputs(":font_family_names") + |
| 1473 get_target_outputs(":http_names") + | 1474 get_target_outputs(":http_names") + |
| 1474 get_target_outputs(":instrumentation_probes") + | 1475 get_target_outputs(":instrumentation_probes") + |
| 1475 get_target_outputs(":runtime_enabled_features") | 1476 get_target_outputs(":runtime_enabled_features") |
| 1476 | 1477 |
| 1478 if (is_win && is_component_build) { |
| 1479 # https://crbug.com/764823 - Mixing certain //url/ headers and |
| 1480 # using url::RawCanonOutputT<char> in one translation unit breaks |
| 1481 # the Windows component build. These files use RawCanonOutput. |
| 1482 jumbo_excluded_sources = [ |
| 1483 "LinkHash.cpp", |
| 1484 "weborigin/KURL.cpp", |
| 1485 "weborigin/OriginAccessEntry.cpp", |
| 1486 "weborigin/SecurityOrigin.cpp", |
| 1487 ] |
| 1488 } |
| 1477 configs += [ | 1489 configs += [ |
| 1478 ":blink_platform_pch", | 1490 ":blink_platform_pch", |
| 1479 ":blink_platform_config", | 1491 ":blink_platform_config", |
| 1480 ":blink_platform_implementation", | 1492 ":blink_platform_implementation", |
| 1481 "//third_party/WebKit/Source:non_test_config", | 1493 "//third_party/WebKit/Source:non_test_config", |
| 1482 ] | 1494 ] |
| 1483 | 1495 |
| 1484 include_dirs = [] | 1496 include_dirs = [] |
| 1485 | 1497 |
| 1486 public_deps = [ | 1498 public_deps = [ |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1634 include_dirs += [ "//third_party/openmax_dl" ] | 1646 include_dirs += [ "//third_party/openmax_dl" ] |
| 1635 deps += [ "//third_party/openmax_dl/dl" ] | 1647 deps += [ "//third_party/openmax_dl/dl" ] |
| 1636 } | 1648 } |
| 1637 | 1649 |
| 1638 if (remove_webcore_debug_symbols) { | 1650 if (remove_webcore_debug_symbols) { |
| 1639 configs -= [ "//build/config/compiler:default_symbols" ] | 1651 configs -= [ "//build/config/compiler:default_symbols" ] |
| 1640 configs += remove_webcore_symbols_config | 1652 configs += remove_webcore_symbols_config |
| 1641 } | 1653 } |
| 1642 } | 1654 } |
| 1643 | 1655 |
| 1644 static_library("test_support") { | 1656 jumbo_static_library("test_support") { |
| 1645 visibility += [ "//third_party/WebKit/*" ] | 1657 visibility += [ "//third_party/WebKit/*" ] |
| 1646 testonly = true | 1658 testonly = true |
| 1647 | 1659 |
| 1648 sources = [ | 1660 sources = [ |
| 1649 "graphics/gpu/DrawingBufferTestHelpers.h", | 1661 "graphics/gpu/DrawingBufferTestHelpers.h", |
| 1650 "network/mime/MockMimeRegistry.h", | 1662 "network/mime/MockMimeRegistry.h", |
| 1651 "scroll/ScrollbarTestSuite.h", | 1663 "scroll/ScrollbarTestSuite.h", |
| 1652 "testing/CompositorTest.cpp", | 1664 "testing/CompositorTest.cpp", |
| 1653 "testing/CompositorTest.h", | 1665 "testing/CompositorTest.h", |
| 1654 "testing/EmptyWebMediaPlayer.cpp", | 1666 "testing/EmptyWebMediaPlayer.cpp", |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1718 "//mojo/edk/system", | 1730 "//mojo/edk/system", |
| 1719 "//third_party/WebKit/Source/platform/loader:test_support", | 1731 "//third_party/WebKit/Source/platform/loader:test_support", |
| 1720 "//third_party/WebKit/Source/platform/scheduler:test_support", | 1732 "//third_party/WebKit/Source/platform/scheduler:test_support", |
| 1721 ] | 1733 ] |
| 1722 | 1734 |
| 1723 if (is_win) { | 1735 if (is_win) { |
| 1724 cflags = [ "/wd4267" ] # Truncation from size_t to int. | 1736 cflags = [ "/wd4267" ] # Truncation from size_t to int. |
| 1725 } | 1737 } |
| 1726 } | 1738 } |
| 1727 | 1739 |
| 1728 test("blink_platform_unittests") { | 1740 jumbo_test("blink_platform_unittests") { |
| 1729 visibility = [] # Allow re-assignment of list. | 1741 visibility = [] # Allow re-assignment of list. |
| 1730 visibility = [ "*" ] | 1742 visibility = [ "*" ] |
| 1731 | 1743 |
| 1732 sources = [ | 1744 sources = [ |
| 1733 "DecimalTest.cpp", | 1745 "DecimalTest.cpp", |
| 1734 "DragImageTest.cpp", | 1746 "DragImageTest.cpp", |
| 1735 "HistogramTest.cpp", | 1747 "HistogramTest.cpp", |
| 1736 "LayoutLocaleTest.cpp", | 1748 "LayoutLocaleTest.cpp", |
| 1737 "LayoutUnitTest.cpp", | 1749 "LayoutUnitTest.cpp", |
| 1738 "LifecycleContextTest.cpp", | 1750 "LifecycleContextTest.cpp", |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1904 if (!is_mac) { | 1916 if (!is_mac) { |
| 1905 sources += [ "scroll/ScrollAnimatorTest.cpp" ] | 1917 sources += [ "scroll/ScrollAnimatorTest.cpp" ] |
| 1906 } | 1918 } |
| 1907 | 1919 |
| 1908 if (use_default_render_theme) { | 1920 if (use_default_render_theme) { |
| 1909 sources += [ "scroll/ScrollbarThemeAuraTest.cpp" ] | 1921 sources += [ "scroll/ScrollbarThemeAuraTest.cpp" ] |
| 1910 } | 1922 } |
| 1911 | 1923 |
| 1912 sources += [ "testing/RunAllTests.cpp" ] | 1924 sources += [ "testing/RunAllTests.cpp" ] |
| 1913 | 1925 |
| 1926 jumbo_excluded_sources = [ |
| 1927 # Too many TestClass1 and TestClass2 |
| 1928 "PODFreeListArenaTest.cpp", |
| 1929 |
| 1930 # Too many TestDisplayItem |
| 1931 "graphics/paint/PaintControllerTest.cpp", |
| 1932 |
| 1933 # Too many InsertionAndDeletionTest |
| 1934 "PODIntervalTreeTest.cpp", |
| 1935 |
| 1936 # Too many EXPECT_RECT_EQ |
| 1937 "graphics/paint/GeometryMapperTest.cpp", |
| 1938 ] |
| 1939 if (!is_mac) { |
| 1940 # Too many MockScrollableArea |
| 1941 jumbo_excluded_sources += [ "scroll/ScrollAnimatorTest.cpp" ] |
| 1942 } |
| 1943 |
| 1914 configs += [ | 1944 configs += [ |
| 1915 ":blink_platform_pch", | 1945 ":blink_platform_pch", |
| 1916 "//third_party/WebKit/Source/platform/wtf:wtf_config", | 1946 "//third_party/WebKit/Source/platform/wtf:wtf_config", |
| 1917 "//third_party/WebKit/Source:config", | 1947 "//third_party/WebKit/Source:config", |
| 1918 ] | 1948 ] |
| 1919 | 1949 |
| 1920 deps = [ | 1950 deps = [ |
| 1921 ":platform", | 1951 ":platform", |
| 1922 ":test_support", | 1952 ":test_support", |
| 1923 "//base", | 1953 "//base", |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2006 data = [ | 2036 data = [ |
| 2007 "testing/data/", | 2037 "testing/data/", |
| 2008 | 2038 |
| 2009 # Required by some image decoder tests. | 2039 # Required by some image decoder tests. |
| 2010 "image-decoders/testing/", | 2040 "image-decoders/testing/", |
| 2011 "../../LayoutTests/images/resources/", | 2041 "../../LayoutTests/images/resources/", |
| 2012 ] | 2042 ] |
| 2013 } | 2043 } |
| 2014 | 2044 |
| 2015 if (current_cpu == "arm") { | 2045 if (current_cpu == "arm") { |
| 2016 source_set("blink_arm_neon") { | 2046 jumbo_source_set("blink_arm_neon") { |
| 2017 sources = blink_platform_neon_files | 2047 sources = blink_platform_neon_files |
| 2018 # The *NEON.cpp files fail to compile when -mthumb is passed. Force | 2048 # The *NEON.cpp files fail to compile when -mthumb is passed. Force |
| 2019 # them to build in ARM mode. | 2049 # them to build in ARM mode. |
| 2020 # See https://bugs.webkit.org/show_bug.cgi?id=62916. | 2050 # See https://bugs.webkit.org/show_bug.cgi?id=62916. |
| 2021 # TODO(GYP) | 2051 # TODO(GYP) |
| 2022 #'cflags': ['-marm'], | 2052 #'cflags': ['-marm'], |
| 2023 # 'conditions': [ | 2053 # 'conditions': [ |
| 2024 # ['OS=="android"', { | 2054 # ['OS=="android"', { |
| 2025 # 'cflags!': ['-mthumb'], | 2055 # 'cflags!': ['-mthumb'], |
| 2026 # }], | 2056 # }], |
| 2027 # ], | 2057 # ], |
| 2028 } | 2058 } |
| 2029 } | 2059 } |
| 2030 | 2060 |
| 2031 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 2061 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
| 2032 source_set("blink_mips_msa") { | 2062 jumbo_source_set("blink_mips_msa") { |
| 2033 sources = blink_platform_msa_files | 2063 sources = blink_platform_msa_files |
| 2034 } | 2064 } |
| 2035 } | 2065 } |
| 2036 | 2066 |
| 2037 if (current_cpu == "x86" || current_cpu == "x64") { | 2067 if (current_cpu == "x86" || current_cpu == "x64") { |
| 2038 source_set("blink_x86_sse") { | 2068 jumbo_source_set("blink_x86_sse") { |
| 2039 sources = blink_platform_sse_files | 2069 sources = blink_platform_sse_files |
| 2040 } | 2070 } |
| 2041 } | 2071 } |
| 2042 | 2072 |
| 2043 # This source set is used for fuzzers that need an environment similar to unit | 2073 # This source set is used for fuzzers that need an environment similar to unit |
| 2044 # tests. | 2074 # tests. |
| 2045 source_set("blink_fuzzer_test_support") { | 2075 jumbo_source_set("blink_fuzzer_test_support") { |
| 2046 testonly = true | 2076 testonly = true |
| 2047 visibility = [] # Allow re-assignment of list. | 2077 visibility = [] # Allow re-assignment of list. |
| 2048 visibility = [ "*" ] | 2078 visibility = [ "*" ] |
| 2049 sources = [ | 2079 sources = [ |
| 2050 "testing/BlinkFuzzerTestSupport.cpp", | 2080 "testing/BlinkFuzzerTestSupport.cpp", |
| 2051 "testing/BlinkFuzzerTestSupport.h", | 2081 "testing/BlinkFuzzerTestSupport.h", |
| 2052 ] | 2082 ] |
| 2053 deps = [ | 2083 deps = [ |
| 2054 ":platform", | 2084 ":platform", |
| 2055 ":test_support", | 2085 ":test_support", |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2196 "//third_party/WebKit/Source:config", | 2226 "//third_party/WebKit/Source:config", |
| 2197 "//third_party/WebKit/Source:inside_blink", | 2227 "//third_party/WebKit/Source:inside_blink", |
| 2198 ] | 2228 ] |
| 2199 | 2229 |
| 2200 deps = [ | 2230 deps = [ |
| 2201 ":test_support", | 2231 ":test_support", |
| 2202 "//testing/gmock", | 2232 "//testing/gmock", |
| 2203 "//testing/gtest", | 2233 "//testing/gtest", |
| 2204 ] | 2234 ] |
| 2205 } | 2235 } |
| OLD | NEW |