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 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1391 sources += [ "src/base/platform/platform-posix.cc" ] | 1391 sources += [ "src/base/platform/platform-posix.cc" ] |
1392 } | 1392 } |
1393 | 1393 |
1394 if (is_linux) { | 1394 if (is_linux) { |
1395 sources += [ "src/base/platform/platform-linux.cc" ] | 1395 sources += [ "src/base/platform/platform-linux.cc" ] |
1396 | 1396 |
1397 libs = [ "dl", "rt" ] | 1397 libs = [ "dl", "rt" ] |
1398 } else if (is_android) { | 1398 } else if (is_android) { |
1399 defines += [ "CAN_USE_VFP_INSTRUCTIONS" ] | 1399 defines += [ "CAN_USE_VFP_INSTRUCTIONS" ] |
1400 | 1400 |
1401 if (host_os == "mac") { | 1401 if (current_toolchain == host_toolchain) { |
1402 if (current_toolchain == host_toolchain) { | 1402 libs = [ "dl", "rt" ] |
| 1403 if (host_os == "mac") { |
1403 sources += [ "src/base/platform/platform-macos.cc" ] | 1404 sources += [ "src/base/platform/platform-macos.cc" ] |
1404 } else { | 1405 } else { |
1405 sources += [ "src/base/platform/platform-linux.cc" ] | 1406 sources += [ "src/base/platform/platform-linux.cc" ] |
1406 } | 1407 } |
1407 } else { | 1408 } else { |
1408 sources += [ "src/base/platform/platform-linux.cc" ] | 1409 sources += [ "src/base/platform/platform-linux.cc" ] |
1409 if (current_toolchain == host_toolchain) { | |
1410 defines += [ "V8_LIBRT_NOT_AVAILABLE" ] | |
1411 } | |
1412 } | 1410 } |
1413 } else if (is_mac) { | 1411 } else if (is_mac) { |
1414 sources += [ "src/base/platform/platform-macos.cc" ] | 1412 sources += [ "src/base/platform/platform-macos.cc" ] |
1415 } else if (is_win) { | 1413 } else if (is_win) { |
1416 # TODO(jochen): Add support for cygwin. | 1414 # TODO(jochen): Add support for cygwin. |
1417 sources += [ | 1415 sources += [ |
1418 "src/base/platform/platform-win32.cc", | 1416 "src/base/platform/platform-win32.cc", |
1419 "src/base/win32-headers.h", | 1417 "src/base/win32-headers.h", |
1420 ] | 1418 ] |
1421 | 1419 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1592 sources += [ | 1590 sources += [ |
1593 "src/d8-debug.cc", | 1591 "src/d8-debug.cc", |
1594 "$target_gen_dir/d8-js.cc", | 1592 "$target_gen_dir/d8-js.cc", |
1595 ] | 1593 ] |
1596 } | 1594 } |
1597 if (v8_enable_i18n_support) { | 1595 if (v8_enable_i18n_support) { |
1598 deps += [ "//third_party/icu" ] | 1596 deps += [ "//third_party/icu" ] |
1599 } | 1597 } |
1600 } | 1598 } |
1601 } | 1599 } |
OLD | NEW |