mirror of
https://github.com/denoland/deno.git
synced 2024-11-14 16:33:45 -05:00
c9614d86c1
Fixes some sed errors introduced in c43cfe. Unfortunately moving libdeno required splitting build.rs into two parts, one for cli and one for core. I've also removed the arm64 build - it's complicating things at this re-org and we're not even testing it. I need to swing back to it and get tools/test.py running for it.
70 lines
1.2 KiB
Text
70 lines
1.2 KiB
Text
import("//build_extra/rust/rust.gni")
|
|
|
|
group("default") {
|
|
testonly = true
|
|
deps = [
|
|
":deno_core",
|
|
":deno_core_http_bench",
|
|
":deno_core_http_bench_test",
|
|
":deno_core_test",
|
|
]
|
|
}
|
|
|
|
group("deno_core_deps") {
|
|
deps = [
|
|
"libdeno:libdeno_static_lib",
|
|
"libdeno:v8",
|
|
]
|
|
}
|
|
|
|
# deno_core does not depend on flatbuffers nor tokio.
|
|
main_extern = [
|
|
"$rust_build:futures",
|
|
"$rust_build:libc",
|
|
"$rust_build:serde_json",
|
|
"$rust_build:log",
|
|
]
|
|
|
|
rust_crate("deno_core") {
|
|
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",
|
|
":deno_core",
|
|
]
|
|
if (is_win) {
|
|
http_bench_extern += [ "$rust_build:winapi" ]
|
|
}
|
|
|
|
rust_executable("deno_core_http_bench") {
|
|
source_root = "http_bench.rs"
|
|
deps = [
|
|
":deno_core_deps",
|
|
]
|
|
extern = http_bench_extern
|
|
}
|
|
|
|
rust_test("deno_core_http_bench_test") {
|
|
source_root = "http_bench.rs"
|
|
deps = [
|
|
":deno_core_deps",
|
|
]
|
|
extern = http_bench_extern
|
|
}
|