summaryrefslogtreecommitdiff
path: root/core/libdeno
diff options
context:
space:
mode:
Diffstat (limited to 'core/libdeno')
-rw-r--r--core/libdeno/.gn64
-rw-r--r--core/libdeno/BUILD.gn14
-rw-r--r--core/libdeno/api.cc6
-rw-r--r--core/libdeno/binding.cc4
-rw-r--r--core/libdeno/buffer.h4
m---------core/libdeno/build0
l---------core/libdeno/build_overrides1
l---------core/libdeno/buildtools1
-rw-r--r--core/libdeno/exceptions.h2
-rw-r--r--core/libdeno/internal.h4
l---------core/libdeno/testing1
l---------core/libdeno/third_party1
l---------core/libdeno/tools1
l---------core/libdeno/v81
14 files changed, 87 insertions, 17 deletions
diff --git a/core/libdeno/.gn b/core/libdeno/.gn
new file mode 100644
index 000000000..e0d902808
--- /dev/null
+++ b/core/libdeno/.gn
@@ -0,0 +1,64 @@
+# This file is used by the GN meta build system to find the root of the source
+# tree and to set startup options. For documentation on the values set in this
+# file, run "gn help dotfile" at the command line.
+
+# The location of the build configuration file.
+buildconfig = "//build/config/BUILDCONFIG.gn"
+
+# These are the targets to check headers for by default. The files in targets
+# matching these patterns (see "gn help label_pattern" for format) will have
+# their includes checked for proper dependencies when you run either
+# "gn check" or "gn gen --check".
+check_targets = []
+
+default_args = {
+ # Various global chrome args that are unrelated to deno.
+ proprietary_codecs = false
+ safe_browsing_mode = 0
+ toolkit_views = false
+ use_aura = false
+ use_dbus = false
+ use_gio = false
+ use_glib = false
+ use_ozone = false
+ use_udev = false
+
+ # To disable "use_atk" and other features that we don't need.
+ is_desktop_linux = false
+
+ # TODO(ry) We may want to turn on CFI at some point. Disabling for simplicity
+ # for now. See http://clang.llvm.org/docs/ControlFlowIntegrity.html
+ is_cfi = false
+
+ # TODO(ry) Remove this so debug builds can link faster. Currently removing
+ # this breaks cargo build in debug mode in OSX.
+ is_component_build = false
+
+ # Enable Jumbo build for a faster build.
+ # https://chromium.googlesource.com/chromium/src/+/master/docs/jumbo.md
+ use_jumbo_build = true
+
+ symbol_level = 1
+ treat_warnings_as_errors = true
+ rust_treat_warnings_as_errors = true
+
+ # https://cs.chromium.org/chromium/src/docs/ccache_mac.md
+ clang_use_chrome_plugins = false
+
+ v8_deprecation_warnings = false
+ v8_enable_gdbjit = false
+ v8_enable_i18n_support = false
+ v8_enable_shared_ro_heap = false # See #2624
+ v8_experimental_extra_library_files = []
+ v8_extra_library_files = []
+ v8_imminent_deprecation_warnings = false
+ v8_monolithic = false
+ v8_untrusted_code_mitigations = false
+ v8_use_external_startup_data = false
+ v8_use_snapshot = true
+ v8_postmortem_support = true # for https://github.com/nodejs/llnode/
+
+ # We don't want to require downloading the binary executable
+ # tools/clang/dsymutil.
+ enable_dsyms = false
+}
diff --git a/core/libdeno/BUILD.gn b/core/libdeno/BUILD.gn
index 2eb0b7128..d2322c678 100644
--- a/core/libdeno/BUILD.gn
+++ b/core/libdeno/BUILD.gn
@@ -1,5 +1,5 @@
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-import("//third_party/v8/gni/v8.gni")
+import("//v8/gni/v8.gni")
group("default") {
testonly = true
@@ -11,8 +11,8 @@ group("default") {
}
config("deno_config") {
- include_dirs = [ "//third_party/v8" ] # This allows us to v8/src/base/ libraries.
- configs = [ "//third_party/v8:external_config" ]
+ include_dirs = [ "//v8" ] # This allows us to v8/src/base/ libraries.
+ configs = [ "//v8:external_config" ]
cflags = []
if (is_debug) {
@@ -39,10 +39,10 @@ config("deno_config") {
v8_source_set("v8") {
deps = [
- "//third_party/v8:v8",
- "//third_party/v8:v8_libbase",
- "//third_party/v8:v8_libplatform",
- "//third_party/v8:v8_libsampler",
+ "//v8:v8",
+ "//v8:v8_libbase",
+ "//v8:v8_libplatform",
+ "//v8:v8_libsampler",
]
configs = [ ":deno_config" ]
}
diff --git a/core/libdeno/api.cc b/core/libdeno/api.cc
index 2e926f793..54501f543 100644
--- a/core/libdeno/api.cc
+++ b/core/libdeno/api.cc
@@ -5,9 +5,9 @@
#include <iostream>
#include <string>
-#include "third_party/v8/include/libplatform/libplatform.h"
-#include "third_party/v8/include/v8.h"
-#include "third_party/v8/src/base/logging.h"
+#include "v8/include/libplatform/libplatform.h"
+#include "v8/include/v8.h"
+#include "v8/src/base/logging.h"
#include "deno.h"
#include "exceptions.h"
diff --git a/core/libdeno/binding.cc b/core/libdeno/binding.cc
index 7827cd522..911c61499 100644
--- a/core/libdeno/binding.cc
+++ b/core/libdeno/binding.cc
@@ -14,8 +14,8 @@
#include <windows.h>
#endif // _WIN32
-#include "third_party/v8/include/v8.h"
-#include "third_party/v8/src/base/logging.h"
+#include "v8/include/v8.h"
+#include "v8/src/base/logging.h"
#include "deno.h"
#include "exceptions.h"
diff --git a/core/libdeno/buffer.h b/core/libdeno/buffer.h
index 636c241b0..9a6e3acf7 100644
--- a/core/libdeno/buffer.h
+++ b/core/libdeno/buffer.h
@@ -10,8 +10,8 @@
#include <unordered_map>
#include <utility>
-#include "third_party/v8/include/v8.h"
-#include "third_party/v8/src/base/logging.h"
+#include "v8/include/v8.h"
+#include "v8/src/base/logging.h"
namespace deno {
diff --git a/core/libdeno/build b/core/libdeno/build
new file mode 160000
+Subproject 6af664c48ed657b89e99a9a8692dc15d7f7a6d9
diff --git a/core/libdeno/build_overrides b/core/libdeno/build_overrides
new file mode 120000
index 000000000..f1aca1a07
--- /dev/null
+++ b/core/libdeno/build_overrides
@@ -0,0 +1 @@
+v8/build_overrides \ No newline at end of file
diff --git a/core/libdeno/buildtools b/core/libdeno/buildtools
new file mode 120000
index 000000000..c5b1c451c
--- /dev/null
+++ b/core/libdeno/buildtools
@@ -0,0 +1 @@
+v8/buildtools \ No newline at end of file
diff --git a/core/libdeno/exceptions.h b/core/libdeno/exceptions.h
index 2c0947be2..d8852f544 100644
--- a/core/libdeno/exceptions.h
+++ b/core/libdeno/exceptions.h
@@ -3,7 +3,7 @@
#define EXCEPTIONS_H_
#include <string>
-#include "third_party/v8/include/v8.h"
+#include "v8/include/v8.h"
namespace deno {
diff --git a/core/libdeno/internal.h b/core/libdeno/internal.h
index f3789fcc3..89c746d04 100644
--- a/core/libdeno/internal.h
+++ b/core/libdeno/internal.h
@@ -9,8 +9,8 @@
#include "buffer.h"
#include "deno.h"
-#include "third_party/v8/include/v8.h"
-#include "third_party/v8/src/base/logging.h"
+#include "v8/include/v8.h"
+#include "v8/src/base/logging.h"
namespace deno {
diff --git a/core/libdeno/testing b/core/libdeno/testing
new file mode 120000
index 000000000..ed34f4824
--- /dev/null
+++ b/core/libdeno/testing
@@ -0,0 +1 @@
+v8/testing \ No newline at end of file
diff --git a/core/libdeno/third_party b/core/libdeno/third_party
new file mode 120000
index 000000000..48370cbe7
--- /dev/null
+++ b/core/libdeno/third_party
@@ -0,0 +1 @@
+v8/third_party \ No newline at end of file
diff --git a/core/libdeno/tools b/core/libdeno/tools
new file mode 120000
index 000000000..7b6c53ae9
--- /dev/null
+++ b/core/libdeno/tools
@@ -0,0 +1 @@
+v8/tools \ No newline at end of file
diff --git a/core/libdeno/v8 b/core/libdeno/v8
new file mode 120000
index 000000000..efdcb44da
--- /dev/null
+++ b/core/libdeno/v8
@@ -0,0 +1 @@
+../../third_party/v8 \ No newline at end of file