Chromium Code Reviews| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 334 | 334 |
| 335 if (v8_use_external_startup_data) { | 335 if (v8_use_external_startup_data) { |
| 336 outputs += [ "$root_out_dir/snapshot_blob.bin" ] | 336 outputs += [ "$root_out_dir/snapshot_blob.bin" ] |
| 337 args += [ | 337 args += [ |
| 338 "--startup_blob", | 338 "--startup_blob", |
| 339 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir) | 339 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir) |
| 340 ] | 340 ] |
| 341 } | 341 } |
| 342 } | 342 } |
| 343 | 343 |
| 344 action("generate_v8_version") { | |
| 345 visibility = [ ":*" ] # Only targets in this file can depend on this. | |
| 346 | |
| 347 script = "tools/push-to-trunk/generate_version.py" | |
| 348 | |
| 349 sources = [ | |
| 350 "src/version.cc", | |
| 351 ] | |
| 352 | |
| 353 outputs = [ | |
| 354 "$target_gen_dir/version.cc" | |
| 355 ] | |
| 356 | |
| 357 args = [ | |
| 358 rebase_path("$target_gen_dir/version.cc", root_build_dir), | |
| 359 ] | |
| 360 } | |
| 361 | |
| 344 | 362 |
| 345 ############################################################################### | 363 ############################################################################### |
| 346 # Source Sets (aka static libraries) | 364 # Source Sets (aka static libraries) |
| 347 # | 365 # |
| 348 | 366 |
| 349 source_set("v8_nosnapshot") { | 367 source_set("v8_nosnapshot") { |
| 350 visibility = [ ":*" ] # Only targets in this file can depend on this. | 368 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 351 | 369 |
| 352 deps = [ | 370 deps = [ |
| 353 ":js2c", | 371 ":js2c", |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 938 "src/utils-inl.h", | 956 "src/utils-inl.h", |
| 939 "src/utils.cc", | 957 "src/utils.cc", |
| 940 "src/utils.h", | 958 "src/utils.h", |
| 941 "src/v8.cc", | 959 "src/v8.cc", |
| 942 "src/v8.h", | 960 "src/v8.h", |
| 943 "src/v8memory.h", | 961 "src/v8memory.h", |
| 944 "src/v8threads.cc", | 962 "src/v8threads.cc", |
| 945 "src/v8threads.h", | 963 "src/v8threads.h", |
| 946 "src/variables.cc", | 964 "src/variables.cc", |
| 947 "src/variables.h", | 965 "src/variables.h", |
| 948 "src/version.cc", | 966 "$target_gen_dir/version.cc", |
|
Michael Achenbach
2015/01/07 14:01:15
I'm not so happy about the sorting. Should it just
Jakob Kummerow
2015/01/07 16:20:59
I'm not too happy about it either. Keeping version
| |
| 949 "src/version.h", | 967 "src/version.h", |
| 950 "src/vm-state-inl.h", | 968 "src/vm-state-inl.h", |
| 951 "src/vm-state.h", | 969 "src/vm-state.h", |
| 952 "src/zone-inl.h", | 970 "src/zone-inl.h", |
| 953 "src/zone.cc", | 971 "src/zone.cc", |
| 954 "src/zone.h", | 972 "src/zone.h", |
| 955 "src/third_party/fdlibm/fdlibm.cc", | 973 "src/third_party/fdlibm/fdlibm.cc", |
| 956 "src/third_party/fdlibm/fdlibm.h", | 974 "src/third_party/fdlibm/fdlibm.h", |
| 957 ] | 975 ] |
| 958 | 976 |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1210 configs -= [ "//build/config/compiler:chromium_code" ] | 1228 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1211 configs += [ "//build/config/compiler:no_chromium_code" ] | 1229 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 1212 configs += [ ":internal_config", ":features", ":toolchain" ] | 1230 configs += [ ":internal_config", ":features", ":toolchain" ] |
| 1213 | 1231 |
| 1214 if (!is_debug) { | 1232 if (!is_debug) { |
| 1215 configs -= [ "//build/config/compiler:optimize" ] | 1233 configs -= [ "//build/config/compiler:optimize" ] |
| 1216 configs += [ "//build/config/compiler:optimize_max" ] | 1234 configs += [ "//build/config/compiler:optimize_max" ] |
| 1217 } | 1235 } |
| 1218 | 1236 |
| 1219 defines = [] | 1237 defines = [] |
| 1220 deps = [ ":v8_libbase" ] | 1238 deps = [ ":v8_libbase", ":generate_v8_version" ] |
| 1221 | 1239 |
| 1222 if (is_win) { | 1240 if (is_win) { |
| 1223 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1241 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1224 cflags = [ "/wd4267" ] | 1242 cflags = [ "/wd4267" ] |
| 1225 } | 1243 } |
| 1226 | 1244 |
| 1227 if (v8_enable_i18n_support) { | 1245 if (v8_enable_i18n_support) { |
| 1228 deps += [ "//third_party/icu" ] | 1246 deps += [ "//third_party/icu" ] |
| 1229 if (is_win) { | 1247 if (is_win) { |
| 1230 deps += [ "//third_party/icu:icudata" ] | 1248 deps += [ "//third_party/icu:icudata" ] |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1459 deps = [ | 1477 deps = [ |
| 1460 ":v8_base", | 1478 ":v8_base", |
| 1461 ":v8_nosnapshot", | 1479 ":v8_nosnapshot", |
| 1462 ] | 1480 ] |
| 1463 } | 1481 } |
| 1464 | 1482 |
| 1465 direct_dependent_configs = [ ":external_config" ] | 1483 direct_dependent_configs = [ ":external_config" ] |
| 1466 } | 1484 } |
| 1467 | 1485 |
| 1468 } | 1486 } |
| OLD | NEW |