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 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
9 | 9 |
10 # Because standalone V8 builds are not supported, assume this is part of a | 10 # Because standalone V8 builds are not supported, assume this is part of a |
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1527 | 1527 |
1528 configs -= [ "//build/config/compiler:chromium_code" ] | 1528 configs -= [ "//build/config/compiler:chromium_code" ] |
1529 configs += [ "//build/config/compiler:no_chromium_code" ] | 1529 configs += [ "//build/config/compiler:no_chromium_code" ] |
1530 configs += [ | 1530 configs += [ |
1531 ":internal_config", | 1531 ":internal_config", |
1532 ":features", | 1532 ":features", |
1533 ":toolchain", | 1533 ":toolchain", |
1534 ] | 1534 ] |
1535 | 1535 |
1536 if (!is_debug) { | 1536 if (!is_debug) { |
1537 configs -= [ "//build/config/compiler:optimize" ] | 1537 if (using_new_optimization_config) { |
| 1538 configs -= [ "//build/config/compiler:default_optimization" ] |
| 1539 } else { |
| 1540 configs -= [ "//build/config/compiler:optimize" ] |
| 1541 } |
1538 configs += [ "//build/config/compiler:optimize_max" ] | 1542 configs += [ "//build/config/compiler:optimize_max" ] |
1539 } | 1543 } |
1540 | 1544 |
1541 defines = [] | 1545 defines = [] |
1542 deps = [ | 1546 deps = [ |
1543 ":v8_libbase", | 1547 ":v8_libbase", |
1544 ] | 1548 ] |
1545 | 1549 |
1546 if (is_win) { | 1550 if (is_win) { |
1547 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1551 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1626 | 1630 |
1627 configs -= [ "//build/config/compiler:chromium_code" ] | 1631 configs -= [ "//build/config/compiler:chromium_code" ] |
1628 configs += [ "//build/config/compiler:no_chromium_code" ] | 1632 configs += [ "//build/config/compiler:no_chromium_code" ] |
1629 configs += [ | 1633 configs += [ |
1630 ":internal_config_base", | 1634 ":internal_config_base", |
1631 ":features", | 1635 ":features", |
1632 ":toolchain", | 1636 ":toolchain", |
1633 ] | 1637 ] |
1634 | 1638 |
1635 if (!is_debug) { | 1639 if (!is_debug) { |
1636 configs -= [ "//build/config/compiler:optimize" ] | 1640 if (using_new_optimization_config) { |
| 1641 configs -= [ "//build/config/compiler:default_optimization" ] |
| 1642 } else { |
| 1643 configs -= [ "//build/config/compiler:optimize" ] |
| 1644 } |
1637 configs += [ "//build/config/compiler:optimize_max" ] | 1645 configs += [ "//build/config/compiler:optimize_max" ] |
1638 } | 1646 } |
1639 | 1647 |
1640 defines = [] | 1648 defines = [] |
1641 | 1649 |
1642 if (is_posix) { | 1650 if (is_posix) { |
1643 sources += [ "src/base/platform/platform-posix.cc" ] | 1651 sources += [ "src/base/platform/platform-posix.cc" ] |
1644 } | 1652 } |
1645 | 1653 |
1646 if (is_linux) { | 1654 if (is_linux) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1693 | 1701 |
1694 configs -= [ "//build/config/compiler:chromium_code" ] | 1702 configs -= [ "//build/config/compiler:chromium_code" ] |
1695 configs += [ "//build/config/compiler:no_chromium_code" ] | 1703 configs += [ "//build/config/compiler:no_chromium_code" ] |
1696 configs += [ | 1704 configs += [ |
1697 ":internal_config_base", | 1705 ":internal_config_base", |
1698 ":features", | 1706 ":features", |
1699 ":toolchain", | 1707 ":toolchain", |
1700 ] | 1708 ] |
1701 | 1709 |
1702 if (!is_debug) { | 1710 if (!is_debug) { |
1703 configs -= [ "//build/config/compiler:optimize" ] | 1711 if (using_new_optimization_config) { |
| 1712 configs -= [ "//build/config/compiler:default_optimization" ] |
| 1713 } else { |
| 1714 configs -= [ "//build/config/compiler:optimize" ] |
| 1715 } |
1704 configs += [ "//build/config/compiler:optimize_max" ] | 1716 configs += [ "//build/config/compiler:optimize_max" ] |
1705 } | 1717 } |
1706 | 1718 |
1707 deps = [ | 1719 deps = [ |
1708 ":v8_libbase", | 1720 ":v8_libbase", |
1709 ] | 1721 ] |
1710 } | 1722 } |
1711 | 1723 |
1712 ############################################################################### | 1724 ############################################################################### |
1713 # Executables | 1725 # Executables |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1850 if (!is_component_build) { | 1862 if (!is_component_build) { |
1851 sources += [ | 1863 sources += [ |
1852 "$target_gen_dir/d8-js.cc", | 1864 "$target_gen_dir/d8-js.cc", |
1853 ] | 1865 ] |
1854 } | 1866 } |
1855 if (v8_enable_i18n_support) { | 1867 if (v8_enable_i18n_support) { |
1856 deps += [ "//third_party/icu" ] | 1868 deps += [ "//third_party/icu" ] |
1857 } | 1869 } |
1858 } | 1870 } |
1859 } | 1871 } |
OLD | NEW |