| 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 # Because standalone V8 builds are not supported, assume this is part of a | 5 # Because standalone V8 builds are not supported, assume this is part of a |
| 6 # Chromium build. | 6 # Chromium build. |
| 7 import("//build/module_args/v8.gni") | 7 import("//build/module_args/v8.gni") |
| 8 | 8 |
| 9 # TODO(jochen): These will need to be user-settable to support standalone V8 | 9 # TODO(jochen): These will need to be user-settable to support standalone V8 |
| 10 # builds. | 10 # builds. |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 307 |
| 308 if (v8_use_external_startup_data) { | 308 if (v8_use_external_startup_data) { |
| 309 outputs += [ "$root_out_dir/snapshot_blob.bin" ] | 309 outputs += [ "$root_out_dir/snapshot_blob.bin" ] |
| 310 args += [ | 310 args += [ |
| 311 "--startup_blob", | 311 "--startup_blob", |
| 312 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir), | 312 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir), |
| 313 ] | 313 ] |
| 314 } | 314 } |
| 315 } | 315 } |
| 316 | 316 |
| 317 action("generate_v8_version") { | |
| 318 visibility = [ ":*" ] # Only targets in this file can depend on this. | |
| 319 | |
| 320 script = "tools/push-to-trunk/generate_version.py" | |
| 321 | |
| 322 sources = [ | |
| 323 "src/version.cc", | |
| 324 ] | |
| 325 | |
| 326 outputs = [ | |
| 327 "$target_gen_dir/version.cc" | |
| 328 ] | |
| 329 | |
| 330 args = [ | |
| 331 rebase_path("$target_gen_dir/version.cc", root_build_dir), | |
| 332 ] | |
| 333 } | |
| 334 | |
| 335 | |
| 336 ############################################################################### | 317 ############################################################################### |
| 337 # Source Sets (aka static libraries) | 318 # Source Sets (aka static libraries) |
| 338 # | 319 # |
| 339 | 320 |
| 340 source_set("v8_nosnapshot") { | 321 source_set("v8_nosnapshot") { |
| 341 visibility = [ ":*" ] # Only targets in this file can depend on this. | 322 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 342 | 323 |
| 343 deps = [ | 324 deps = [ |
| 344 ":js2c", | 325 ":js2c", |
| 345 ":js2c_experimental", | 326 ":js2c_experimental", |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 ":features", | 391 ":features", |
| 411 ":toolchain", | 392 ":toolchain", |
| 412 ] | 393 ] |
| 413 } | 394 } |
| 414 } | 395 } |
| 415 | 396 |
| 416 source_set("v8_base") { | 397 source_set("v8_base") { |
| 417 visibility = [ ":*" ] # Only targets in this file can depend on this. | 398 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 418 | 399 |
| 419 sources = [ | 400 sources = [ |
| 420 "$target_gen_dir/version.cc", | |
| 421 "src/accessors.cc", | 401 "src/accessors.cc", |
| 422 "src/accessors.h", | 402 "src/accessors.h", |
| 423 "src/allocation.cc", | 403 "src/allocation.cc", |
| 424 "src/allocation.h", | 404 "src/allocation.h", |
| 425 "src/allocation-site-scopes.cc", | 405 "src/allocation-site-scopes.cc", |
| 426 "src/allocation-site-scopes.h", | 406 "src/allocation-site-scopes.h", |
| 427 "src/allocation-tracker.cc", | 407 "src/allocation-tracker.cc", |
| 428 "src/allocation-tracker.h", | 408 "src/allocation-tracker.h", |
| 429 "src/api.cc", | 409 "src/api.cc", |
| 430 "src/api.h", | 410 "src/api.h", |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 "src/utils-inl.h", | 926 "src/utils-inl.h", |
| 947 "src/utils.cc", | 927 "src/utils.cc", |
| 948 "src/utils.h", | 928 "src/utils.h", |
| 949 "src/v8.cc", | 929 "src/v8.cc", |
| 950 "src/v8.h", | 930 "src/v8.h", |
| 951 "src/v8memory.h", | 931 "src/v8memory.h", |
| 952 "src/v8threads.cc", | 932 "src/v8threads.cc", |
| 953 "src/v8threads.h", | 933 "src/v8threads.h", |
| 954 "src/variables.cc", | 934 "src/variables.cc", |
| 955 "src/variables.h", | 935 "src/variables.h", |
| 936 "src/version.cc", |
| 956 "src/version.h", | 937 "src/version.h", |
| 957 "src/vm-state-inl.h", | 938 "src/vm-state-inl.h", |
| 958 "src/vm-state.h", | 939 "src/vm-state.h", |
| 959 "src/zone-inl.h", | 940 "src/zone-inl.h", |
| 960 "src/zone.cc", | 941 "src/zone.cc", |
| 961 "src/zone.h", | 942 "src/zone.h", |
| 962 "src/third_party/fdlibm/fdlibm.cc", | 943 "src/third_party/fdlibm/fdlibm.cc", |
| 963 "src/third_party/fdlibm/fdlibm.h", | 944 "src/third_party/fdlibm/fdlibm.h", |
| 964 ] | 945 ] |
| 965 | 946 |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 ] | 1204 ] |
| 1224 | 1205 |
| 1225 if (!is_debug) { | 1206 if (!is_debug) { |
| 1226 configs -= [ "//build/config/compiler:optimize" ] | 1207 configs -= [ "//build/config/compiler:optimize" ] |
| 1227 configs += [ "//build/config/compiler:optimize_max" ] | 1208 configs += [ "//build/config/compiler:optimize_max" ] |
| 1228 } | 1209 } |
| 1229 | 1210 |
| 1230 defines = [] | 1211 defines = [] |
| 1231 deps = [ | 1212 deps = [ |
| 1232 ":v8_libbase", | 1213 ":v8_libbase", |
| 1233 ":generate_v8_version", | |
| 1234 ] | 1214 ] |
| 1235 | 1215 |
| 1236 if (is_win) { | 1216 if (is_win) { |
| 1237 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1217 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1238 cflags = [ "/wd4267" ] | 1218 cflags = [ "/wd4267" ] |
| 1239 } | 1219 } |
| 1240 | 1220 |
| 1241 if (v8_enable_i18n_support) { | 1221 if (v8_enable_i18n_support) { |
| 1242 deps += [ "//third_party/icu" ] | 1222 deps += [ "//third_party/icu" ] |
| 1243 if (is_win) { | 1223 if (is_win) { |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1485 assert(!v8_use_external_startup_data) | 1465 assert(!v8_use_external_startup_data) |
| 1486 deps = [ | 1466 deps = [ |
| 1487 ":v8_base", | 1467 ":v8_base", |
| 1488 ":v8_nosnapshot", | 1468 ":v8_nosnapshot", |
| 1489 ] | 1469 ] |
| 1490 } | 1470 } |
| 1491 | 1471 |
| 1492 direct_dependent_configs = [ ":external_config" ] | 1472 direct_dependent_configs = [ ":external_config" ] |
| 1493 } | 1473 } |
| 1494 } | 1474 } |
| OLD | NEW |