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("//testing/test.gni") | 5 import("//testing/test.gni") |
6 import("//v8/gni/v8.gni") | 6 import("//v8/gni/v8.gni") |
7 | 7 |
8 # This is depended upon from the browser DLL on Windows, where V8 is not used, | 8 # This is depended upon from the browser DLL on Windows, where V8 is not used, |
9 # but features are enabled. This cannot depend on V8. | 9 # but features are enabled. This cannot depend on V8. |
10 source_set("gin_features") { | 10 source_set("gin_features") { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 public_deps = [ | 97 public_deps = [ |
98 "//base", | 98 "//base", |
99 "//v8", | 99 "//v8", |
100 ] | 100 ] |
101 deps = [ | 101 deps = [ |
102 ":gin_features", | 102 ":gin_features", |
103 "//base/third_party/dynamic_annotations", | 103 "//base/third_party/dynamic_annotations", |
104 "//crypto", | 104 "//crypto", |
105 ] | 105 ] |
106 if (v8_use_external_startup_data && is_win) { | |
107 public_deps += [ ":gin_v8_snapshot_fingerprint" ] | |
108 sources += [ "$target_gen_dir/v8_snapshot_fingerprint.cc" ] | |
109 defines += [ "V8_VERIFY_EXTERNAL_STARTUP_DATA" ] | |
110 } | |
111 | 106 |
112 if (is_mac) { | 107 if (is_mac) { |
113 libs = [ "CoreFoundation.framework" ] | 108 libs = [ "CoreFoundation.framework" ] |
114 } | 109 } |
115 | 110 |
116 configs += [ "//v8:external_startup_data" ] | 111 configs += [ "//v8:external_startup_data" ] |
117 } | 112 } |
118 | 113 |
119 if (v8_use_external_startup_data) { | |
120 action("gin_v8_snapshot_fingerprint") { | |
121 script = "//gin/fingerprint/fingerprint_v8_snapshot.py" | |
122 | |
123 snapshot_file = "$root_out_dir/snapshot_blob.bin" | |
124 natives_file = "$root_out_dir/natives_blob.bin" | |
125 output_file = "$target_gen_dir/v8_snapshot_fingerprint.cc" | |
126 | |
127 args = [ | |
128 "--snapshot_file", | |
129 rebase_path(snapshot_file, root_build_dir), | |
130 "--natives_file", | |
131 rebase_path(natives_file, root_build_dir), | |
132 "--output_file", | |
133 rebase_path(output_file, root_build_dir), | |
134 ] | |
135 inputs = [ | |
136 snapshot_file, | |
137 natives_file, | |
138 ] | |
139 outputs = [ | |
140 output_file, | |
141 ] | |
142 | |
143 deps = [ | |
144 "//v8", | |
145 ] | |
146 } | |
147 } | |
148 | |
149 executable("gin_shell") { | 114 executable("gin_shell") { |
150 sources = [ | 115 sources = [ |
151 "shell/gin_main.cc", | 116 "shell/gin_main.cc", |
152 ] | 117 ] |
153 | 118 |
154 deps = [ | 119 deps = [ |
155 ":gin", | 120 ":gin", |
156 "//base", | 121 "//base", |
157 "//base:i18n", | 122 "//base:i18n", |
158 "//build/config/sanitizers:deps", | 123 "//build/config/sanitizers:deps", |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 "shell/hello_world.js", | 187 "shell/hello_world.js", |
223 "test/file_unittests.js", | 188 "test/file_unittests.js", |
224 "test/gtest_unittests.js", | 189 "test/gtest_unittests.js", |
225 "../OWNERS", | 190 "../OWNERS", |
226 ] | 191 ] |
227 | 192 |
228 data_deps = [ | 193 data_deps = [ |
229 ":gin_shell", | 194 ":gin_shell", |
230 ] | 195 ] |
231 } | 196 } |
OLD | NEW |