1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-01 16:51:13 -05:00
denoland-deno/core/BUILD.gn

92 lines
1.5 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",
2019-06-04 13:35:51 -04:00
":snapshot_creator",
]
}
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_rlib = [
"futures",
"libc",
"serde_json",
"log",
2019-06-12 19:55:59 -04:00
"url",
]
rust_rlib("deno") {
source_root = "lib.rs"
deps = [
":deno_core_deps",
]
extern_rlib = main_extern_rlib
}
rust_test("deno_core_test") {
source_root = "lib.rs"
deps = [
":deno_core_deps",
]
extern_rlib = main_extern_rlib
}
http_bench_extern = [
{
label = ":deno"
crate_name = "deno"
crate_type = "rlib"
},
]
http_bench_extern_rlib = [
"futures",
"lazy_static",
"libc",
"log",
"tokio",
]
if (is_win) {
http_bench_extern_rlib += [ "winapi" ]
}
rust_executable("deno_core_http_bench") {
source_root = "examples/http_bench.rs"
deps = [
":deno_core_deps",
]
extern = http_bench_extern
extern_rlib = http_bench_extern_rlib
}
rust_test("deno_core_http_bench_test") {
source_root = "examples/http_bench.rs"
deps = [
":deno_core_deps",
]
extern = http_bench_extern
extern_rlib = http_bench_extern_rlib
}
2019-06-04 13:35:51 -04:00
rust_executable("snapshot_creator") {
source_root = "snapshot_creator.rs"
extern = [
{
label = ":deno"
crate_name = "deno"
crate_type = "rlib"
},
]
}