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/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
7 import("//build/config/mips.gni") | 7 import("//build/config/mips.gni") |
8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
9 | 9 |
10 # Because standalone V8 builds are not supported, assume this is part of a | 10 # Because standalone V8 builds are not supported, assume this is part of a |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 action("js2c") { | 187 action("js2c") { |
188 visibility = [ ":*" ] # Only targets in this file can depend on this. | 188 visibility = [ ":*" ] # Only targets in this file can depend on this. |
189 | 189 |
190 script = "tools/js2c.py" | 190 script = "tools/js2c.py" |
191 | 191 |
192 # The script depends on this other script, this rule causes a rebuild if it | 192 # The script depends on this other script, this rule causes a rebuild if it |
193 # changes. | 193 # changes. |
194 inputs = [ "tools/jsmin.py" ] | 194 inputs = [ "tools/jsmin.py" ] |
195 | 195 |
196 sources = [ | 196 sources = [ |
197 "src/macros.py", | 197 "src/js/macros.py", |
198 "src/messages.h", | 198 "src/messages.h", |
199 "src/prologue.js", | 199 "src/js/prologue.js", |
200 "src/runtime.js", | 200 "src/js/runtime.js", |
201 "src/v8natives.js", | 201 "src/js/v8natives.js", |
202 "src/symbol.js", | 202 "src/js/symbol.js", |
203 "src/array.js", | 203 "src/js/array.js", |
204 "src/string.js", | 204 "src/js/string.js", |
205 "src/uri.js", | 205 "src/js/uri.js", |
206 "src/math.js", | 206 "src/js/math.js", |
207 "src/third_party/fdlibm/fdlibm.js", | 207 "src/third_party/fdlibm/fdlibm.js", |
208 "src/date.js", | 208 "src/js/date.js", |
209 "src/regexp.js", | 209 "src/js/regexp.js", |
210 "src/arraybuffer.js", | 210 "src/js/arraybuffer.js", |
211 "src/typedarray.js", | 211 "src/js/typedarray.js", |
212 "src/iterator-prototype.js", | 212 "src/js/iterator-prototype.js", |
213 "src/generator.js", | 213 "src/js/generator.js", |
214 "src/object-observe.js", | 214 "src/js/object-observe.js", |
215 "src/collection.js", | 215 "src/js/collection.js", |
216 "src/weak-collection.js", | 216 "src/js/weak-collection.js", |
217 "src/collection-iterator.js", | 217 "src/js/collection-iterator.js", |
218 "src/promise.js", | 218 "src/js/promise.js", |
219 "src/messages.js", | 219 "src/js/messages.js", |
220 "src/json.js", | 220 "src/js/json.js", |
221 "src/array-iterator.js", | 221 "src/js/array-iterator.js", |
222 "src/string-iterator.js", | 222 "src/js/string-iterator.js", |
223 "src/templates.js", | 223 "src/js/templates.js", |
224 "src/harmony-array.js", | 224 "src/js/harmony-array.js", |
225 "src/harmony-typedarray.js", | 225 "src/js/harmony-typedarray.js", |
226 "src/debug/mirrors.js", | 226 "src/debug/mirrors.js", |
227 "src/debug/debug.js", | 227 "src/debug/debug.js", |
228 "src/debug/liveedit.js", | 228 "src/debug/liveedit.js", |
229 ] | 229 ] |
230 | 230 |
231 outputs = [ | 231 outputs = [ |
232 "$target_gen_dir/libraries.cc", | 232 "$target_gen_dir/libraries.cc", |
233 ] | 233 ] |
234 | 234 |
235 if (v8_enable_i18n_support) { | 235 if (v8_enable_i18n_support) { |
236 sources += [ "src/i18n.js" ] | 236 sources += [ "src/js/i18n.js" ] |
237 } | 237 } |
238 | 238 |
239 args = [ | 239 args = [ |
240 rebase_path("$target_gen_dir/libraries.cc", root_build_dir), | 240 rebase_path("$target_gen_dir/libraries.cc", root_build_dir), |
241 "CORE", | 241 "CORE", |
242 ] + rebase_path(sources, root_build_dir) | 242 ] + rebase_path(sources, root_build_dir) |
243 | 243 |
244 if (v8_use_external_startup_data) { | 244 if (v8_use_external_startup_data) { |
245 outputs += [ "$target_gen_dir/libraries.bin" ] | 245 outputs += [ "$target_gen_dir/libraries.bin" ] |
246 args += [ | 246 args += [ |
247 "--startup_blob", | 247 "--startup_blob", |
248 rebase_path("$target_gen_dir/libraries.bin", root_build_dir), | 248 rebase_path("$target_gen_dir/libraries.bin", root_build_dir), |
249 ] | 249 ] |
250 } | 250 } |
251 } | 251 } |
252 | 252 |
253 action("js2c_code_stubs") { | 253 action("js2c_code_stubs") { |
254 visibility = [ ":*" ] # Only targets in this file can depend on this. | 254 visibility = [ ":*" ] # Only targets in this file can depend on this. |
255 | 255 |
256 script = "tools/js2c.py" | 256 script = "tools/js2c.py" |
257 | 257 |
258 # The script depends on this other script, this rule causes a rebuild if it | 258 # The script depends on this other script, this rule causes a rebuild if it |
259 # changes. | 259 # changes. |
260 inputs = [ "tools/jsmin.py" ] | 260 inputs = [ "tools/jsmin.py" ] |
261 | 261 |
262 sources = [ | 262 sources = [ |
263 "src/macros.py", | 263 "src/js/macros.py", |
264 "src/messages.h", | 264 "src/messages.h", |
265 "src/code-stubs.js" | 265 "src/js/code-stubs.js" |
266 ] | 266 ] |
267 | 267 |
268 outputs = [ | 268 outputs = [ |
269 "$target_gen_dir/code-stub-libraries.cc", | 269 "$target_gen_dir/code-stub-libraries.cc", |
270 ] | 270 ] |
271 | 271 |
272 args = [ | 272 args = [ |
273 rebase_path("$target_gen_dir/code-stub-libraries.cc", | 273 rebase_path("$target_gen_dir/code-stub-libraries.cc", |
274 root_build_dir), | 274 root_build_dir), |
275 "CODE_STUB", | 275 "CODE_STUB", |
(...skipping 11 matching lines...) Expand all Loading... |
287 action("js2c_experimental") { | 287 action("js2c_experimental") { |
288 visibility = [ ":*" ] # Only targets in this file can depend on this. | 288 visibility = [ ":*" ] # Only targets in this file can depend on this. |
289 | 289 |
290 script = "tools/js2c.py" | 290 script = "tools/js2c.py" |
291 | 291 |
292 # The script depends on this other script, this rule causes a rebuild if it | 292 # The script depends on this other script, this rule causes a rebuild if it |
293 # changes. | 293 # changes. |
294 inputs = [ "tools/jsmin.py" ] | 294 inputs = [ "tools/jsmin.py" ] |
295 | 295 |
296 sources = [ | 296 sources = [ |
297 "src/macros.py", | 297 "src/js/macros.py", |
298 "src/messages.h", | 298 "src/messages.h", |
299 "src/proxy.js", | 299 "src/js/proxy.js", |
300 "src/generator.js", | 300 "src/js/generator.js", |
301 "src/harmony-atomics.js", | 301 "src/js/harmony-atomics.js", |
302 "src/harmony-array-includes.js", | 302 "src/js/harmony-array-includes.js", |
303 "src/harmony-concat-spreadable.js", | 303 "src/js/harmony-concat-spreadable.js", |
304 "src/harmony-tostring.js", | 304 "src/js/harmony-tostring.js", |
305 "src/harmony-regexp.js", | 305 "src/js/harmony-regexp.js", |
306 "src/harmony-reflect.js", | 306 "src/js/harmony-reflect.js", |
307 "src/harmony-spread.js", | 307 "src/js/harmony-spread.js", |
308 "src/harmony-object-observe.js", | 308 "src/js/harmony-object-observe.js", |
309 "src/harmony-sharedarraybuffer.js", | 309 "src/js/harmony-sharedarraybuffer.js", |
310 "src/harmony-simd.js" | 310 "src/js/harmony-simd.js" |
311 ] | 311 ] |
312 | 312 |
313 outputs = [ | 313 outputs = [ |
314 "$target_gen_dir/experimental-libraries.cc", | 314 "$target_gen_dir/experimental-libraries.cc", |
315 ] | 315 ] |
316 | 316 |
317 args = [ | 317 args = [ |
318 rebase_path("$target_gen_dir/experimental-libraries.cc", | 318 rebase_path("$target_gen_dir/experimental-libraries.cc", |
319 root_build_dir), | 319 root_build_dir), |
320 "EXPERIMENTAL", | 320 "EXPERIMENTAL", |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 } | 389 } |
390 } | 390 } |
391 | 391 |
392 action("d8_js2c") { | 392 action("d8_js2c") { |
393 visibility = [ ":*" ] # Only targets in this file can depend on this. | 393 visibility = [ ":*" ] # Only targets in this file can depend on this. |
394 | 394 |
395 script = "tools/js2c.py" | 395 script = "tools/js2c.py" |
396 | 396 |
397 inputs = [ | 397 inputs = [ |
398 "src/d8.js", | 398 "src/d8.js", |
399 "src/macros.py", | 399 "src/js/macros.py", |
400 ] | 400 ] |
401 | 401 |
402 outputs = [ | 402 outputs = [ |
403 "$target_gen_dir/d8-js.cc", | 403 "$target_gen_dir/d8-js.cc", |
404 ] | 404 ] |
405 | 405 |
406 args = rebase_path(outputs, root_build_dir) + [ "D8" ] + | 406 args = rebase_path(outputs, root_build_dir) + [ "D8" ] + |
407 rebase_path(inputs, root_build_dir) | 407 rebase_path(inputs, root_build_dir) |
408 } | 408 } |
409 | 409 |
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1822 if (!is_component_build) { | 1822 if (!is_component_build) { |
1823 sources += [ | 1823 sources += [ |
1824 "$target_gen_dir/d8-js.cc", | 1824 "$target_gen_dir/d8-js.cc", |
1825 ] | 1825 ] |
1826 } | 1826 } |
1827 if (v8_enable_i18n_support) { | 1827 if (v8_enable_i18n_support) { |
1828 deps += [ "//third_party/icu" ] | 1828 deps += [ "//third_party/icu" ] |
1829 } | 1829 } |
1830 } | 1830 } |
1831 } | 1831 } |
OLD | NEW |