| OLD | NEW |
| 1 # Copyright 2016 The V8 project authors. All rights reserved. | 1 # Copyright 2016 The V8 project 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 # Please keep this file in sync with cctest.gyp. | 5 # Please keep this file in sync with cctest.gyp. |
| 6 | 6 |
| 7 import("../../gni/v8.gni") | 7 import("../../gni/v8.gni") |
| 8 | 8 |
| 9 executable("cctest") { | 9 executable("cctest") { |
| 10 testonly = true | 10 testonly = true |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 "//build/win:default_exe_manifest", | 309 "//build/win:default_exe_manifest", |
| 310 ] | 310 ] |
| 311 | 311 |
| 312 if (is_component_build) { | 312 if (is_component_build) { |
| 313 # cctest can't be built against a shared library, so we | 313 # cctest can't be built against a shared library, so we |
| 314 # need to depend on the underlying static target in that case. | 314 # need to depend on the underlying static target in that case. |
| 315 deps += [ "../..:v8_maybe_snapshot" ] | 315 deps += [ "../..:v8_maybe_snapshot" ] |
| 316 } else { | 316 } else { |
| 317 deps += [ "../..:v8" ] | 317 deps += [ "../..:v8" ] |
| 318 } | 318 } |
| 319 |
| 320 if (is_win) { |
| 321 # This warning is benignly triggered by the U16 and U32 macros in |
| 322 # bytecode-utils.h. |
| 323 # C4309: 'static_cast': truncation of constant value |
| 324 cflags = [ "/wd4309" ] |
| 325 |
| 326 # Suppress warnings about importing locally defined symbols. |
| 327 if (is_component_build) { |
| 328 ldflags = [ "/ignore:4049", "/ignore:4217" ] |
| 329 } |
| 330 } |
| 319 } | 331 } |
| 320 | 332 |
| 321 action("resources") { | 333 action("resources") { |
| 322 visibility = [ ":*" ] # Only targets in this file can depend on this. | 334 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 323 | 335 |
| 324 script = "../../tools/js2c.py" | 336 script = "../../tools/js2c.py" |
| 325 | 337 |
| 326 # The script depends on this other script, this rule causes a rebuild if it | 338 # The script depends on this other script, this rule causes a rebuild if it |
| 327 # changes. | 339 # changes. |
| 328 inputs = [ | 340 inputs = [ |
| (...skipping 16 matching lines...) Expand all Loading... |
| 345 "$target_gen_dir/resources.cc", | 357 "$target_gen_dir/resources.cc", |
| 346 ] | 358 ] |
| 347 | 359 |
| 348 args = [ | 360 args = [ |
| 349 rebase_path("$target_gen_dir/resources.cc", root_build_dir), | 361 rebase_path("$target_gen_dir/resources.cc", root_build_dir), |
| 350 "TEST", | 362 "TEST", |
| 351 ] | 363 ] |
| 352 args += rebase_path(sources, root_build_dir) | 364 args += rebase_path(sources, root_build_dir) |
| 353 } | 365 } |
| 354 # TODO(machenbach): Migrate generate-bytecode-expectations. | 366 # TODO(machenbach): Migrate generate-bytecode-expectations. |
| OLD | NEW |