Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: BUILD.gn

Issue 843913009: Reland Auto-generate v8 version based on tags. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « .gitignore ('k') | DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
317 ############################################################################### 336 ###############################################################################
318 # Source Sets (aka static libraries) 337 # Source Sets (aka static libraries)
319 # 338 #
320 339
321 source_set("v8_nosnapshot") { 340 source_set("v8_nosnapshot") {
322 visibility = [ ":*" ] # Only targets in this file can depend on this. 341 visibility = [ ":*" ] # Only targets in this file can depend on this.
323 342
324 deps = [ 343 deps = [
325 ":js2c", 344 ":js2c",
326 ":js2c_experimental", 345 ":js2c_experimental",
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 ":features", 410 ":features",
392 ":toolchain", 411 ":toolchain",
393 ] 412 ]
394 } 413 }
395 } 414 }
396 415
397 source_set("v8_base") { 416 source_set("v8_base") {
398 visibility = [ ":*" ] # Only targets in this file can depend on this. 417 visibility = [ ":*" ] # Only targets in this file can depend on this.
399 418
400 sources = [ 419 sources = [
420 "$target_gen_dir/version.cc",
401 "src/accessors.cc", 421 "src/accessors.cc",
402 "src/accessors.h", 422 "src/accessors.h",
403 "src/allocation.cc", 423 "src/allocation.cc",
404 "src/allocation.h", 424 "src/allocation.h",
405 "src/allocation-site-scopes.cc", 425 "src/allocation-site-scopes.cc",
406 "src/allocation-site-scopes.h", 426 "src/allocation-site-scopes.h",
407 "src/allocation-tracker.cc", 427 "src/allocation-tracker.cc",
408 "src/allocation-tracker.h", 428 "src/allocation-tracker.h",
409 "src/api.cc", 429 "src/api.cc",
410 "src/api.h", 430 "src/api.h",
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 "src/utils-inl.h", 946 "src/utils-inl.h",
927 "src/utils.cc", 947 "src/utils.cc",
928 "src/utils.h", 948 "src/utils.h",
929 "src/v8.cc", 949 "src/v8.cc",
930 "src/v8.h", 950 "src/v8.h",
931 "src/v8memory.h", 951 "src/v8memory.h",
932 "src/v8threads.cc", 952 "src/v8threads.cc",
933 "src/v8threads.h", 953 "src/v8threads.h",
934 "src/variables.cc", 954 "src/variables.cc",
935 "src/variables.h", 955 "src/variables.h",
936 "src/version.cc",
937 "src/version.h", 956 "src/version.h",
938 "src/vm-state-inl.h", 957 "src/vm-state-inl.h",
939 "src/vm-state.h", 958 "src/vm-state.h",
940 "src/zone-inl.h", 959 "src/zone-inl.h",
941 "src/zone.cc", 960 "src/zone.cc",
942 "src/zone.h", 961 "src/zone.h",
943 "src/third_party/fdlibm/fdlibm.cc", 962 "src/third_party/fdlibm/fdlibm.cc",
944 "src/third_party/fdlibm/fdlibm.h", 963 "src/third_party/fdlibm/fdlibm.h",
945 ] 964 ]
946 965
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 ] 1223 ]
1205 1224
1206 if (!is_debug) { 1225 if (!is_debug) {
1207 configs -= [ "//build/config/compiler:optimize" ] 1226 configs -= [ "//build/config/compiler:optimize" ]
1208 configs += [ "//build/config/compiler:optimize_max" ] 1227 configs += [ "//build/config/compiler:optimize_max" ]
1209 } 1228 }
1210 1229
1211 defines = [] 1230 defines = []
1212 deps = [ 1231 deps = [
1213 ":v8_libbase", 1232 ":v8_libbase",
1233 ":generate_v8_version",
1214 ] 1234 ]
1215 1235
1216 if (is_win) { 1236 if (is_win) {
1217 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1237 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1218 cflags = [ "/wd4267" ] 1238 cflags = [ "/wd4267" ]
1219 } 1239 }
1220 1240
1221 if (v8_enable_i18n_support) { 1241 if (v8_enable_i18n_support) {
1222 deps += [ "//third_party/icu" ] 1242 deps += [ "//third_party/icu" ]
1223 if (is_win) { 1243 if (is_win) {
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 assert(!v8_use_external_startup_data) 1485 assert(!v8_use_external_startup_data)
1466 deps = [ 1486 deps = [
1467 ":v8_base", 1487 ":v8_base",
1468 ":v8_nosnapshot", 1488 ":v8_nosnapshot",
1469 ] 1489 ]
1470 } 1490 }
1471 1491
1472 direct_dependent_configs = [ ":external_config" ] 1492 direct_dependent_configs = [ ":external_config" ]
1473 } 1493 }
1474 } 1494 }
OLDNEW
« no previous file with comments | « .gitignore ('k') | DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698