0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-27 17:49:12 -05:00
denoland-rusty-v8/BUILD.gn

46 lines
935 B
Text
Raw Normal View History

2019-10-31 12:03:44 -04:00
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import("//build/config/host_byteorder.gni")
2019-10-31 12:03:44 -04:00
static_library("rusty_v8") {
complete_static_lib = true
2020-04-12 18:48:47 -04:00
sources = [ "src/binding.cc" ]
2019-10-31 12:03:44 -04:00
deps = [
"//build/config:shared_library_deps",
"//v8:v8",
"//v8:v8_libbase",
"//v8:v8_libplatform",
2019-10-31 12:03:44 -04:00
]
configs -= [
"//build/config/compiler:default_init_stack_vars",
"//build/config/compiler:thin_archive",
]
configs += [ ":rusty_v8_config" ]
2019-10-31 12:03:44 -04:00
}
config("rusty_v8_config") {
configs = [
"//v8:external_config",
"//v8:toolchain",
"//v8:features",
]
2019-10-31 12:03:44 -04:00
cflags = []
# We need these directories in the search path to be able to include some
# internal V8 headers.
include_dirs = [
"v8",
"$target_gen_dir/v8",
]
2019-10-31 12:03:44 -04:00
if (is_debug) {
defines = [ "DEBUG" ]
}
if (is_clang) {
cflags += [
"-fcolor-diagnostics",
"-fansi-escape-codes",
]
}
}