| 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 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1520 } | 1520 } |
| 1521 | 1521 |
| 1522 configs -= [ "//build/config/compiler:chromium_code" ] | 1522 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1523 configs += [ "//build/config/compiler:no_chromium_code" ] | 1523 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 1524 configs += [ | 1524 configs += [ |
| 1525 ":internal_config", | 1525 ":internal_config", |
| 1526 ":features", | 1526 ":features", |
| 1527 ":toolchain", | 1527 ":toolchain", |
| 1528 ] | 1528 ] |
| 1529 | 1529 |
| 1530 direct_dependent_configs = [ ":external_config" ] | 1530 public_configs = [ ":external_config" ] |
| 1531 | 1531 |
| 1532 libs = [] | 1532 libs = [] |
| 1533 if (is_android && current_toolchain != host_toolchain) { | 1533 if (is_android && current_toolchain != host_toolchain) { |
| 1534 libs += [ "log" ] | 1534 libs += [ "log" ] |
| 1535 } | 1535 } |
| 1536 } | 1536 } |
| 1537 } else { | 1537 } else { |
| 1538 group("v8") { | 1538 group("v8") { |
| 1539 if (v8_use_snapshot && v8_use_external_startup_data) { | 1539 if (v8_use_snapshot && v8_use_external_startup_data) { |
| 1540 deps = [ | 1540 deps = [ |
| 1541 ":v8_base", | 1541 ":v8_base", |
| 1542 ":v8_external_snapshot", | 1542 ":v8_external_snapshot", |
| 1543 ] | 1543 ] |
| 1544 } else if (v8_use_snapshot) { | 1544 } else if (v8_use_snapshot) { |
| 1545 deps = [ | 1545 deps = [ |
| 1546 ":v8_base", | 1546 ":v8_base", |
| 1547 ":v8_snapshot", | 1547 ":v8_snapshot", |
| 1548 ] | 1548 ] |
| 1549 } else { | 1549 } else { |
| 1550 assert(!v8_use_external_startup_data) | 1550 assert(!v8_use_external_startup_data) |
| 1551 deps = [ | 1551 deps = [ |
| 1552 ":v8_base", | 1552 ":v8_base", |
| 1553 ":v8_nosnapshot", | 1553 ":v8_nosnapshot", |
| 1554 ] | 1554 ] |
| 1555 } | 1555 } |
| 1556 | 1556 |
| 1557 direct_dependent_configs = [ ":external_config" ] | 1557 public_configs = [ ":external_config" ] |
| 1558 } | 1558 } |
| 1559 } | 1559 } |
| 1560 | 1560 |
| 1561 if ((current_toolchain == host_toolchain && v8_toolset_for_d8 == "host") || | 1561 if ((current_toolchain == host_toolchain && v8_toolset_for_d8 == "host") || |
| 1562 (current_toolchain != host_toolchain && v8_toolset_for_d8 == "target")) { | 1562 (current_toolchain != host_toolchain && v8_toolset_for_d8 == "target")) { |
| 1563 executable("d8") { | 1563 executable("d8") { |
| 1564 sources = [ | 1564 sources = [ |
| 1565 "src/d8.cc", | 1565 "src/d8.cc", |
| 1566 "src/d8.h", | 1566 "src/d8.h", |
| 1567 "src/startup-data-util.h", | 1567 "src/startup-data-util.h", |
| 1568 "src/startup-data-util.cc", | 1568 "src/startup-data-util.cc", |
| 1569 ] | 1569 ] |
| 1570 | 1570 |
| 1571 configs -= [ "//build/config/compiler:chromium_code" ] | 1571 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1572 configs += [ "//build/config/compiler:no_chromium_code" ] | 1572 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 1573 configs += [ | 1573 configs += [ |
| 1574 ":internal_config", | 1574 # Note: don't use :internal_config here because this target will get |
| 1575 # the :external_config applied to it by virtue of depending on :v8, and |
| 1576 # you can't have both applied to the same target. |
| 1577 ":internal_config_base", |
| 1575 ":features", | 1578 ":features", |
| 1576 ":toolchain", | 1579 ":toolchain", |
| 1577 ] | 1580 ] |
| 1578 | 1581 |
| 1579 deps = [ | 1582 deps = [ |
| 1580 ":d8_js2c", | 1583 ":d8_js2c", |
| 1581 ":v8", | 1584 ":v8", |
| 1582 ":v8_libplatform", | 1585 ":v8_libplatform", |
| 1583 "//build/config/sanitizers:deps", | 1586 "//build/config/sanitizers:deps", |
| 1584 ] | 1587 ] |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1595 sources += [ | 1598 sources += [ |
| 1596 "src/d8-debug.cc", | 1599 "src/d8-debug.cc", |
| 1597 "$target_gen_dir/d8-js.cc", | 1600 "$target_gen_dir/d8-js.cc", |
| 1598 ] | 1601 ] |
| 1599 } | 1602 } |
| 1600 if (v8_enable_i18n_support) { | 1603 if (v8_enable_i18n_support) { |
| 1601 deps += [ "//third_party/icu" ] | 1604 deps += [ "//third_party/icu" ] |
| 1602 } | 1605 } |
| 1603 } | 1606 } |
| 1604 } | 1607 } |
| OLD | NEW |