mirror of
https://github.com/denoland/deno.git
synced 2025-10-03 15:44:36 +00:00
gitignore vim .swp files
This commit is contained in:
parent
60a3b98ba0
commit
65cce40a89
6 changed files with 55 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
||||||
# build
|
# build
|
||||||
|
*.swp
|
||||||
/out/
|
/out/
|
||||||
/target/
|
/target/
|
||||||
*.pyc
|
*.pyc
|
||||||
|
|
3
.gn
3
.gn
|
@ -30,7 +30,6 @@ default_args = {
|
||||||
# for now. See http://clang.llvm.org/docs/ControlFlowIntegrity.html
|
# for now. See http://clang.llvm.org/docs/ControlFlowIntegrity.html
|
||||||
is_cfi = false
|
is_cfi = false
|
||||||
|
|
||||||
is_component_build = false
|
|
||||||
symbol_level = 1
|
symbol_level = 1
|
||||||
treat_warnings_as_errors = true
|
treat_warnings_as_errors = true
|
||||||
rust_treat_warnings_as_errors = true
|
rust_treat_warnings_as_errors = true
|
||||||
|
@ -44,7 +43,7 @@ default_args = {
|
||||||
v8_experimental_extra_library_files = []
|
v8_experimental_extra_library_files = []
|
||||||
v8_extra_library_files = []
|
v8_extra_library_files = []
|
||||||
v8_imminent_deprecation_warnings = false
|
v8_imminent_deprecation_warnings = false
|
||||||
v8_monolithic = true
|
v8_monolithic = false
|
||||||
v8_untrusted_code_mitigations = false
|
v8_untrusted_code_mitigations = false
|
||||||
v8_use_external_startup_data = false
|
v8_use_external_startup_data = false
|
||||||
v8_use_snapshot = true
|
v8_use_snapshot = true
|
||||||
|
|
44
BUILD.gn
44
BUILD.gn
|
@ -218,11 +218,23 @@ v8_executable("test_cc") {
|
||||||
configs = [ ":deno_config" ]
|
configs = [ ":deno_config" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
v8_static_library("v8") {
|
||||||
|
public_deps = [
|
||||||
|
"third_party/v8:v8",
|
||||||
|
"third_party/v8:v8_libbase",
|
||||||
|
"third_party/v8:v8_libplatform",
|
||||||
|
"third_party/v8:v8_libsampler",
|
||||||
|
"//build/win:default_exe_manifest",
|
||||||
|
]
|
||||||
|
configs = [ ":deno_config" ]
|
||||||
|
}
|
||||||
|
|
||||||
# Only functionality needed for libdeno_test and snapshot_creator
|
# Only functionality needed for libdeno_test and snapshot_creator
|
||||||
# In particular no flatbuffers, no assets, no rust, no msg handlers.
|
# In particular no flatbuffers, no assets, no rust, no msg handlers.
|
||||||
# Because snapshots are slow, it's important that snapshot_creator's
|
# Because snapshots are slow, it's important that snapshot_creator's
|
||||||
# dependencies are minimal.
|
# dependencies are minimal.
|
||||||
static_library("libdeno") {
|
v8_static_library("libdeno") {
|
||||||
|
configs = [ ":deno_config" ]
|
||||||
sources = [
|
sources = [
|
||||||
"libdeno/api.cc",
|
"libdeno/api.cc",
|
||||||
"libdeno/binding.cc",
|
"libdeno/binding.cc",
|
||||||
|
@ -231,30 +243,44 @@ static_library("libdeno") {
|
||||||
"libdeno/file_util.h",
|
"libdeno/file_util.h",
|
||||||
"libdeno/internal.h",
|
"libdeno/internal.h",
|
||||||
]
|
]
|
||||||
public_deps = [
|
if (!use_prebuilt_v8) {
|
||||||
"third_party/v8:v8_monolith",
|
public_deps = [
|
||||||
]
|
":v8",
|
||||||
configs += [ ":deno_config" ]
|
]
|
||||||
|
} else {
|
||||||
|
# TODO(ry) It would be nice to have a standalone target for the prebuilt
|
||||||
|
# library that could simply be added to the deps here, but it wasn't
|
||||||
|
# obvious how to accomplish that in gn.
|
||||||
|
if (is_mac) {
|
||||||
|
libs = [ "//prebuilt/mac/libv8.a" ]
|
||||||
|
} else if (is_linux) {
|
||||||
|
libs = [ "//prebuilt/linux64/libv8.a" ]
|
||||||
|
} else if (is_win) {
|
||||||
|
libs = [ "//prebuilt/win/v8.lib" ]
|
||||||
|
} else {
|
||||||
|
assert(false, "We don't have prebuilt binaries for this platform yet.")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static_library("deno_deps") {
|
v8_static_library("deno_deps") {
|
||||||
complete_static_lib = true
|
complete_static_lib = true
|
||||||
public_deps = [
|
public_deps = [
|
||||||
":libdeno",
|
":libdeno",
|
||||||
":msg_rs",
|
":msg_rs",
|
||||||
":snapshot",
|
":snapshot",
|
||||||
]
|
]
|
||||||
configs += [ ":deno_config" ]
|
configs = [ ":deno_config" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
executable("snapshot_creator") {
|
v8_executable("snapshot_creator") {
|
||||||
sources = [
|
sources = [
|
||||||
"libdeno/snapshot_creator.cc",
|
"libdeno/snapshot_creator.cc",
|
||||||
]
|
]
|
||||||
deps = [
|
deps = [
|
||||||
":libdeno",
|
":libdeno",
|
||||||
]
|
]
|
||||||
configs += [ ":deno_config" ]
|
configs = [ ":deno_config" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
# Generates the core TypeScript type library for deno that will be
|
# Generates the core TypeScript type library for deno that will be
|
||||||
|
|
11
Docs.md
11
Docs.md
|
@ -332,6 +332,17 @@ We use Flatbuffers to define common structs and enums between TypeScript and
|
||||||
Rust. These common data structures are defined in
|
Rust. These common data structures are defined in
|
||||||
https://github.com/denoland/deno/blob/master/src/msg.fbs
|
https://github.com/denoland/deno/blob/master/src/msg.fbs
|
||||||
|
|
||||||
|
### Internal: Updating prebuilt binaries
|
||||||
|
|
||||||
|
V8 takes a long time to build - on the order of an hour. We use pre-built V8
|
||||||
|
libraries stored in a Google Storage bucket instead of rebuilding it from
|
||||||
|
scratch each time. Our build system is however setup such that we can build V8
|
||||||
|
as part of the Deno build if necessary (useful for debugging or changing various
|
||||||
|
configurations in V8, or building the pre-built binaries themselves). To control
|
||||||
|
whether to use a pre-built V8 or not use the `use_v8_prebuilt` GN argument.
|
||||||
|
|
||||||
|
Use `tools/gcloud_upload.py` to upload new prebuilt files.
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
See
|
See
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
|
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
|
||||||
import("//build/compiled_action.gni")
|
import("//build/compiled_action.gni")
|
||||||
|
|
||||||
|
declare_args() {
|
||||||
|
# Use prebuilt V8 libraries from //prebuilt/
|
||||||
|
use_prebuilt_v8 = true
|
||||||
|
}
|
||||||
|
|
||||||
template("run_node") {
|
template("run_node") {
|
||||||
action(target_name) {
|
action(target_name) {
|
||||||
forward_variables_from(invoker, "*")
|
forward_variables_from(invoker, "*")
|
||||||
|
|
|
@ -7,6 +7,7 @@ import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
from distutils.spawn import find_executable
|
from distutils.spawn import find_executable
|
||||||
|
import prebuilt
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -18,6 +19,7 @@ def main():
|
||||||
third_party.download_gn()
|
third_party.download_gn()
|
||||||
third_party.download_clang_format()
|
third_party.download_clang_format()
|
||||||
third_party.download_clang()
|
third_party.download_clang()
|
||||||
|
prebuilt.load()
|
||||||
third_party.maybe_download_sysroot()
|
third_party.maybe_download_sysroot()
|
||||||
|
|
||||||
write_lastchange()
|
write_lastchange()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue