Chromium Code Reviews| 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) { | |
|
jochen (gone - plz use gerrit)
2015/01/08 15:11:53
shouldn't that be v8_use_external_startup_data &&
rmcilroy
2015/01/08 16:29:21
Done.
| |
| 74 deps += [ | |
| 75 ":gin_v8_snapshot_fingerprint", | |
| 76 "//crypto:crypto", | |
| 77 ] | |
| 78 sources += [ "$target_gen_dir/v8_snapshot_fingerprint.cc" ] | |
| 79 } | |
| 80 } | |
| 81 | |
| 82 action("gin_v8_snapshot_fingerprint") { | |
| 83 script = "//gin/fingerprint/fingerprint_v8_snapshot.py" | |
| 84 | |
| 85 snapshot_file = "$root_build_dir/snapshot_blob.bin" | |
| 86 natives_file = "$root_build_dir/natives_blob.bin" | |
| 87 output_file = "$target_gen_dir/v8_snapshot_fingerprint.cc" | |
| 88 | |
| 89 args = [ | |
| 90 "--snapshot_file", | |
| 91 rebase_path(snapshot_file, root_build_dir), | |
| 92 "--natives_file", | |
| 93 rebase_path(natives_file, root_build_dir), | |
| 94 "--output_file", | |
| 95 rebase_path(output_file, root_build_dir), | |
| 96 ] | |
| 97 inputs = [ | |
| 98 snapshot_file, | |
| 99 natives_file, | |
| 100 ] | |
| 101 outputs = [ | |
| 102 output_file, | |
| 103 ] | |
| 71 } | 104 } |
| 72 | 105 |
| 73 executable("gin_shell") { | 106 executable("gin_shell") { |
| 74 sources = [ | 107 sources = [ |
| 75 "shell/gin_main.cc", | 108 "shell/gin_main.cc", |
| 76 ] | 109 ] |
| 77 | 110 |
| 78 deps = [ | 111 deps = [ |
| 79 ":gin", | 112 ":gin", |
| 80 "//base", | 113 "//base", |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 "test/run_js_tests.cc", | 153 "test/run_js_tests.cc", |
| 121 "wrappable_unittest.cc", | 154 "wrappable_unittest.cc", |
| 122 ] | 155 ] |
| 123 | 156 |
| 124 deps = [ | 157 deps = [ |
| 125 ":gin_test", | 158 ":gin_test", |
| 126 "//base/test:test_support", | 159 "//base/test:test_support", |
| 127 "//v8", | 160 "//v8", |
| 128 ] | 161 ] |
| 129 } | 162 } |
| OLD | NEW |