diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2018-10-31 11:11:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-31 11:11:10 -0700 |
| commit | 198e396eadad704e96c9f37e24effc89a904f570 (patch) | |
| tree | d07bd792de9023196a95374ead0520e54995dbc2 /BUILD.gn | |
| parent | 21dac6646552dcacb68a0ad167723976f27b5c47 (diff) | |
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.
Diffstat (limited to 'BUILD.gn')
| -rw-r--r-- | BUILD.gn | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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", |
