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") | 5 import("//build/module_args/v8.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 component("gin") { | 8 component("gin") { |
9 sources = [ | 9 sources = [ |
10 "arguments.cc", | 10 "arguments.cc", |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 defines = [ "GIN_IMPLEMENTATION" ] | 69 defines = [ "GIN_IMPLEMENTATION" ] |
70 | 70 |
71 public_deps = [ | 71 public_deps = [ |
72 "//base", | 72 "//base", |
73 "//v8", | 73 "//v8", |
74 ] | 74 ] |
75 deps = [ | 75 deps = [ |
76 "//base/third_party/dynamic_annotations", | 76 "//base/third_party/dynamic_annotations", |
77 ] | 77 ] |
78 if (v8_use_external_startup_data && is_win) { | 78 if (v8_use_external_startup_data && is_win) { |
79 public_deps += [ ":gin_v8_snapshot_fingerprint" ] | 79 deps += [ |
80 deps += [ "//crypto:crypto" ] | 80 ":gin_v8_snapshot_fingerprint", |
| 81 "//crypto:crypto", |
| 82 ] |
81 sources += [ "$target_gen_dir/v8_snapshot_fingerprint.cc" ] | 83 sources += [ "$target_gen_dir/v8_snapshot_fingerprint.cc" ] |
82 defines += [ "V8_VERIFY_EXTERNAL_STARTUP_DATA" ] | 84 defines += [ "V8_VERIFY_EXTERNAL_STARTUP_DATA" ] |
83 } | 85 } |
84 } | 86 } |
85 | 87 |
86 if (v8_use_external_startup_data) { | 88 if (v8_use_external_startup_data) { |
87 action("gin_v8_snapshot_fingerprint") { | 89 action("gin_v8_snapshot_fingerprint") { |
88 script = "//gin/fingerprint/fingerprint_v8_snapshot.py" | 90 script = "//gin/fingerprint/fingerprint_v8_snapshot.py" |
89 | 91 |
90 snapshot_file = "$root_build_dir/snapshot_blob.bin" | 92 snapshot_file = "$root_build_dir/snapshot_blob.bin" |
91 natives_file = "$root_build_dir/natives_blob.bin" | 93 natives_file = "$root_build_dir/natives_blob.bin" |
92 output_file = "$target_gen_dir/v8_snapshot_fingerprint.cc" | 94 output_file = "$target_gen_dir/v8_snapshot_fingerprint.cc" |
93 | 95 |
94 args = [ | 96 args = [ |
95 "--snapshot_file", | 97 "--snapshot_file", |
96 rebase_path(snapshot_file, root_build_dir), | 98 rebase_path(snapshot_file, root_build_dir), |
97 "--natives_file", | 99 "--natives_file", |
98 rebase_path(natives_file, root_build_dir), | 100 rebase_path(natives_file, root_build_dir), |
99 "--output_file", | 101 "--output_file", |
100 rebase_path(output_file, root_build_dir), | 102 rebase_path(output_file, root_build_dir), |
101 ] | 103 ] |
102 inputs = [ | 104 inputs = [ |
103 snapshot_file, | 105 snapshot_file, |
104 natives_file, | 106 natives_file, |
105 ] | 107 ] |
106 outputs = [ | 108 outputs = [ |
107 output_file, | 109 output_file, |
108 ] | 110 ] |
109 | |
110 deps = [ | |
111 "//v8", | |
112 ] | |
113 } | 111 } |
114 } | 112 } |
115 | 113 |
116 executable("gin_shell") { | 114 executable("gin_shell") { |
117 sources = [ | 115 sources = [ |
118 "shell/gin_main.cc", | 116 "shell/gin_main.cc", |
119 ] | 117 ] |
120 | 118 |
121 deps = [ | 119 deps = [ |
122 ":gin", | 120 ":gin", |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 "test/run_js_tests.cc", | 161 "test/run_js_tests.cc", |
164 "wrappable_unittest.cc", | 162 "wrappable_unittest.cc", |
165 ] | 163 ] |
166 | 164 |
167 deps = [ | 165 deps = [ |
168 ":gin_test", | 166 ":gin_test", |
169 "//base/test:test_support", | 167 "//base/test:test_support", |
170 "//v8", | 168 "//v8", |
171 ] | 169 ] |
172 } | 170 } |
OLD | NEW |