-
Notifications
You must be signed in to change notification settings - Fork 375
Expand file tree
/
Copy pathBUILD.gn
More file actions
59 lines (54 loc) · 1.34 KB
/
BUILD.gn
File metadata and controls
59 lines (54 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import("//build/config/host_byteorder.gni")
static_library("rusty_v8") {
complete_static_lib = true
sources = [
"src/binding.cc",
"src/crdtp_binding.cc",
]
deps = [
"//build/config:shared_library_deps",
"//v8:v8",
"//v8:v8_libbase",
"//v8:v8_libplatform",
"//v8/third_party/inspector_protocol:crdtp",
"//src/deno_inspector:deno_inspector_protocol",
]
configs -= [
"//build/config/compiler:default_init_stack_vars",
"//build/config/compiler:thin_archive",
]
configs += [ ":rusty_v8_config" ]
}
config("rusty_v8_config") {
configs = [
"//v8:external_config",
"//v8:toolchain",
"//v8:features",
]
cflags = []
if (is_win) {
# The `/Zl` ("omit default library name") flag makes the compiler produce
# object files that can link with both the static and dynamic CRT.
cflags += [ "/Zl" ]
}
# We need these directories in the search path to be able to include some
# internal V8 headers.
include_dirs = [
".",
"v8",
"$target_gen_dir",
"$target_gen_dir/v8",
"$target_gen_dir/src/inspector",
"$target_gen_dir/src/deno_inspector",
]
if (is_debug) {
defines = [ "DEBUG" ]
}
if (is_clang) {
cflags += [
"-fcolor-diagnostics",
"-fansi-escape-codes",
]
}
}