From 198e396eadad704e96c9f37e24effc89a904f570 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 31 Oct 2018 11:11:10 -0700 Subject: Support cargo check (#1128) - Based on code from @qti3e and @piscisaureus in #724 and #1125 respectively. - TODO The DENO_BUILD_PATH env var must be supplied and must be an absolute path, this restriction should be removed in future work. --- BUILD.gn | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'BUILD.gn') diff --git a/BUILD.gn b/BUILD.gn index 37e89626e..cc9850778 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -124,9 +124,7 @@ rust_executable("deno") { source_root = "src/main.rs" extern = main_extern deps = [ - ":libdeno", - ":msg_rs", - ":snapshot", + ":deno_deps", ] } @@ -209,7 +207,6 @@ v8_executable("test_cc") { # Because snapshots are slow, it's important that snapshot_creator's # dependencies are minimal. static_library("libdeno") { - complete_static_lib = true sources = [ "libdeno/api.cc", "libdeno/binding.cc", @@ -224,6 +221,16 @@ static_library("libdeno") { configs += [ ":deno_config" ] } +static_library("deno_deps") { + complete_static_lib = true + public_deps = [ + ":libdeno", + ":msg_rs", + ":snapshot", + ] + configs += [ ":deno_config" ] +} + executable("snapshot_creator") { sources = [ "libdeno/snapshot_creator.cc", -- cgit v1.2.3