| 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 # TODO(jochen): These will need to be user-settable to support standalone V8 | 5 # TODO(jochen): These will need to be user-settable to support standalone V8 |
| 6 # builds. | 6 # builds. |
| 7 v8_compress_startup_data = "off" | 7 v8_compress_startup_data = "off" |
| 8 v8_deprecation_warnings = false | 8 v8_deprecation_warnings = false |
| 9 v8_enable_disassembler = false | 9 v8_enable_disassembler = false |
| 10 v8_enable_gdbjit = false | 10 v8_enable_gdbjit = false |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 "DEBUG", | 159 "DEBUG", |
| 160 "OPTIMIZED_DEBUG", | 160 "OPTIMIZED_DEBUG", |
| 161 ] | 161 ] |
| 162 } | 162 } |
| 163 } | 163 } |
| 164 | 164 |
| 165 ############################################################################### | 165 ############################################################################### |
| 166 # Actions | 166 # Actions |
| 167 # | 167 # |
| 168 | 168 |
| 169 action("generate_trig_table") { | |
| 170 visibility = ":*" # Only targets in this file can depend on this. | |
| 171 | |
| 172 script = "tools/generate-trig-table.py" | |
| 173 | |
| 174 outputs = [ | |
| 175 "$target_gen_dir/trig-table.cc" | |
| 176 ] | |
| 177 | |
| 178 args = rebase_path(outputs, root_build_dir) | |
| 179 } | |
| 180 | |
| 181 action("js2c") { | 169 action("js2c") { |
| 182 visibility = ":*" # Only targets in this file can depend on this. | 170 visibility = ":*" # Only targets in this file can depend on this. |
| 183 | 171 |
| 184 script = "tools/js2c.py" | 172 script = "tools/js2c.py" |
| 185 | 173 |
| 186 # The script depends on this other script, this rule causes a rebuild if it | 174 # The script depends on this other script, this rule causes a rebuild if it |
| 187 # changes. | 175 # changes. |
| 188 source_prereqs = [ "tools/jsmin.py" ] | 176 source_prereqs = [ "tools/jsmin.py" ] |
| 189 | 177 |
| 190 sources = [ | 178 sources = [ |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 ############################################################################### | 343 ############################################################################### |
| 356 # Source Sets (aka static libraries) | 344 # Source Sets (aka static libraries) |
| 357 # | 345 # |
| 358 | 346 |
| 359 source_set("v8_nosnapshot") { | 347 source_set("v8_nosnapshot") { |
| 360 visibility = ":*" # Only targets in this file can depend on this. | 348 visibility = ":*" # Only targets in this file can depend on this. |
| 361 | 349 |
| 362 deps = [ | 350 deps = [ |
| 363 ":js2c", | 351 ":js2c", |
| 364 ":js2c_experimental", | 352 ":js2c_experimental", |
| 365 ":generate_trig_table", | |
| 366 ":v8_base", | 353 ":v8_base", |
| 367 ] | 354 ] |
| 368 | 355 |
| 369 sources = [ | 356 sources = [ |
| 370 "$target_gen_dir/libraries.cc", | 357 "$target_gen_dir/libraries.cc", |
| 371 "$target_gen_dir/experimental-libraries.cc", | 358 "$target_gen_dir/experimental-libraries.cc", |
| 372 "$target_gen_dir/trig-table.cc", | |
| 373 "src/snapshot-empty.cc", | 359 "src/snapshot-empty.cc", |
| 374 "src/snapshot-common.cc", | 360 "src/snapshot-common.cc", |
| 375 ] | 361 ] |
| 376 | 362 |
| 377 configs -= [ "//build/config/compiler:chromium_code" ] | 363 configs -= [ "//build/config/compiler:chromium_code" ] |
| 378 configs += [ "//build/config/compiler:no_chromium_code" ] | 364 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 379 configs += [ ":internal_config", ":features", ":toolchain" ] | 365 configs += [ ":internal_config", ":features", ":toolchain" ] |
| 380 } | 366 } |
| 381 | 367 |
| 382 source_set("v8_snapshot") { | 368 source_set("v8_snapshot") { |
| 383 visibility = ":*" # Only targets in this file can depend on this. | 369 visibility = ":*" # Only targets in this file can depend on this. |
| 384 | 370 |
| 385 deps = [ | 371 deps = [ |
| 386 ":js2c", | 372 ":js2c", |
| 387 ":js2c_experimental", | 373 ":js2c_experimental", |
| 388 ":generate_trig_table", | |
| 389 ":run_mksnapshot", | 374 ":run_mksnapshot", |
| 390 ":v8_base", | 375 ":v8_base", |
| 391 ] | 376 ] |
| 392 | 377 |
| 393 sources = [ | 378 sources = [ |
| 394 "$target_gen_dir/libraries.cc", | 379 "$target_gen_dir/libraries.cc", |
| 395 "$target_gen_dir/experimental-libraries.cc", | 380 "$target_gen_dir/experimental-libraries.cc", |
| 396 "$target_gen_dir/trig-table.cc", | |
| 397 "$target_gen_dir/snapshot.cc", | 381 "$target_gen_dir/snapshot.cc", |
| 398 "src/snapshot-common.cc", | 382 "src/snapshot-common.cc", |
| 399 ] | 383 ] |
| 400 | 384 |
| 401 configs -= [ "//build/config/compiler:chromium_code" ] | 385 configs -= [ "//build/config/compiler:chromium_code" ] |
| 402 configs += [ "//build/config/compiler:no_chromium_code" ] | 386 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 403 configs += [ ":internal_config", ":features", ":toolchain" ] | 387 configs += [ ":internal_config", ":features", ":toolchain" ] |
| 404 } | 388 } |
| 405 | 389 |
| 406 if (v8_use_external_startup_data) { | 390 if (v8_use_external_startup_data) { |
| 407 source_set("v8_external_snapshot") { | 391 source_set("v8_external_snapshot") { |
| 408 visibility = ":*" # Only targets in this file can depend on this. | 392 visibility = ":*" # Only targets in this file can depend on this. |
| 409 | 393 |
| 410 deps = [ | 394 deps = [ |
| 411 ":js2c", | 395 ":js2c", |
| 412 ":js2c_experimental", | 396 ":js2c_experimental", |
| 413 ":generate_trig_table", | |
| 414 ":run_mksnapshot", | 397 ":run_mksnapshot", |
| 415 ":v8_base", | 398 ":v8_base", |
| 416 ":natives_blob", | 399 ":natives_blob", |
| 417 ] | 400 ] |
| 418 | 401 |
| 419 sources = [ | 402 sources = [ |
| 420 "$target_gen_dir/trig-table.cc", | |
| 421 "src/natives-external.cc", | 403 "src/natives-external.cc", |
| 422 "src/snapshot-external.cc", | 404 "src/snapshot-external.cc", |
| 423 ] | 405 ] |
| 424 | 406 |
| 425 configs -= [ "//build/config/compiler:chromium_code" ] | 407 configs -= [ "//build/config/compiler:chromium_code" ] |
| 426 configs += [ "//build/config/compiler:no_chromium_code" ] | 408 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 427 configs += [ ":internal_config", ":features", ":toolchain" ] | 409 configs += [ ":internal_config", ":features", ":toolchain" ] |
| 428 } | 410 } |
| 429 } | 411 } |
| 430 | 412 |
| (...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1289 deps = [ | 1271 deps = [ |
| 1290 ":v8_base", | 1272 ":v8_base", |
| 1291 ":v8_nosnapshot", | 1273 ":v8_nosnapshot", |
| 1292 ] | 1274 ] |
| 1293 } | 1275 } |
| 1294 | 1276 |
| 1295 direct_dependent_configs = [ ":external_config" ] | 1277 direct_dependent_configs = [ ":external_config" ] |
| 1296 } | 1278 } |
| 1297 | 1279 |
| 1298 } | 1280 } |
| OLD | NEW |