# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import("//v8/gni/v8.gni") v8_static_library("rusty_v8") { sources = [ "src/V8.cc", "src/array_buffer.cc", "src/handle_scope.cc", "src/inspector/channel.cc", "src/inspector/client.cc", "src/isolate.cc", "src/locker.cc", "src/platform/mod.cc", "src/platform/task.cc", "src/string_buffer.cc", "src/value.cc", ] deps = [ ":v8", "//build/config:shared_library_deps", ] configs = [ ":rusty_v8_config" ] } v8_source_set("v8") { deps = [ "//v8:v8", "//v8:v8_libbase", "//v8:v8_libplatform", "//v8:v8_libsampler", ] configs = [ ":rusty_v8_config" ] } config("rusty_v8_config") { configs = [ "//v8:external_config" ] 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" ] } }