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

Side by Side Diff: BUILD.gn

Issue 1983593002: [builtins] Move EncodeURI from runtime to builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address review comments Created 4 years, 7 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
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 } 313 }
314 } 314 }
315 } 315 }
316 316
317 ############################################################################### 317 ###############################################################################
318 # Templates 318 # Templates
319 # 319 #
320 320
321 template("v8_source_set") { 321 template("v8_source_set") {
322 source_set(target_name) { 322 source_set(target_name) {
323 forward_variables_from(invoker, "*", ["configs"]) 323 forward_variables_from(invoker, "*", [ "configs" ])
324 configs += invoker.configs 324 configs += invoker.configs
325 configs -= [ "//build/config/compiler:chromium_code" ] 325 configs -= [ "//build/config/compiler:chromium_code" ]
326 configs += [ "//build/config/compiler:no_chromium_code" ] 326 configs += [ "//build/config/compiler:no_chromium_code" ]
327 configs += [ 327 configs += [
328 ":features", 328 ":features",
329 ":toolchain", 329 ":toolchain",
330 ] 330 ]
331 331
332 if (!is_debug || v8_optimized_debug) { 332 if (!is_debug || v8_optimized_debug) {
333 configs -= [ "//build/config/compiler:default_optimization" ] 333 configs -= [ "//build/config/compiler:default_optimization" ]
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 ] 660 ]
661 661
662 sources = [ 662 sources = [
663 "$target_gen_dir/experimental-extras-libraries.cc", 663 "$target_gen_dir/experimental-extras-libraries.cc",
664 "$target_gen_dir/experimental-libraries.cc", 664 "$target_gen_dir/experimental-libraries.cc",
665 "$target_gen_dir/extras-libraries.cc", 665 "$target_gen_dir/extras-libraries.cc",
666 "$target_gen_dir/libraries.cc", 666 "$target_gen_dir/libraries.cc",
667 "src/snapshot/snapshot-empty.cc", 667 "src/snapshot/snapshot-empty.cc",
668 ] 668 ]
669 669
670 configs = [ 670 configs = [ ":internal_config" ]
671 ":internal_config",
672 ]
673 } 671 }
674 672
675 v8_source_set("v8_snapshot") { 673 v8_source_set("v8_snapshot") {
676 # Only targets in this file and the top-level visibility target can 674 # Only targets in this file and the top-level visibility target can
677 # depend on this. 675 # depend on this.
678 visibility = [ 676 visibility = [
679 ":*", 677 ":*",
680 "//:gn_visibility", 678 "//:gn_visibility",
681 ] 679 ]
682 680
(...skipping 11 matching lines...) Expand all
694 ] 692 ]
695 693
696 sources = [ 694 sources = [
697 "$target_gen_dir/experimental-extras-libraries.cc", 695 "$target_gen_dir/experimental-extras-libraries.cc",
698 "$target_gen_dir/experimental-libraries.cc", 696 "$target_gen_dir/experimental-libraries.cc",
699 "$target_gen_dir/extras-libraries.cc", 697 "$target_gen_dir/extras-libraries.cc",
700 "$target_gen_dir/libraries.cc", 698 "$target_gen_dir/libraries.cc",
701 "$target_gen_dir/snapshot.cc", 699 "$target_gen_dir/snapshot.cc",
702 ] 700 ]
703 701
704 configs = [ 702 configs = [ ":internal_config" ]
705 ":internal_config",
706 ]
707 } 703 }
708 704
709 if (v8_use_external_startup_data) { 705 if (v8_use_external_startup_data) {
710 v8_source_set("v8_external_snapshot") { 706 v8_source_set("v8_external_snapshot") {
711 visibility = [ ":*" ] # Only targets in this file can depend on this. 707 visibility = [ ":*" ] # Only targets in this file can depend on this.
712 708
713 deps = [ 709 deps = [
714 ":js2c", 710 ":js2c",
715 ":js2c_experimental", 711 ":js2c_experimental",
716 ":js2c_experimental_extras", 712 ":js2c_experimental_extras",
717 ":js2c_extras", 713 ":js2c_extras",
718 ":v8_base", 714 ":v8_base",
719 ] 715 ]
720 public_deps = [ 716 public_deps = [
721 ":natives_blob", 717 ":natives_blob",
722 ":run_mksnapshot", 718 ":run_mksnapshot",
723 ] 719 ]
724 720
725 sources = [ 721 sources = [
726 "src/snapshot/natives-external.cc", 722 "src/snapshot/natives-external.cc",
727 "src/snapshot/snapshot-external.cc", 723 "src/snapshot/snapshot-external.cc",
728 ] 724 ]
729 725
730 configs = [ 726 configs = [ ":internal_config" ]
731 ":internal_config",
732 ]
733 } 727 }
734 } 728 }
735 729
736 v8_source_set("v8_base") { 730 v8_source_set("v8_base") {
737 visibility = [ ":*" ] # Only targets in this file can depend on this. 731 visibility = [ ":*" ] # Only targets in this file can depend on this.
738 732
739 sources = [ 733 sources = [
740 # TODO(fmeawad): This needs to be updated to support standalone V8 builds. 734 # TODO(fmeawad): This needs to be updated to support standalone V8 builds.
741 "../base/trace_event/common/trace_event_common.h", 735 "../base/trace_event/common/trace_event_common.h",
742 "include/v8-debug.h", 736 "include/v8-debug.h",
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1467 "src/types.h", 1461 "src/types.h",
1468 "src/typing-asm.cc", 1462 "src/typing-asm.cc",
1469 "src/typing-asm.h", 1463 "src/typing-asm.h",
1470 "src/unicode-cache-inl.h", 1464 "src/unicode-cache-inl.h",
1471 "src/unicode-cache.h", 1465 "src/unicode-cache.h",
1472 "src/unicode-decoder.cc", 1466 "src/unicode-decoder.cc",
1473 "src/unicode-decoder.h", 1467 "src/unicode-decoder.h",
1474 "src/unicode-inl.h", 1468 "src/unicode-inl.h",
1475 "src/unicode.cc", 1469 "src/unicode.cc",
1476 "src/unicode.h", 1470 "src/unicode.h",
1471 "src/uri.cc",
1472 "src/uri.h",
1477 "src/utils-inl.h", 1473 "src/utils-inl.h",
1478 "src/utils.cc", 1474 "src/utils.cc",
1479 "src/utils.h", 1475 "src/utils.h",
1480 "src/v8.cc", 1476 "src/v8.cc",
1481 "src/v8.h", 1477 "src/v8.h",
1482 "src/v8memory.h", 1478 "src/v8memory.h",
1483 "src/v8threads.cc", 1479 "src/v8threads.cc",
1484 "src/v8threads.h", 1480 "src/v8threads.h",
1485 "src/version.cc", 1481 "src/version.cc",
1486 "src/version.h", 1482 "src/version.h",
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
1813 "src/s390/frames-s390.cc", 1809 "src/s390/frames-s390.cc",
1814 "src/s390/frames-s390.h", 1810 "src/s390/frames-s390.h",
1815 "src/s390/interface-descriptors-s390.cc", 1811 "src/s390/interface-descriptors-s390.cc",
1816 "src/s390/macro-assembler-s390.cc", 1812 "src/s390/macro-assembler-s390.cc",
1817 "src/s390/macro-assembler-s390.h", 1813 "src/s390/macro-assembler-s390.h",
1818 "src/s390/simulator-s390.cc", 1814 "src/s390/simulator-s390.cc",
1819 "src/s390/simulator-s390.h", 1815 "src/s390/simulator-s390.h",
1820 ] 1816 ]
1821 } 1817 }
1822 1818
1823 configs = [ 1819 configs = [ ":internal_config" ]
1824 ":internal_config",
1825 ]
1826 1820
1827 defines = [] 1821 defines = []
1828 deps = [ 1822 deps = [
1829 ":v8_libbase", 1823 ":v8_libbase",
1830 ] 1824 ]
1831 1825
1832 if (is_win) { 1826 if (is_win) {
1833 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1827 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1834 cflags = [ "/wd4267" ] 1828 cflags = [ "/wd4267" ]
1835 } 1829 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 "src/base/safe_conversions_impl.h", 1902 "src/base/safe_conversions_impl.h",
1909 "src/base/safe_math.h", 1903 "src/base/safe_math.h",
1910 "src/base/safe_math_impl.h", 1904 "src/base/safe_math_impl.h",
1911 "src/base/smart-pointers.h", 1905 "src/base/smart-pointers.h",
1912 "src/base/sys-info.cc", 1906 "src/base/sys-info.cc",
1913 "src/base/sys-info.h", 1907 "src/base/sys-info.h",
1914 "src/base/utils/random-number-generator.cc", 1908 "src/base/utils/random-number-generator.cc",
1915 "src/base/utils/random-number-generator.h", 1909 "src/base/utils/random-number-generator.h",
1916 ] 1910 ]
1917 1911
1918 configs = [ 1912 configs = [ ":internal_config_base" ]
1919 ":internal_config_base",
1920 ]
1921 1913
1922 defines = [] 1914 defines = []
1923 1915
1924 if (is_posix) { 1916 if (is_posix) {
1925 sources += [ "src/base/platform/platform-posix.cc" ] 1917 sources += [ "src/base/platform/platform-posix.cc" ]
1926 } 1918 }
1927 1919
1928 if (is_linux) { 1920 if (is_linux) {
1929 sources += [ "src/base/platform/platform-linux.cc" ] 1921 sources += [ "src/base/platform/platform-linux.cc" ]
1930 1922
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1970 sources = [ 1962 sources = [
1971 "include/libplatform/libplatform.h", 1963 "include/libplatform/libplatform.h",
1972 "src/libplatform/default-platform.cc", 1964 "src/libplatform/default-platform.cc",
1973 "src/libplatform/default-platform.h", 1965 "src/libplatform/default-platform.h",
1974 "src/libplatform/task-queue.cc", 1966 "src/libplatform/task-queue.cc",
1975 "src/libplatform/task-queue.h", 1967 "src/libplatform/task-queue.h",
1976 "src/libplatform/worker-thread.cc", 1968 "src/libplatform/worker-thread.cc",
1977 "src/libplatform/worker-thread.h", 1969 "src/libplatform/worker-thread.h",
1978 ] 1970 ]
1979 1971
1980 configs = [ 1972 configs = [ ":internal_config_base" ]
1981 ":internal_config_base",
1982 ]
1983 1973
1984 public_configs = [ 1974 public_configs = [ ":libplatform_config" ]
1985 ":libplatform_config"
1986 ]
1987 1975
1988 deps = [ 1976 deps = [
1989 ":v8_libbase", 1977 ":v8_libbase",
1990 ] 1978 ]
1991 } 1979 }
1992 1980
1993 v8_source_set("fuzzer_support") { 1981 v8_source_set("fuzzer_support") {
1994 visibility = [ ":*" ] # Only targets in this file can depend on this. 1982 visibility = [ ":*" ] # Only targets in this file can depend on this.
1995 1983
1996 sources = [ 1984 sources = [
1997 "test/fuzzer/fuzzer-support.cc", 1985 "test/fuzzer/fuzzer-support.cc",
1998 "test/fuzzer/fuzzer-support.h", 1986 "test/fuzzer/fuzzer-support.h",
1999 ] 1987 ]
2000 1988
2001 configs = [ 1989 configs = [ ":internal_config_base" ]
2002 ":internal_config_base",
2003 ]
2004 1990
2005 deps = [ 1991 deps = [
2006 snapshot_target, 1992 snapshot_target,
2007 ] 1993 ]
2008 1994
2009 public_deps = [ 1995 public_deps = [
2010 ":v8_libplatform", 1996 ":v8_libplatform",
2011 ] 1997 ]
2012 } 1998 }
2013 1999
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
2149 2135
2150 v8_source_set("json_fuzzer") { 2136 v8_source_set("json_fuzzer") {
2151 sources = [ 2137 sources = [
2152 "test/fuzzer/json.cc", 2138 "test/fuzzer/json.cc",
2153 ] 2139 ]
2154 2140
2155 deps = [ 2141 deps = [
2156 ":fuzzer_support", 2142 ":fuzzer_support",
2157 ] 2143 ]
2158 2144
2159 configs = [ 2145 configs = [ ":internal_config" ]
2160 ":internal_config",
2161 ]
2162 } 2146 }
2163 2147
2164 v8_source_set("parser_fuzzer") { 2148 v8_source_set("parser_fuzzer") {
2165 sources = [ 2149 sources = [
2166 "test/fuzzer/parser.cc", 2150 "test/fuzzer/parser.cc",
2167 ] 2151 ]
2168 2152
2169 deps = [ 2153 deps = [
2170 ":fuzzer_support", 2154 ":fuzzer_support",
2171 ] 2155 ]
2172 2156
2173 configs = [ 2157 configs = [ ":internal_config" ]
2174 ":internal_config",
2175 ]
2176 } 2158 }
2177 2159
2178 v8_source_set("regexp_fuzzer") { 2160 v8_source_set("regexp_fuzzer") {
2179 sources = [ 2161 sources = [
2180 "test/fuzzer/regexp.cc", 2162 "test/fuzzer/regexp.cc",
2181 ] 2163 ]
2182 2164
2183 deps = [ 2165 deps = [
2184 ":fuzzer_support", 2166 ":fuzzer_support",
2185 ] 2167 ]
2186 2168
2187 configs = [ 2169 configs = [ ":internal_config" ]
2188 ":internal_config",
2189 ]
2190 } 2170 }
2191 2171
2192 v8_source_set("wasm_fuzzer") { 2172 v8_source_set("wasm_fuzzer") {
2193 sources = [ 2173 sources = [
2194 "test/fuzzer/wasm.cc", 2174 "test/fuzzer/wasm.cc",
2195 ] 2175 ]
2196 2176
2197 deps = [ 2177 deps = [
2198 ":fuzzer_support", 2178 ":fuzzer_support",
2199 ] 2179 ]
2200 2180
2201 configs = [ 2181 configs = [ ":internal_config" ]
2202 ":internal_config",
2203 ]
2204 } 2182 }
2205 2183
2206 v8_source_set("wasm_asmjs_fuzzer") { 2184 v8_source_set("wasm_asmjs_fuzzer") {
2207 sources = [ 2185 sources = [
2208 "test/fuzzer/wasm-asmjs.cc", 2186 "test/fuzzer/wasm-asmjs.cc",
2209 ] 2187 ]
2210 2188
2211 deps = [ 2189 deps = [
2212 ":fuzzer_support", 2190 ":fuzzer_support",
2213 ] 2191 ]
2214 2192
2215 configs = [ 2193 configs = [ ":internal_config" ]
2216 ":internal_config",
2217 ]
2218 } 2194 }
OLDNEW
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698