| 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 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 | 969 |
| 970 configs -= [ "//build/config/compiler:chromium_code" ] | 970 configs -= [ "//build/config/compiler:chromium_code" ] |
| 971 configs += [ "//build/config/compiler:no_chromium_code" ] | 971 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 972 configs += [ ":internal_config", ":features", ":toolchain" ] | 972 configs += [ ":internal_config", ":features", ":toolchain" ] |
| 973 | 973 |
| 974 deps = [ | 974 deps = [ |
| 975 ":v8_base", | 975 ":v8_base", |
| 976 ":v8_nosnapshot", | 976 ":v8_nosnapshot", |
| 977 ] | 977 ] |
| 978 | 978 |
| 979 libs = [] |
| 980 |
| 979 if (v8_compress_startup_data == "bz2") { | 981 if (v8_compress_startup_data == "bz2") { |
| 980 libs = [ "bz2" ] | 982 libs += [ "bz2" ] |
| 983 } |
| 984 |
| 985 if (is_android && current_toolchain != host_toolchain) { |
| 986 libs += [ "log" ] |
| 981 } | 987 } |
| 982 } | 988 } |
| 983 | 989 |
| 984 ############################################################################### | 990 ############################################################################### |
| 985 # Public targets | 991 # Public targets |
| 986 # | 992 # |
| 987 | 993 |
| 988 if (component_mode == "shared_library") { | 994 if (component_mode == "shared_library") { |
| 989 | 995 |
| 990 component("v8") { | 996 component("v8") { |
| 991 sources = [ | 997 sources = [ |
| 992 "src/v8dll-main.cc", | 998 "src/v8dll-main.cc", |
| 993 ] | 999 ] |
| 994 | 1000 |
| 995 if (v8_use_snapshot) { | 1001 if (v8_use_snapshot) { |
| 996 deps = [ | 1002 deps = [ |
| 997 ":v8_base", | 1003 ":v8_base", |
| 998 ":v8_snapshot", | 1004 ":v8_snapshot", |
| 999 ] | 1005 ] |
| 1000 } else { | 1006 } else { |
| 1001 deps = [ | 1007 deps = [ |
| 1002 ":v8_base", | 1008 ":v8_base", |
| 1003 ":v8_nosnapshot", | 1009 ":v8_nosnapshot", |
| 1004 ] | 1010 ] |
| 1005 } | 1011 } |
| 1006 | 1012 |
| 1007 if (is_android && current_toolchain != host_toolchain) { | |
| 1008 libs = [ "log" ] | |
| 1009 } | |
| 1010 | |
| 1011 configs -= [ "//build/config/compiler:chromium_code" ] | 1013 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1012 configs += [ "//build/config/compiler:no_chromium_code" ] | 1014 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 1013 configs += [ ":internal_config", ":features", ":toolchain" ] | 1015 configs += [ ":internal_config", ":features", ":toolchain" ] |
| 1014 | 1016 |
| 1015 # TODO(jochen): Support direct dependent configs. | 1017 # TODO(jochen): Support direct dependent configs. |
| 1016 } | 1018 } |
| 1017 | 1019 |
| 1018 } else { | 1020 } else { |
| 1019 | 1021 |
| 1020 group("v8") { | 1022 group("v8") { |
| 1021 if (v8_use_snapshot) { | 1023 if (v8_use_snapshot) { |
| 1022 deps = [ | 1024 deps = [ |
| 1023 ":v8_base", | 1025 ":v8_base", |
| 1024 ":v8_snapshot", | 1026 ":v8_snapshot", |
| 1025 ] | 1027 ] |
| 1026 } else { | 1028 } else { |
| 1027 deps = [ | 1029 deps = [ |
| 1028 ":v8_base", | 1030 ":v8_base", |
| 1029 ":v8_nosnapshot", | 1031 ":v8_nosnapshot", |
| 1030 ] | 1032 ] |
| 1031 } | 1033 } |
| 1032 # TODO(jochen): Support direct dependent configs. | 1034 # TODO(jochen): Support direct dependent configs. |
| 1033 } | 1035 } |
| 1034 | 1036 |
| 1035 } | 1037 } |
| OLD | NEW |