diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-06-04 19:35:51 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-07-08 18:18:28 -0400 |
| commit | d641782c823317a2d2f64d646a0d5b8b6c22b771 (patch) | |
| tree | a03beb0939a46333636d0de68eee052978103cfe /core/libdeno/BUILD.gn | |
| parent | 79c3439f269f1e0e24003518e363988fa4f1da33 (diff) | |
Rewrite snapshot_creator in Rust
Diffstat (limited to 'core/libdeno/BUILD.gn')
| -rw-r--r-- | core/libdeno/BUILD.gn | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/core/libdeno/BUILD.gn b/core/libdeno/BUILD.gn index 31a5be640..10ec4bf91 100644 --- a/core/libdeno/BUILD.gn +++ b/core/libdeno/BUILD.gn @@ -1,5 +1,4 @@ # Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import("//deno.gni") import("//third_party/v8/gni/v8.gni") config("deno_config") { @@ -50,8 +49,6 @@ v8_source_set("libdeno") { "deno.h", "exceptions.cc", "exceptions.h", - "file_util.cc", - "file_util.h", "internal.h", "modules.cc", ] @@ -71,39 +68,21 @@ v8_static_library("libdeno_static_lib") { configs = [ ":deno_config" ] } -v8_executable("snapshot_creator") { - sources = [ - "snapshot_creator.cc", - ] - deps = [ - ":libdeno", - ] - configs = [ ":deno_config" ] -} - v8_executable("libdeno_test") { testonly = true sources = [ - "file_util_test.cc", "libdeno_test.cc", "modules_test.cc", "test.cc", ] deps = [ ":libdeno", - ":snapshot_test", "//testing/gtest:gtest", ] data = [ - "$target_gen_dir/snapshot_test.bin", + "libdeno_test.js", ] - snapshot_path = rebase_path(data[0], root_build_dir) - defines = [ "SNAPSHOT_PATH=\"$snapshot_path\"" ] + js_path = rebase_path(data[0]) + defines = [ "JS_PATH=\"$js_path\"" ] configs = [ ":deno_config" ] } - -# Generates $target_gen_dir/snapshot_test.bin -snapshot("snapshot_test") { - testonly = true - source_root = "libdeno_test.js" -} |
