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_overrides/v8.gni") | 5 import("//build_overrides/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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 defines = [ "GIN_IMPLEMENTATION" ] | 79 defines = [ "GIN_IMPLEMENTATION" ] |
80 | 80 |
81 public_deps = [ | 81 public_deps = [ |
82 "//base", | 82 "//base", |
83 "//v8", | 83 "//v8", |
84 ] | 84 ] |
85 deps = [ | 85 deps = [ |
86 "//base/third_party/dynamic_annotations", | 86 "//base/third_party/dynamic_annotations", |
87 "//crypto", | 87 "//crypto", |
88 ] | 88 ] |
89 if (v8_use_external_startup_data && is_win) { | |
90 public_deps += [ ":gin_v8_snapshot_fingerprint" ] | |
91 sources += [ "$target_gen_dir/v8_snapshot_fingerprint.cc" ] | |
92 defines += [ "V8_VERIFY_EXTERNAL_STARTUP_DATA" ] | |
93 } | |
94 | 89 |
95 if (is_mac) { | 90 if (is_mac) { |
96 libs = [ "CoreFoundation.framework" ] | 91 libs = [ "CoreFoundation.framework" ] |
97 } | 92 } |
98 | 93 |
99 configs += [ "//v8:external_startup_data" ] | 94 configs += [ "//v8:external_startup_data" ] |
100 } | 95 } |
101 | 96 |
102 if (v8_use_external_startup_data) { | |
103 action("gin_v8_snapshot_fingerprint") { | |
104 script = "//gin/fingerprint/fingerprint_v8_snapshot.py" | |
105 | |
106 snapshot_file = "$root_out_dir/snapshot_blob.bin" | |
107 natives_file = "$root_out_dir/natives_blob.bin" | |
108 output_file = "$target_gen_dir/v8_snapshot_fingerprint.cc" | |
109 | |
110 args = [ | |
111 "--snapshot_file", | |
112 rebase_path(snapshot_file, root_build_dir), | |
113 "--natives_file", | |
114 rebase_path(natives_file, root_build_dir), | |
115 "--output_file", | |
116 rebase_path(output_file, root_build_dir), | |
117 ] | |
118 inputs = [ | |
119 snapshot_file, | |
120 natives_file, | |
121 ] | |
122 outputs = [ | |
123 output_file, | |
124 ] | |
125 | |
126 deps = [ | |
127 "//v8", | |
128 ] | |
129 } | |
130 } | |
131 | |
132 executable("gin_shell") { | 97 executable("gin_shell") { |
133 sources = [ | 98 sources = [ |
134 "shell/gin_main.cc", | 99 "shell/gin_main.cc", |
135 ] | 100 ] |
136 | 101 |
137 deps = [ | 102 deps = [ |
138 ":gin", | 103 ":gin", |
139 "//base", | 104 "//base", |
140 "//base:i18n", | 105 "//base:i18n", |
141 "//build/config/sanitizers:deps", | 106 "//build/config/sanitizers:deps", |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 "shell/hello_world.js", | 169 "shell/hello_world.js", |
205 "test/file_unittests.js", | 170 "test/file_unittests.js", |
206 "test/gtest_unittests.js", | 171 "test/gtest_unittests.js", |
207 "../OWNERS", | 172 "../OWNERS", |
208 ] | 173 ] |
209 | 174 |
210 data_deps = [ | 175 data_deps = [ |
211 ":gin_shell", | 176 ":gin_shell", |
212 ] | 177 ] |
213 } | 178 } |
OLD | NEW |