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 if (is_android) { |
| 11 import("//build/config/android/rules.gni") |
| 12 } |
| 13 |
10 # Because standalone V8 builds are not supported, assume this is part of a | 14 # Because standalone V8 builds are not supported, assume this is part of a |
11 # Chromium build. | 15 # Chromium build. |
12 import("//build/module_args/v8.gni") | 16 import("//build/module_args/v8.gni") |
13 | 17 |
14 import("snapshot_toolchain.gni") | 18 import("snapshot_toolchain.gni") |
15 | 19 |
16 # TODO(jochen): These will need to be user-settable to support standalone V8 | 20 # TODO(jochen): These will need to be user-settable to support standalone V8 |
17 # builds. | 21 # builds. |
18 v8_deprecation_warnings = false | 22 v8_deprecation_warnings = false |
19 v8_enable_disassembler = false | 23 v8_enable_disassembler = false |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 ] | 404 ] |
401 | 405 |
402 outputs = [ | 406 outputs = [ |
403 "$target_gen_dir/d8-js.cc", | 407 "$target_gen_dir/d8-js.cc", |
404 ] | 408 ] |
405 | 409 |
406 args = rebase_path(outputs, root_build_dir) + [ "D8" ] + | 410 args = rebase_path(outputs, root_build_dir) + [ "D8" ] + |
407 rebase_path(inputs, root_build_dir) | 411 rebase_path(inputs, root_build_dir) |
408 } | 412 } |
409 | 413 |
| 414 if (is_android) { |
| 415 android_assets("v8_external_startup_data_assets") { |
| 416 if (v8_use_external_startup_data) { |
| 417 deps = [ |
| 418 "//v8", |
| 419 ] |
| 420 sources = [ |
| 421 "$root_out_dir/natives_blob.bin", |
| 422 "$root_out_dir/snapshot_blob.bin", |
| 423 ] |
| 424 disable_compression = true |
| 425 } |
| 426 } |
| 427 } |
| 428 |
410 if (v8_use_external_startup_data) { | 429 if (v8_use_external_startup_data) { |
411 action("natives_blob") { | 430 action("natives_blob") { |
412 visibility = [ ":*" ] # Only targets in this file can depend on this. | 431 visibility = [ ":*" ] # Only targets in this file can depend on this. |
413 | 432 |
414 deps = [ | 433 deps = [ |
415 ":js2c", | 434 ":js2c", |
416 ":js2c_code_stubs", | 435 ":js2c_code_stubs", |
417 ":js2c_experimental", | 436 ":js2c_experimental", |
418 ":js2c_extras", | 437 ":js2c_extras", |
419 ":js2c_experimental_extras", | 438 ":js2c_experimental_extras", |
(...skipping 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1815 if (!is_component_build) { | 1834 if (!is_component_build) { |
1816 sources += [ | 1835 sources += [ |
1817 "$target_gen_dir/d8-js.cc", | 1836 "$target_gen_dir/d8-js.cc", |
1818 ] | 1837 ] |
1819 } | 1838 } |
1820 if (v8_enable_i18n_support) { | 1839 if (v8_enable_i18n_support) { |
1821 deps += [ "//third_party/icu" ] | 1840 deps += [ "//third_party/icu" ] |
1822 } | 1841 } |
1823 } | 1842 } |
1824 } | 1843 } |
OLD | NEW |