summaryrefslogtreecommitdiff
path: root/core/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'core/BUILD.gn')
-rw-r--r--core/BUILD.gn37
1 files changed, 37 insertions, 0 deletions
diff --git a/core/BUILD.gn b/core/BUILD.gn
new file mode 100644
index 000000000..be06a7f4b
--- /dev/null
+++ b/core/BUILD.gn
@@ -0,0 +1,37 @@
+import("//build_extra/rust/rust.gni")
+
+# 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"
+ extern = main_extern
+ deps = [
+ "../libdeno:libdeno_static_lib",
+ ]
+}
+
+rust_test("deno_core_test") {
+ source_root = "lib.rs"
+ extern = main_extern
+ deps = [
+ "../libdeno:libdeno_static_lib",
+ ]
+}
+
+rust_executable("deno_core_http_bench") {
+ source_root = "http_bench.rs"
+ extern = [
+ "$rust_build:futures",
+ "$rust_build:lazy_static",
+ "$rust_build:libc",
+ "$rust_build:log",
+ "$rust_build:tokio",
+ ":deno_core"
+ ]
+}