| 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/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
| 7 import("//build/config/mips.gni") | 7 import("//build/config/mips.gni") |
| 8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
| 9 | 9 |
| 10 if (is_android) { | 10 if (is_android) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 if (is_msan) { | 40 if (is_msan) { |
| 41 # Running the V8-generated code on an ARM simulator is a powerful hack that | 41 # Running the V8-generated code on an ARM simulator is a powerful hack that |
| 42 # allows the tool to see the memory accesses from JITted code. Without this | 42 # allows the tool to see the memory accesses from JITted code. Without this |
| 43 # flag, JS code causes false positive reports from MSan. | 43 # flag, JS code causes false positive reports from MSan. |
| 44 v8_target_arch = "arm64" | 44 v8_target_arch = "arm64" |
| 45 } else { | 45 } else { |
| 46 v8_target_arch = target_cpu | 46 v8_target_arch = target_cpu |
| 47 } | 47 } |
| 48 | 48 |
| 49 if (v8_use_snapshot && v8_use_external_startup_data) { |
| 50 snapshot_target = ":v8_external_snapshot" |
| 51 } else if (v8_use_snapshot) { |
| 52 snapshot_target = ":v8_snapshot" |
| 53 } else { |
| 54 assert(!v8_use_external_startup_data) |
| 55 snapshot_target = ":v8_nosnapshot" |
| 56 } |
| 57 |
| 49 ############################################################################### | 58 ############################################################################### |
| 50 # Configurations | 59 # Configurations |
| 51 # | 60 # |
| 52 config("internal_config") { | 61 config("internal_config") { |
| 53 visibility = [ ":*" ] # Only targets in this file can depend on this. | 62 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 54 | 63 |
| 55 include_dirs = [ "." ] | 64 include_dirs = [ "." ] |
| 56 | 65 |
| 57 if (is_component_build) { | 66 if (is_component_build) { |
| 58 defines = [ | 67 defines = [ |
| (...skipping 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1781 if (!is_debug) { | 1790 if (!is_debug) { |
| 1782 configs -= [ "//build/config/compiler:default_optimization" ] | 1791 configs -= [ "//build/config/compiler:default_optimization" ] |
| 1783 configs += [ "//build/config/compiler:optimize_max" ] | 1792 configs += [ "//build/config/compiler:optimize_max" ] |
| 1784 } | 1793 } |
| 1785 | 1794 |
| 1786 deps = [ | 1795 deps = [ |
| 1787 ":v8_libbase", | 1796 ":v8_libbase", |
| 1788 ] | 1797 ] |
| 1789 } | 1798 } |
| 1790 | 1799 |
| 1800 source_set("fuzzer_support") { |
| 1801 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 1802 |
| 1803 sources = [ |
| 1804 "test/fuzzer/fuzzer-support.cc", |
| 1805 "test/fuzzer/fuzzer-support.h", |
| 1806 ] |
| 1807 |
| 1808 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1809 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 1810 configs += [ |
| 1811 ":internal_config_base", |
| 1812 ":features", |
| 1813 ":toolchain", |
| 1814 ] |
| 1815 |
| 1816 deps = [ |
| 1817 ":v8_libplatform", |
| 1818 snapshot_target, |
| 1819 ] |
| 1820 } |
| 1821 |
| 1791 ############################################################################### | 1822 ############################################################################### |
| 1792 # Executables | 1823 # Executables |
| 1793 # | 1824 # |
| 1794 | 1825 |
| 1795 if (current_toolchain == snapshot_toolchain) { | 1826 if (current_toolchain == snapshot_toolchain) { |
| 1796 executable("mksnapshot") { | 1827 executable("mksnapshot") { |
| 1797 visibility = [ ":*" ] # Only targets in this file can depend on this. | 1828 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 1798 | 1829 |
| 1799 sources = [ | 1830 sources = [ |
| 1800 "src/snapshot/mksnapshot.cc", | 1831 "src/snapshot/mksnapshot.cc", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1814 ":v8_nosnapshot", | 1845 ":v8_nosnapshot", |
| 1815 "//build/config/sanitizers:deps", | 1846 "//build/config/sanitizers:deps", |
| 1816 ] | 1847 ] |
| 1817 } | 1848 } |
| 1818 } | 1849 } |
| 1819 | 1850 |
| 1820 ############################################################################### | 1851 ############################################################################### |
| 1821 # Public targets | 1852 # Public targets |
| 1822 # | 1853 # |
| 1823 | 1854 |
| 1824 if (v8_use_snapshot && v8_use_external_startup_data) { | |
| 1825 snapshot_target = ":v8_external_snapshot" | |
| 1826 } else if (v8_use_snapshot) { | |
| 1827 snapshot_target = ":v8_snapshot" | |
| 1828 } else { | |
| 1829 assert(!v8_use_external_startup_data) | |
| 1830 snapshot_target = ":v8_nosnapshot" | |
| 1831 } | |
| 1832 | |
| 1833 if (is_component_build) { | 1855 if (is_component_build) { |
| 1834 component("v8") { | 1856 component("v8") { |
| 1835 sources = [ | 1857 sources = [ |
| 1836 "src/v8dll-main.cc", | 1858 "src/v8dll-main.cc", |
| 1837 ] | 1859 ] |
| 1838 | 1860 |
| 1839 public_deps = [ | 1861 public_deps = [ |
| 1840 ":v8_base", | 1862 ":v8_base", |
| 1841 snapshot_target, | 1863 snapshot_target, |
| 1842 ] | 1864 ] |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1904 if (!is_component_build) { | 1926 if (!is_component_build) { |
| 1905 sources += [ | 1927 sources += [ |
| 1906 "$target_gen_dir/d8-js.cc", | 1928 "$target_gen_dir/d8-js.cc", |
| 1907 ] | 1929 ] |
| 1908 } | 1930 } |
| 1909 if (v8_enable_i18n_support) { | 1931 if (v8_enable_i18n_support) { |
| 1910 deps += [ "//third_party/icu" ] | 1932 deps += [ "//third_party/icu" ] |
| 1911 } | 1933 } |
| 1912 } | 1934 } |
| 1913 } | 1935 } |
| 1936 |
| 1937 source_set("parser_fuzzer") { |
| 1938 sources = [ |
| 1939 "test/fuzzer/parser.cc", |
| 1940 ] |
| 1941 |
| 1942 deps = [ |
| 1943 ":fuzzer_support", |
| 1944 ] |
| 1945 |
| 1946 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1947 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 1948 configs += [ |
| 1949 ":internal_config", |
| 1950 ":features", |
| 1951 ":toolchain", |
| 1952 ] |
| 1953 } |
| OLD | NEW |