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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 config("external_config") { | 64 config("external_config") { |
65 if (is_component_build) { | 65 if (is_component_build) { |
66 defines = [ | 66 defines = [ |
67 "V8_SHARED", | 67 "V8_SHARED", |
68 "USING_V8_SHARED", | 68 "USING_V8_SHARED", |
69 ] | 69 ] |
70 } | 70 } |
71 include_dirs = [ "include" ] | 71 include_dirs = [ "include" ] |
72 } | 72 } |
73 | 73 |
| 74 # This config should only be applied to code that needs to be explicitly |
| 75 # aware of whether we are using startup data or not. |
| 76 config("external_startup_data") { |
| 77 if (v8_use_external_startup_data) { |
| 78 defines = [ "V8_USE_EXTERNAL_STARTUP_DATA" ] |
| 79 } |
| 80 } |
| 81 |
74 config("features") { | 82 config("features") { |
75 visibility = [ ":*" ] # Only targets in this file can depend on this. | 83 visibility = [ ":*" ] # Only targets in this file can depend on this. |
76 | 84 |
77 defines = [] | 85 defines = [] |
78 | 86 |
79 if (v8_enable_disassembler == true) { | 87 if (v8_enable_disassembler == true) { |
80 defines += [ "ENABLE_DISASSEMBLER" ] | 88 defines += [ "ENABLE_DISASSEMBLER" ] |
81 } | 89 } |
82 if (v8_enable_gdbjit == true) { | 90 if (v8_enable_gdbjit == true) { |
83 defines += [ "ENABLE_GDB_JIT_INTERFACE" ] | 91 defines += [ "ENABLE_GDB_JIT_INTERFACE" ] |
(...skipping 1742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1826 if (!is_component_build) { | 1834 if (!is_component_build) { |
1827 sources += [ | 1835 sources += [ |
1828 "$target_gen_dir/d8-js.cc", | 1836 "$target_gen_dir/d8-js.cc", |
1829 ] | 1837 ] |
1830 } | 1838 } |
1831 if (v8_enable_i18n_support) { | 1839 if (v8_enable_i18n_support) { |
1832 deps += [ "//third_party/icu" ] | 1840 deps += [ "//third_party/icu" ] |
1833 } | 1841 } |
1834 } | 1842 } |
1835 } | 1843 } |
OLD | NEW |