1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00
denoland-deno/core/BUILD.gn

71 lines
1.2 KiB
Text
Raw Normal View History

import("//build_extra/rust/rust.gni")
group("default") {
testonly = true
deps = [
2019-03-30 19:30:40 -04:00
":deno",
":deno_core_http_bench",
":deno_core_http_bench_test",
":deno_core_test",
]
}
group("deno_core_deps") {
deps = [
"libdeno:libdeno_static_lib",
"libdeno:v8",
]
}
2019-03-30 19:30:40 -04:00
# deno does not depend on flatbuffers nor tokio.
main_extern = [
"$rust_build:futures",
"$rust_build:libc",
"$rust_build:serde_json",
"$rust_build:log",
]
2019-03-30 19:30:40 -04:00
rust_crate("deno") {
source_root = "lib.rs"
deps = [
":deno_core_deps",
]
extern = main_extern
}
rust_test("deno_core_test") {
source_root = "lib.rs"
deps = [
":deno_core_deps",
]
extern = main_extern
}
http_bench_extern = [
"$rust_build:futures",
"$rust_build:lazy_static",
"$rust_build:libc",
"$rust_build:log",
"$rust_build:tokio",
2019-03-30 19:30:40 -04:00
":deno",
]
if (is_win) {
http_bench_extern += [ "$rust_build:winapi" ]
}
rust_executable("deno_core_http_bench") {
source_root = "examples/http_bench.rs"
deps = [
":deno_core_deps",
]
extern = http_bench_extern
}
rust_test("deno_core_http_bench_test") {
source_root = "examples/http_bench.rs"
deps = [
":deno_core_deps",
]
extern = http_bench_extern
}