| 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 # TODO(jochen): These will need to be user-settable to support standalone V8 | 5 # TODO(jochen): These will need to be user-settable to support standalone V8 |
| 6 # builds. | 6 # builds. |
| 7 v8_compress_startup_data = "off" | 7 v8_compress_startup_data = "off" |
| 8 v8_deprecation_warnings = false | 8 v8_deprecation_warnings = false |
| 9 v8_enable_disassembler = false | 9 v8_enable_disassembler = false |
| 10 v8_enable_gdbjit = false | 10 v8_enable_gdbjit = false |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 "src/contexts.cc", | 481 "src/contexts.cc", |
| 482 "src/contexts.h", | 482 "src/contexts.h", |
| 483 "src/conversions-inl.h", | 483 "src/conversions-inl.h", |
| 484 "src/conversions.cc", | 484 "src/conversions.cc", |
| 485 "src/conversions.h", | 485 "src/conversions.h", |
| 486 "src/counters.cc", | 486 "src/counters.cc", |
| 487 "src/counters.h", | 487 "src/counters.h", |
| 488 "src/cpu-profiler-inl.h", | 488 "src/cpu-profiler-inl.h", |
| 489 "src/cpu-profiler.cc", | 489 "src/cpu-profiler.cc", |
| 490 "src/cpu-profiler.h", | 490 "src/cpu-profiler.h", |
| 491 "src/cpu.cc", | |
| 492 "src/cpu.h", | |
| 493 "src/data-flow.cc", | 491 "src/data-flow.cc", |
| 494 "src/data-flow.h", | 492 "src/data-flow.h", |
| 495 "src/date.cc", | 493 "src/date.cc", |
| 496 "src/date.h", | 494 "src/date.h", |
| 497 "src/dateparser-inl.h", | 495 "src/dateparser-inl.h", |
| 498 "src/dateparser.cc", | 496 "src/dateparser.cc", |
| 499 "src/dateparser.h", | 497 "src/dateparser.h", |
| 500 "src/debug.cc", | 498 "src/debug.cc", |
| 501 "src/debug.h", | 499 "src/debug.h", |
| 502 "src/deoptimizer.cc", | 500 "src/deoptimizer.cc", |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 "src/objects-visiting.cc", | 671 "src/objects-visiting.cc", |
| 674 "src/objects-visiting.h", | 672 "src/objects-visiting.h", |
| 675 "src/objects.cc", | 673 "src/objects.cc", |
| 676 "src/objects.h", | 674 "src/objects.h", |
| 677 "src/optimizing-compiler-thread.cc", | 675 "src/optimizing-compiler-thread.cc", |
| 678 "src/optimizing-compiler-thread.h", | 676 "src/optimizing-compiler-thread.h", |
| 679 "src/ostreams.cc", | 677 "src/ostreams.cc", |
| 680 "src/ostreams.h", | 678 "src/ostreams.h", |
| 681 "src/parser.cc", | 679 "src/parser.cc", |
| 682 "src/parser.h", | 680 "src/parser.h", |
| 683 "src/platform/elapsed-timer.h", | |
| 684 "src/platform/time.cc", | |
| 685 "src/platform/time.h", | |
| 686 "src/platform.h", | |
| 687 "src/platform/condition-variable.cc", | |
| 688 "src/platform/condition-variable.h", | |
| 689 "src/platform/mutex.cc", | |
| 690 "src/platform/mutex.h", | |
| 691 "src/platform/semaphore.cc", | |
| 692 "src/platform/semaphore.h", | |
| 693 "src/preparse-data-format.h", | 681 "src/preparse-data-format.h", |
| 694 "src/preparse-data.cc", | 682 "src/preparse-data.cc", |
| 695 "src/preparse-data.h", | 683 "src/preparse-data.h", |
| 696 "src/preparser.cc", | 684 "src/preparser.cc", |
| 697 "src/preparser.h", | 685 "src/preparser.h", |
| 698 "src/prettyprinter.cc", | 686 "src/prettyprinter.cc", |
| 699 "src/prettyprinter.h", | 687 "src/prettyprinter.h", |
| 700 "src/profile-generator-inl.h", | 688 "src/profile-generator-inl.h", |
| 701 "src/profile-generator.cc", | 689 "src/profile-generator.cc", |
| 702 "src/profile-generator.h", | 690 "src/profile-generator.h", |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 "src/unbound-queue-inl.h", | 756 "src/unbound-queue-inl.h", |
| 769 "src/unbound-queue.h", | 757 "src/unbound-queue.h", |
| 770 "src/unicode-inl.h", | 758 "src/unicode-inl.h", |
| 771 "src/unicode.cc", | 759 "src/unicode.cc", |
| 772 "src/unicode.h", | 760 "src/unicode.h", |
| 773 "src/unique.h", | 761 "src/unique.h", |
| 774 "src/uri.h", | 762 "src/uri.h", |
| 775 "src/utils-inl.h", | 763 "src/utils-inl.h", |
| 776 "src/utils.cc", | 764 "src/utils.cc", |
| 777 "src/utils.h", | 765 "src/utils.h", |
| 778 "src/utils/random-number-generator.cc", | |
| 779 "src/utils/random-number-generator.h", | |
| 780 "src/v8.cc", | 766 "src/v8.cc", |
| 781 "src/v8.h", | 767 "src/v8.h", |
| 782 "src/v8checks.h", | |
| 783 "src/v8memory.h", | 768 "src/v8memory.h", |
| 784 "src/v8threads.cc", | 769 "src/v8threads.cc", |
| 785 "src/v8threads.h", | 770 "src/v8threads.h", |
| 786 "src/variables.cc", | 771 "src/variables.cc", |
| 787 "src/variables.h", | 772 "src/variables.h", |
| 788 "src/version.cc", | 773 "src/version.cc", |
| 789 "src/version.h", | 774 "src/version.h", |
| 790 "src/vm-state-inl.h", | 775 "src/vm-state-inl.h", |
| 791 "src/vm-state.h", | 776 "src/vm-state.h", |
| 792 "src/zone-inl.h", | 777 "src/zone-inl.h", |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 966 ] | 951 ] |
| 967 } | 952 } |
| 968 | 953 |
| 969 configs -= [ "//build/config/compiler:chromium_code" ] | 954 configs -= [ "//build/config/compiler:chromium_code" ] |
| 970 configs += [ "//build/config/compiler:no_chromium_code" ] | 955 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 971 configs += [ ":internal_config", ":features", ":toolchain" ] | 956 configs += [ ":internal_config", ":features", ":toolchain" ] |
| 972 | 957 |
| 973 defines = [] | 958 defines = [] |
| 974 deps = [ ":v8_libbase" ] | 959 deps = [ ":v8_libbase" ] |
| 975 | 960 |
| 976 if (is_posix) { | |
| 977 sources += [ | |
| 978 "src/platform-posix.cc" | |
| 979 ] | |
| 980 } | |
| 981 | |
| 982 if (is_linux) { | 961 if (is_linux) { |
| 983 sources += [ | |
| 984 "src/platform-linux.cc" | |
| 985 ] | |
| 986 | |
| 987 libs = [ "rt" ] | |
| 988 if (v8_compress_startup_data == "bz2") { | 962 if (v8_compress_startup_data == "bz2") { |
| 989 libs += [ "bz2" ] | 963 libs += [ "bz2" ] |
| 990 } | 964 } |
| 991 } else if (is_android) { | |
| 992 defines += [ "CAN_USE_VFP_INSTRUCTIONS" ] | |
| 993 | |
| 994 if (build_os == "mac") { | |
| 995 if (current_toolchain == host_toolchain) { | |
| 996 sources += [ "src/platform-macos.cc" ] | |
| 997 } else { | |
| 998 sources += [ "src/platform-linux.cc" ] | |
| 999 } | |
| 1000 } else { | |
| 1001 sources += [ "src/platform-linux.cc" ] | |
| 1002 if (current_toolchain == host_toolchain) { | |
| 1003 defines += [ "V8_LIBRT_NOT_AVAILABLE" ] | |
| 1004 } | |
| 1005 } | |
| 1006 } else if (is_mac) { | |
| 1007 sources += [ "src/platform-macos.cc" ] | |
| 1008 } else if (is_win) { | |
| 1009 # TODO(jochen): Add support for cygwin. | |
| 1010 sources += [ | |
| 1011 "src/platform-win32.cc", | |
| 1012 "src/win32-math.cc", | |
| 1013 "src/win32-math.h", | |
| 1014 ] | |
| 1015 | |
| 1016 defines += [ "_CRT_RAND_S" ] # for rand_s() | |
| 1017 | |
| 1018 libs = [ "winmm.lib", "ws2_32.lib" ] | |
| 1019 } | 965 } |
| 1020 | 966 |
| 1021 # TODO(jochen): Add support for qnx, freebsd, openbsd, netbsd, and solaris. | |
| 1022 | |
| 1023 | |
| 1024 if (v8_enable_i18n_support) { | 967 if (v8_enable_i18n_support) { |
| 1025 deps += [ "//third_party/icu" ] | 968 deps += [ "//third_party/icu" ] |
| 1026 if (is_win) { | 969 if (is_win) { |
| 1027 deps += [ "//third_party/icu:icudata" ] | 970 deps += [ "//third_party/icu:icudata" ] |
| 1028 } | 971 } |
| 1029 # TODO(jochen): Add support for icu_use_data_file_flag | 972 # TODO(jochen): Add support for icu_use_data_file_flag |
| 1030 defines += [ "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE" ] | 973 defines += [ "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE" ] |
| 1031 } else { | 974 } else { |
| 1032 sources -= [ | 975 sources -= [ |
| 1033 "src/i18n.cc", | 976 "src/i18n.cc", |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1049 "src/base/atomicops_internals_arm64_gcc.h", | 992 "src/base/atomicops_internals_arm64_gcc.h", |
| 1050 "src/base/atomicops_internals_arm_gcc.h", | 993 "src/base/atomicops_internals_arm_gcc.h", |
| 1051 "src/base/atomicops_internals_atomicword_compat.h", | 994 "src/base/atomicops_internals_atomicword_compat.h", |
| 1052 "src/base/atomicops_internals_mac.h", | 995 "src/base/atomicops_internals_mac.h", |
| 1053 "src/base/atomicops_internals_mips_gcc.h", | 996 "src/base/atomicops_internals_mips_gcc.h", |
| 1054 "src/base/atomicops_internals_tsan.h", | 997 "src/base/atomicops_internals_tsan.h", |
| 1055 "src/base/atomicops_internals_x86_gcc.cc", | 998 "src/base/atomicops_internals_x86_gcc.cc", |
| 1056 "src/base/atomicops_internals_x86_gcc.h", | 999 "src/base/atomicops_internals_x86_gcc.h", |
| 1057 "src/base/atomicops_internals_x86_msvc.h", | 1000 "src/base/atomicops_internals_x86_msvc.h", |
| 1058 "src/base/build_config.h", | 1001 "src/base/build_config.h", |
| 1002 "src/base/cpu.cc", |
| 1003 "src/base/cpu.h", |
| 1059 "src/base/lazy-instance.h", | 1004 "src/base/lazy-instance.h", |
| 1005 "src/base/logging.cc", |
| 1006 "src/base/logging.h", |
| 1060 "src/base/macros.h", | 1007 "src/base/macros.h", |
| 1061 "src/base/once.cc", | 1008 "src/base/once.cc", |
| 1062 "src/base/once.h", | 1009 "src/base/once.h", |
| 1010 "src/base/platform/elapsed-timer.h", |
| 1011 "src/base/platform/time.cc", |
| 1012 "src/base/platform/time.h", |
| 1013 "src/base/platform/condition-variable.cc", |
| 1014 "src/base/platform/condition-variable.h", |
| 1015 "src/base/platform/mutex.cc", |
| 1016 "src/base/platform/mutex.h", |
| 1017 "src/base/platform/platform.h", |
| 1018 "src/base/platform/semaphore.cc", |
| 1019 "src/base/platform/semaphore.h", |
| 1063 "src/base/safe_conversions.h", | 1020 "src/base/safe_conversions.h", |
| 1064 "src/base/safe_conversions_impl.h", | 1021 "src/base/safe_conversions_impl.h", |
| 1065 "src/base/safe_math.h", | 1022 "src/base/safe_math.h", |
| 1066 "src/base/safe_math_impl.h", | 1023 "src/base/safe_math_impl.h", |
| 1067 "src/base/win32-headers.h", | 1024 "src/base/utils/random-number-generator.cc", |
| 1025 "src/base/utils/random-number-generator.h", |
| 1068 ] | 1026 ] |
| 1069 | 1027 |
| 1070 configs -= [ "//build/config/compiler:chromium_code" ] | 1028 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1071 configs += [ "//build/config/compiler:no_chromium_code" ] | 1029 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 1072 configs += [ ":internal_config", ":features", ":toolchain" ] | 1030 configs += [ ":internal_config", ":features", ":toolchain" ] |
| 1031 |
| 1032 defines = [] |
| 1033 |
| 1034 if (is_posix) { |
| 1035 sources += [ |
| 1036 "src/base/platform/platform-posix.cc" |
| 1037 ] |
| 1038 } |
| 1039 |
| 1040 if (is_linux) { |
| 1041 sources += [ |
| 1042 "src/base/platform/platform-linux.cc" |
| 1043 ] |
| 1044 |
| 1045 libs = [ "rt" ] |
| 1046 } else if (is_android) { |
| 1047 defines += [ "CAN_USE_VFP_INSTRUCTIONS" ] |
| 1048 |
| 1049 if (build_os == "mac") { |
| 1050 if (current_toolchain == host_toolchain) { |
| 1051 sources += [ "src/base/platform/platform-macos.cc" ] |
| 1052 } else { |
| 1053 sources += [ "src/base/platform/platform-linux.cc" ] |
| 1054 } |
| 1055 } else { |
| 1056 sources += [ "src/base/platform/platform-linux.cc" ] |
| 1057 if (current_toolchain == host_toolchain) { |
| 1058 defines += [ "V8_LIBRT_NOT_AVAILABLE" ] |
| 1059 } |
| 1060 } |
| 1061 } else if (is_mac) { |
| 1062 sources += [ "src/base/platform/platform-macos.cc" ] |
| 1063 } else if (is_win) { |
| 1064 # TODO(jochen): Add support for cygwin. |
| 1065 sources += [ |
| 1066 "src/base/platform/platform-win32.cc", |
| 1067 "src/base/platform/win32-headers.h", |
| 1068 "src/base/platform/win32-math.cc", |
| 1069 "src/base/platform/win32-math.h", |
| 1070 ] |
| 1071 |
| 1072 defines += [ "_CRT_RAND_S" ] # for rand_s() |
| 1073 |
| 1074 libs = [ "winmm.lib", "ws2_32.lib" ] |
| 1075 } |
| 1076 |
| 1077 # TODO(jochen): Add support for qnx, freebsd, openbsd, netbsd, and solaris. |
| 1073 } | 1078 } |
| 1074 | 1079 |
| 1075 ############################################################################### | 1080 ############################################################################### |
| 1076 # Executables | 1081 # Executables |
| 1077 # | 1082 # |
| 1078 | 1083 |
| 1079 if (current_toolchain == host_toolchain) { | 1084 if (current_toolchain == host_toolchain) { |
| 1080 executable("mksnapshot") { | 1085 executable("mksnapshot") { |
| 1081 visibility = ":*" # Only targets in this file can depend on this. | 1086 visibility = ":*" # Only targets in this file can depend on this. |
| 1082 | 1087 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1155 deps = [ | 1160 deps = [ |
| 1156 ":v8_base", | 1161 ":v8_base", |
| 1157 ":v8_nosnapshot", | 1162 ":v8_nosnapshot", |
| 1158 ] | 1163 ] |
| 1159 } | 1164 } |
| 1160 | 1165 |
| 1161 direct_dependent_configs = [ ":external_config" ] | 1166 direct_dependent_configs = [ ":external_config" ] |
| 1162 } | 1167 } |
| 1163 | 1168 |
| 1164 } | 1169 } |
| OLD | NEW |