0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2025-01-13 09:33:02 -05:00
denoland-rusty-v8/BUILD.gn

70 lines
1.4 KiB
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("//v8/gni/v8.gni")
2019-10-31 12:03:44 -04:00
v8_static_library("rusty_v8") {
sources = [
2019-11-30 11:47:26 -05:00
"src/V8.cc",
"src/array_buffer.cc",
2019-12-04 08:12:27 -05:00
"src/context.cc",
2019-12-08 20:26:58 -05:00
"src/exception.cc",
2019-12-10 22:43:22 -05:00
"src/function.cc",
2019-11-27 10:14:39 -05:00
"src/handle_scope.cc",
2019-11-01 00:54:54 -04:00
"src/inspector/channel.cc",
"src/inspector/client.cc",
"src/inspector/string_buffer.cc",
"src/isolate.cc",
2019-12-09 17:11:31 -05:00
"src/json.cc",
"src/locker.cc",
2019-12-04 02:03:17 -05:00
"src/number.cc",
2019-12-09 19:14:07 -05:00
"src/object.cc",
"src/platform/mod.cc",
2019-11-30 11:47:26 -05:00
"src/platform/task.cc",
"src/primitives.cc",
2019-12-13 20:18:30 -05:00
"src/promise.cc",
2019-12-04 08:12:27 -05:00
"src/script.cc",
2019-12-04 02:03:17 -05:00
"src/string.cc",
"src/value.cc",
2019-10-31 12:03:44 -04:00
]
deps = [
":v8",
"//build/config:shared_library_deps",
2019-10-31 12:03:44 -04:00
]
configs = [ ":rusty_v8_config" ]
}
v8_source_set("v8") {
deps = [
"//v8:v8",
"//v8:v8_libbase",
"//v8:v8_libplatform",
"//v8:v8_libsampler",
2019-10-31 12:03:44 -04:00
]
configs = [ ":rusty_v8_config" ]
}
config("rusty_v8_config") {
configs = [ "//v8:external_config" ]
2019-10-31 12:03:44 -04:00
cflags = []
if (is_debug) {
defines = [ "DEBUG" ]
}
if (is_clang) {
cflags += [
"-fcolor-diagnostics",
"-fansi-escape-codes",
]
}
if (is_debug && is_clang && !is_win) {
cflags += [ "-glldb" ]
}
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" ]
}
}