Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
deno
提交
b39f4c14
D
deno
项目概览
张重言
/
deno
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
deno
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b39f4c14
编写于
12月 01, 2018
作者:
R
Ryan Dahl
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
gn snapshot template's target_name should be target
上级
f727214d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
19 deletion
+12
-19
BUILD.gn
BUILD.gn
+2
-2
libdeno/BUILD.gn
libdeno/BUILD.gn
+4
-4
libdeno/deno.gni
libdeno/deno.gni
+6
-13
未找到文件。
BUILD.gn
浏览文件 @
b39f4c14
...
...
@@ -113,8 +113,8 @@ ts_sources = [
group("deno_deps") {
deps = [
":create_snapshot_deno",
":msg_rs",
":snapshot_deno",
"libdeno:libdeno",
]
}
...
...
@@ -210,7 +210,7 @@ rust_flatbuffer("msg_rs") {
}
# Generates $target_gen_dir/snapshot_deno.bin
create_snapshot("
deno") {
snapshot("snapshot_
deno") {
js = "$target_gen_dir/bundle/main.js"
source_map = "$target_gen_dir/bundle/main.js.map"
deps = [
...
...
libdeno/BUILD.gn
浏览文件 @
b39f4c14
...
...
@@ -83,20 +83,20 @@ v8_executable("test_cc") {
"test.cc",
]
deps = [
":create_snapshot_libdeno_test",
":libdeno",
":snapshot_test",
"//testing/gtest:gtest",
]
data = [
"$target_gen_dir/snapshot_
libdeno_
test.bin",
"$target_gen_dir/snapshot_test.bin",
]
snapshot_path = rebase_path(data[0], root_build_dir)
defines = [ "SNAPSHOT_PATH=\"$snapshot_path\"" ]
configs = [ ":deno_config" ]
}
# Generates $target_gen_dir/snapshot_
libdeno_
test.bin
create_snapshot("libdeno
_test") {
# Generates $target_gen_dir/snapshot_test.bin
snapshot("snapshot
_test") {
testonly = true
js = "libdeno_test.js"
}
libdeno/deno.gni
浏览文件 @
b39f4c14
...
...
@@ -14,18 +14,8 @@ template("run_node") {
}
# Template to generate different V8 snapshots based on different runtime flags.
# Can be invoked with run_mksnapshot(<name>). The target will resolve to
# run_mksnapshot_<name>. If <name> is "default", no file suffixes will be used.
# Otherwise files are suffixed, e.g. embedded_<name>.cc and
# snapshot_blob_<name>.bin.
#
# The template exposes the variables:
# args: additional flags for mksnapshots
# embedded_suffix: a camel case suffix for method names in the embedded
# snapshot.
template("create_snapshot") {
name = target_name
compiled_action("create_snapshot_" + name) {
template("snapshot") {
compiled_action(target_name) {
forward_variables_from(invoker,
[
"testonly",
...
...
@@ -33,10 +23,13 @@ template("create_snapshot") {
])
tool = "//libdeno:snapshot_creator"
visibility = [ ":*" ] # Only targets in this file can depend on this.
snapshot_out_bin = "$target_gen_dir/
snapshot_$
name.bin"
snapshot_out_bin = "$target_gen_dir/
$target_
name.bin"
inputs = [
invoker.js,
]
# TODO(ry) source_map should not be involved at this layer. Remove the
# following.
if (defined(invoker.source_map)) {
inputs += [ invoker.source_map ]
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录