move v8 to third_party/v8 (#322)

This commit is contained in:
Yoshiya Hinosawa 2018-07-03 17:15:32 +09:00 committed by Ryan Dahl
parent 6d288b63cd
commit 6f7ca760b8
23 changed files with 45 additions and 36 deletions

View File

@ -19,7 +19,7 @@ solutions = [{
}
}, {
'url': 'https://github.com/ry/protobuf_chromium.git',
'name': 'third_party/protobuf',
'name': 'protobuf',
}, {
'url':
'https://chromium.googlesource.com/chromium/src/tools/protoc_wrapper@9af82fef8cb9ca3ccc13e2ed958f58f2c21f449b',
@ -29,15 +29,15 @@ solutions = [{
'url':
'https://chromium.googlesource.com/chromium/src/third_party/zlib@39b4a6260702da4c089eca57136abf40a39667e9',
'name':
'third_party/zlib'
'zlib'
}, {
'url':
'https://github.com/cpplint/cpplint.git@a33992f68f36fcaa6d0f531a25012a4c474d3542',
'name':
'third_party/cpplint'
'cpplint'
}, {
'url':
'https://github.com/rust-lang/libc.git@8a85d662b90c14d458bc4ae9521a05564e20d7ae',
'name':
'third_party/rust_crates/libc'
'rust_crates/libc'
}]

13
.gitignore vendored
View File

@ -1,9 +1,16 @@
# build
/out/
# npm deps
node_modules
/v8/
/tools/protoc_wrapper/
# git deps
/third_party/v8/
/third_party/tools/protoc_wrapper/
/third_party/cpplint/
/third_party/protobuf/
/third_party/zlib/
/third_party/rust_crates/libc/
/.gclient_entries
# gclient files
/third_party/.gclient_entries

View File

@ -29,7 +29,7 @@ install:
- export PATH=$HOME/.cargo/bin:$PATH
- rustc --version
- (cd js; yarn)
- gclient sync -j2 --no-history
- (cd third_party; gclient sync -j2 --no-history)
# ccache needs the custom LLVM to be in PATH and other variables.
- export PATH=`pwd`/third_party/llvm-build/Release+Asserts/bin:$PATH
- export CCACHE_CPP2=yes

View File

@ -1,11 +1,11 @@
import("//third_party/protobuf/proto_library.gni")
import("//v8/gni/v8.gni")
import("//v8/snapshot_toolchain.gni")
import("//third_party/v8/gni/v8.gni")
import("//third_party/v8/snapshot_toolchain.gni")
import("deno.gni")
config("deno_config") {
include_dirs = [ "v8" ] # This allows us to v8/src/base/ libraries.
configs = [ "v8:external_config" ]
include_dirs = [ "third_party/v8" ] # This allows us to v8/src/base/ libraries.
configs = [ "third_party/v8:external_config" ]
}
rust_executable("deno") {
@ -73,7 +73,7 @@ v8_source_set("deno_nosnapshot") {
"src/include/deno.h",
]
deps = [
"v8:v8_monolith",
"third_party/v8:v8_monolith",
]
configs = [ ":deno_config" ]
}

View File

@ -74,8 +74,8 @@ You need [rust](https://www.rust-lang.org/en-US/install.html) installed.
You need [ccache](https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/ccache) installed.
Fetch packages and v8:
``` bash
gclient sync --no-history
```bash
(cd third_party; gclient sync --no-history)
```
Install the javascript deps.

2
build
View File

@ -1 +1 @@
v8/build
third_party/v8/build

View File

@ -1 +1 @@
v8/build_overrides
third_party/v8/build_overrides

View File

@ -1 +1 @@
v8/buildtools
third_party/v8/buildtools

View File

@ -26,7 +26,7 @@ template("create_snapshot") {
])
visibility = [ ":*" ] # Only targets in this file can depend on this.
deps += [ ":snapshot_creator" ]
script = "v8/tools/run.py"
script = "third_party/v8/tools/run.py"
data = []
exe = rebase_path(get_label_info(":snapshot_creator", "root_out_dir") +
"/snapshot_creator")
@ -66,7 +66,7 @@ template("rust_crate") {
]
outputs = []
depfile = "$target_gen_dir/$target_name.d"
script = "v8/tools/run.py"
script = "third_party/v8/tools/run.py"
args = [
"rustc",

View File

@ -24,9 +24,9 @@ IN THE SOFTWARE.
#include <string.h>
#include <string>
#include "v8/include/libplatform/libplatform.h"
#include "v8/include/v8.h"
#include "v8/src/base/logging.h"
#include "third_party/v8/include/libplatform/libplatform.h"
#include "third_party/v8/include/v8.h"
#include "third_party/v8/src/base/logging.h"
#include "./deno_internal.h"
#include "include/deno.h"

View File

@ -5,7 +5,7 @@
#include <string>
#include "include/deno.h"
#include "v8/include/v8.h"
#include "third_party/v8/include/v8.h"
extern "C" {
// deno_s = Wrapped Isolate.

View File

@ -44,7 +44,7 @@ class StartupDataCppWriter {
private:
void WritePrefix() {
file_ << "// Autogenerated snapshot file. Do not edit.\n\n";
file_ << "#include \"v8/include/v8.h\"\n\n";
file_ << "#include \"third_party/v8/include/v8.h\"\n\n";
file_ << "namespace deno { \n\n";
}

View File

@ -5,8 +5,8 @@
#include <string.h>
#include <string>
#include "v8/include/v8.h"
#include "v8/src/base/logging.h"
#include "third_party/v8/include/v8.h"
#include "third_party/v8/src/base/logging.h"
#include "./deno_internal.h"
#include "include/deno.h"

View File

@ -12,7 +12,7 @@
#include "./msg.pb.h"
#include "include/deno.h"
#include "v8/src/base/logging.h"
#include "third_party/v8/src/base/logging.h"
static char** global_argv;
static int global_argc;

View File

@ -4,8 +4,8 @@
#include "deno_internal.h"
#include "file_util.h"
#include "include/deno.h"
#include "v8/include/v8.h"
#include "v8/src/base/logging.h"
#include "third_party/v8/include/v8.h"
#include "third_party/v8/src/base/logging.h"
namespace deno {

View File

@ -1 +1 @@
v8/testing
third_party/v8/testing

1
third_party/.gclient vendored Symbolic link
View File

@ -0,0 +1 @@
../.gclient

View File

@ -1 +1 @@
../v8/third_party/googletest
v8/third_party/googletest

2
third_party/jinja2 vendored
View File

@ -1 +1 @@
../v8/third_party/jinja2
v8/third_party/jinja2

View File

@ -1 +1 @@
../v8/third_party/llvm-build
v8/third_party/llvm-build

View File

@ -1 +1 @@
../v8/third_party/markupsafe
v8/third_party/markupsafe

View File

@ -1 +1 @@
../v8/tools/clang
../third_party/v8/tools/clang

1
tools/protoc_wrapper Symbolic link
View File

@ -0,0 +1 @@
../third_party/tools/protoc_wrapper