summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-31 11:11:10 -0700
committerGitHub <noreply@github.com>2018-10-31 11:11:10 -0700
commit198e396eadad704e96c9f37e24effc89a904f570 (patch)
treed07bd792de9023196a95374ead0520e54995dbc2 /BUILD.gn
parent21dac6646552dcacb68a0ad167723976f27b5c47 (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.gn15
1 files changed, 11 insertions, 4 deletions
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",