Chromium Code Reviews| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ] | 106 defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ] |
| 107 } | 107 } |
| 108 } | 108 } |
| 109 | 109 |
| 110 config("toolchain") { | 110 config("toolchain") { |
| 111 visibility = [ ":*" ] # Only targets in this file can depend on this. | 111 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 112 | 112 |
| 113 defines = [] | 113 defines = [] |
| 114 cflags = [] | 114 cflags = [] |
| 115 | 115 |
| 116 # TODO(jochen): Add support for arm subarchs, mips, mipsel. | 116 # TODO(jochen): Add support for arm subarchs, mips, mipsel, mips64el. |
|
Dirk Pranke
2015/03/17 21:44:13
I think this is completely appropriate.
lgtm.
| |
| 117 | 117 |
| 118 if (v8_target_arch == "arm") { | 118 if (v8_target_arch == "arm") { |
| 119 defines += [ "V8_TARGET_ARCH_ARM" ] | 119 defines += [ "V8_TARGET_ARCH_ARM" ] |
| 120 if (current_cpu == "arm") { | 120 if (current_cpu == "arm") { |
| 121 if (arm_version == 7) { | 121 if (arm_version == 7) { |
| 122 defines += [ "CAN_USE_ARMV7_INSTRUCTIONS" ] | 122 defines += [ "CAN_USE_ARMV7_INSTRUCTIONS" ] |
| 123 } | 123 } |
| 124 if (arm_fpu == "vfpv3-d16") { | 124 if (arm_fpu == "vfpv3-d16") { |
| 125 defines += [ "CAN_USE_VFP3_INSTRUCTIONS" ] | 125 defines += [ "CAN_USE_VFP3_INSTRUCTIONS" ] |
| 126 } else if (arm_fpu == "vfpv3") { | 126 } else if (arm_fpu == "vfpv3") { |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 143 "CAN_USE_VFP32DREGS", | 143 "CAN_USE_VFP32DREGS", |
| 144 "USE_EABI_HARDFLOAT=0", | 144 "USE_EABI_HARDFLOAT=0", |
| 145 ] | 145 ] |
| 146 } | 146 } |
| 147 | 147 |
| 148 # TODO(jochen): Add support for arm_test_noprobe. | 148 # TODO(jochen): Add support for arm_test_noprobe. |
| 149 } | 149 } |
| 150 if (v8_target_arch == "arm64") { | 150 if (v8_target_arch == "arm64") { |
| 151 defines += [ "V8_TARGET_ARCH_ARM64" ] | 151 defines += [ "V8_TARGET_ARCH_ARM64" ] |
| 152 } | 152 } |
| 153 if (v8_target_arch == "mipsel") { | |
| 154 defines += [ "V8_TARGET_ARCH_MIPS" ] | |
| 155 } | |
| 156 if (v8_target_arch == "mips64el") { | |
| 157 defines += [ "V8_TARGET_ARCH_MIPS64" ] | |
| 158 } | |
| 153 if (v8_target_arch == "x86") { | 159 if (v8_target_arch == "x86") { |
| 154 defines += [ "V8_TARGET_ARCH_IA32" ] | 160 defines += [ "V8_TARGET_ARCH_IA32" ] |
| 155 } | 161 } |
| 156 if (v8_target_arch == "x64") { | 162 if (v8_target_arch == "x64") { |
| 157 defines += [ "V8_TARGET_ARCH_X64" ] | 163 defines += [ "V8_TARGET_ARCH_X64" ] |
| 158 } | 164 } |
| 159 if (is_win) { | 165 if (is_win) { |
| 160 defines += [ "WIN32" ] | 166 defines += [ "WIN32" ] |
| 161 # TODO(jochen): Support v8_enable_prof. | 167 # TODO(jochen): Support v8_enable_prof. |
| 162 } | 168 } |
| (...skipping 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1584 sources += [ | 1590 sources += [ |
| 1585 "src/d8-debug.cc", | 1591 "src/d8-debug.cc", |
| 1586 "$target_gen_dir/d8-js.cc", | 1592 "$target_gen_dir/d8-js.cc", |
| 1587 ] | 1593 ] |
| 1588 } | 1594 } |
| 1589 if (v8_enable_i18n_support) { | 1595 if (v8_enable_i18n_support) { |
| 1590 deps += [ "//third_party/icu" ] | 1596 deps += [ "//third_party/icu" ] |
| 1591 } | 1597 } |
| 1592 } | 1598 } |
| 1593 } | 1599 } |
| OLD | NEW |