| 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/module_args/v8.gni") |
| 6 |
| 5 component("gin") { | 7 component("gin") { |
| 6 sources = [ | 8 sources = [ |
| 7 "arguments.cc", | 9 "arguments.cc", |
| 8 "arguments.h", | 10 "arguments.h", |
| 9 "array_buffer.cc", | 11 "array_buffer.cc", |
| 10 "array_buffer.h", | 12 "array_buffer.h", |
| 11 "context_holder.cc", | 13 "context_holder.cc", |
| 12 "converter.cc", | 14 "converter.cc", |
| 13 "converter.h", | 15 "converter.h", |
| 14 "debug_impl.cc", | 16 "debug_impl.cc", |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 63 |
| 62 defines = [ "GIN_IMPLEMENTATION" ] | 64 defines = [ "GIN_IMPLEMENTATION" ] |
| 63 | 65 |
| 64 public_deps = [ | 66 public_deps = [ |
| 65 "//base", | 67 "//base", |
| 66 "//v8", | 68 "//v8", |
| 67 ] | 69 ] |
| 68 deps = [ | 70 deps = [ |
| 69 "//base/third_party/dynamic_annotations", | 71 "//base/third_party/dynamic_annotations", |
| 70 ] | 72 ] |
| 73 if (v8_use_external_startup_data && is_win) { |
| 74 deps += [ |
| 75 ":gin_v8_snapshot_fingerprint", |
| 76 "//crypto:crypto", |
| 77 ] |
| 78 sources += [ "$target_gen_dir/v8_snapshot_fingerprint.cc" ] |
| 79 } |
| 80 } |
| 81 |
| 82 if (v8_use_external_startup_data) { |
| 83 action("gin_v8_snapshot_fingerprint") { |
| 84 script = "//gin/fingerprint/fingerprint_v8_snapshot.py" |
| 85 |
| 86 snapshot_file = "$root_build_dir/snapshot_blob.bin" |
| 87 natives_file = "$root_build_dir/natives_blob.bin" |
| 88 output_file = "$target_gen_dir/v8_snapshot_fingerprint.cc" |
| 89 |
| 90 args = [ |
| 91 "--snapshot_file", |
| 92 rebase_path(snapshot_file, root_build_dir), |
| 93 "--natives_file", |
| 94 rebase_path(natives_file, root_build_dir), |
| 95 "--output_file", |
| 96 rebase_path(output_file, root_build_dir), |
| 97 ] |
| 98 inputs = [ |
| 99 snapshot_file, |
| 100 natives_file, |
| 101 ] |
| 102 outputs = [ |
| 103 output_file, |
| 104 ] |
| 105 } |
| 71 } | 106 } |
| 72 | 107 |
| 73 executable("gin_shell") { | 108 executable("gin_shell") { |
| 74 sources = [ | 109 sources = [ |
| 75 "shell/gin_main.cc", | 110 "shell/gin_main.cc", |
| 76 ] | 111 ] |
| 77 | 112 |
| 78 deps = [ | 113 deps = [ |
| 79 ":gin", | 114 ":gin", |
| 80 "//base", | 115 "//base", |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 "test/run_js_tests.cc", | 155 "test/run_js_tests.cc", |
| 121 "wrappable_unittest.cc", | 156 "wrappable_unittest.cc", |
| 122 ] | 157 ] |
| 123 | 158 |
| 124 deps = [ | 159 deps = [ |
| 125 ":gin_test", | 160 ":gin_test", |
| 126 "//base/test:test_support", | 161 "//base/test:test_support", |
| 127 "//v8", | 162 "//v8", |
| 128 ] | 163 ] |
| 129 } | 164 } |
| OLD | NEW |