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 | 8 |
9 # Because standalone V8 builds are not supported, assume this is part of a | 9 # Because standalone V8 builds are not supported, assume this is part of a |
10 # Chromium build. | 10 # Chromium build. |
(...skipping 14 matching lines...) Expand all Loading... |
25 v8_target_arch = target_cpu | 25 v8_target_arch = target_cpu |
26 v8_random_seed = "314159265" | 26 v8_random_seed = "314159265" |
27 v8_toolset_for_d8 = "host" | 27 v8_toolset_for_d8 = "host" |
28 | 28 |
29 # The snapshot needs to be compiled for the host, but compiled with | 29 # The snapshot needs to be compiled for the host, but compiled with |
30 # a toolchain that matches the bit-width of the target. | 30 # a toolchain that matches the bit-width of the target. |
31 # | 31 # |
32 # TODO(GYP): For now we only support 32-bit little-endian target builds from an | 32 # TODO(GYP): For now we only support 32-bit little-endian target builds from an |
33 # x64 Linux host. Eventually we need to support all of the host/target | 33 # x64 Linux host. Eventually we need to support all of the host/target |
34 # configurations v8 runs on. | 34 # configurations v8 runs on. |
35 if (host_cpu == "x64" && host_os == "linux" && | 35 if (host_cpu == "x64" && host_os == "linux") { |
36 (target_cpu == "arm" || target_cpu == "mipsel" || target_cpu == "x86")) { | 36 if (target_cpu == "arm" || target_cpu == "mipsel" || target_cpu == "x86") { |
37 snapshot_toolchain = "//build/toolchain/linux:clang_x86" | 37 snapshot_toolchain = "//build/toolchain/linux:clang_x86" |
| 38 } else if (target_cpu == "x64") { |
| 39 snapshot_toolchain = "//build/toolchain/linux:clang_x64" |
| 40 } else { |
| 41 assert(false, "Need environment for this arch") |
| 42 } |
38 } else { | 43 } else { |
39 snapshot_toolchain = default_toolchain | 44 snapshot_toolchain = default_toolchain |
40 } | 45 } |
41 | 46 |
42 ############################################################################### | 47 ############################################################################### |
43 # Configurations | 48 # Configurations |
44 # | 49 # |
45 config("internal_config") { | 50 config("internal_config") { |
46 visibility = [ ":*" ] # Only targets in this file can depend on this. | 51 visibility = [ ":*" ] # Only targets in this file can depend on this. |
47 | 52 |
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1592 sources += [ | 1597 sources += [ |
1593 "src/d8-debug.cc", | 1598 "src/d8-debug.cc", |
1594 "$target_gen_dir/d8-js.cc", | 1599 "$target_gen_dir/d8-js.cc", |
1595 ] | 1600 ] |
1596 } | 1601 } |
1597 if (v8_enable_i18n_support) { | 1602 if (v8_enable_i18n_support) { |
1598 deps += [ "//third_party/icu" ] | 1603 deps += [ "//third_party/icu" ] |
1599 } | 1604 } |
1600 } | 1605 } |
1601 } | 1606 } |
OLD | NEW |