Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_43355755
engine
提交
e32531f0
E
engine
项目概览
weixin_43355755
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
e32531f0
编写于
2月 26, 2019
作者:
J
Jonah Williams
提交者:
GitHub
2月 26, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Switch flutter's dart sdk to full and add dartdevc libraries (#7968)
上级
fb1c543d
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
272 addition
and
1 deletion
+272
-1
BUILD.gn
BUILD.gn
+37
-1
lib/snapshot/libraries.json
lib/snapshot/libraries.json
+117
-0
lib/snapshot/libraries.yaml
lib/snapshot/libraries.yaml
+115
-0
tools/gn
tools/gn
+3
-0
未找到文件。
BUILD.gn
浏览文件 @
e32531f0
...
...
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("$flutter_root/common/config.gni")
import("//third_party/dart/build/dart/dart_action.gni")
# Temporary snapshot copy rules until we can use the full SDK.
_flutter_sdk_snapshots = [
...
...
@@ -36,7 +37,8 @@ group("flutter") {
"$flutter_root/frontend_server",
"//third_party/dart:create_sdk",
"$flutter_root/lib/stub_ui:stub_ui",
":dart2js_platform_files"
":dart2js_platform_files",
":flutter_dartdevc_kernel_sdk",
]
foreach(snapshot, _flutter_sdk_snapshots) {
public_deps += [ ":copy_flutter_${snapshot[0]}_snapshot" ]
...
...
@@ -108,3 +110,37 @@ copy("dart2js_platform_files") {
"$root_out_dir/flutter_patched_sdk/{{source_file_part}}",
]
}
prebuilt_dart_action("flutter_dartdevc_kernel_sdk") {
deps = [
"//third_party/dart:create_sdk",
]
packages = "//third_party/dart/.packages"
script = "//third_party/dart/pkg/dev_compiler/tool/kernel_sdk.dart"
inputs = [
"//third_party/dart/pkg/dev_compiler/tool/kernel_sdk.dart",
]
outputs = [
"$target_gen_dir/kernel/amd/dart_sdk.js",
"$target_gen_dir/kernel/amd/dart_sdk.js.map",
"$target_gen_dir/kernel/common/dart_sdk.js",
"$target_gen_dir/kernel/common/dart_sdk.js.map",
"$target_gen_dir/kernel/es6/dart_sdk.js",
"$target_gen_dir/kernel/es6/dart_sdk.js.map",
"$target_gen_dir/kernel/legacy/dart_sdk.js",
"$target_gen_dir/kernel/legacy/dart_sdk.js.map",
]
libraries_path = rebase_path("$flutter_root/lib/snapshot/libraries.json")
output_path = rebase_path("$target_gen_dir/kernel/flutter_ddc_sdk.dill")
args = [
"--output=$output_path",
"--libraries=$libraries_path",
]
}
lib/snapshot/libraries.json
浏览文件 @
e32531f0
{
"comment:0"
:
"NOTE: THIS FILE IS GENERATED. DO NOT EDIT."
,
"comment:1"
:
"Instead modify 'flutter/lib/snapshot/libraries.yaml' and follow the instructions therein."
,
"none"
:
{
"libraries"
:
{}
},
"dartdevc"
:
{
"libraries"
:
{
"async"
:
{
"patches"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/async_patch.dart"
,
"uri"
:
"../../../third_party/dart/sdk/lib/async/async.dart"
},
"_runtime"
:
{
"uri"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart"
},
"_interceptors"
:
{
"uri"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/interceptors.dart"
},
"mirrors"
:
{
"patches"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/mirrors_patch.dart"
,
"supported"
:
false
,
"uri"
:
"../../../third_party/dart/sdk/lib/mirrors/mirrors.dart"
},
"_debugger"
:
{
"uri"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/debugger.dart"
},
"io"
:
{
"patches"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart"
,
"supported"
:
false
,
"uri"
:
"../../../third_party/dart/sdk/lib/io/io.dart"
},
"_internal"
:
{
"patches"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/internal_patch.dart"
,
"uri"
:
"../../../third_party/dart/sdk/lib/internal/internal.dart"
},
"_metadata"
:
{
"uri"
:
"../../../third_party/dart/sdk/lib/html/html_common/metadata.dart"
},
"_http"
:
{
"uri"
:
"../../../third_party/dart/sdk/lib/_http/http.dart"
},
"_js_primitives"
:
{
"uri"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/js_primitives.dart"
},
"_js_helper"
:
{
"uri"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/js_helper.dart"
},
"ui"
:
{
"uri"
:
"flutter/lib/stub_ui/ui.dart"
},
"js"
:
{
"uri"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/lib/js/dart2js/js_dart2js.dart"
},
"_js_mirrors"
:
{
"uri"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/js_mirrors.dart"
},
"html_common"
:
{
"uri"
:
"../../../third_party/dart/sdk/lib/html/html_common/html_common_dart2js.dart"
},
"_native_typed_data"
:
{
"uri"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/native_typed_data.dart"
},
"core"
:
{
"patches"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/core_patch.dart"
,
"uri"
:
"../../../third_party/dart/sdk/lib/core/core.dart"
},
"js_util"
:
{
"uri"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/lib/js_util/dart2js/js_util_dart2js.dart"
},
"collection"
:
{
"patches"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/collection_patch.dart"
,
"uri"
:
"../../../third_party/dart/sdk/lib/collection/collection.dart"
},
"typed_data"
:
{
"patches"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/typed_data_patch.dart"
,
"uri"
:
"../../../third_party/dart/sdk/lib/typed_data/typed_data.dart"
},
"web_audio"
:
{
"uri"
:
"../../../third_party/dart/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart"
},
"html"
:
{
"uri"
:
"../../../third_party/dart/sdk/lib/html/dart2js/html_dart2js.dart"
},
"developer"
:
{
"patches"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/developer_patch.dart"
,
"uri"
:
"../../../third_party/dart/sdk/lib/developer/developer.dart"
},
"isolate"
:
{
"patches"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/isolate_patch.dart"
,
"supported"
:
false
,
"uri"
:
"../../../third_party/dart/sdk/lib/isolate/isolate.dart"
},
"web_gl"
:
{
"uri"
:
"../../../third_party/dart/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart"
},
"indexed_db"
:
{
"uri"
:
"../../../third_party/dart/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart"
},
"convert"
:
{
"patches"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/convert_patch.dart"
,
"uri"
:
"../../../third_party/dart/sdk/lib/convert/convert.dart"
},
"_isolate_helper"
:
{
"uri"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/isolate_helper.dart"
},
"math"
:
{
"patches"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/math_patch.dart"
,
"uri"
:
"../../../third_party/dart/sdk/lib/math/math.dart"
},
"_foreign_helper"
:
{
"uri"
:
"../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/foreign_helper.dart"
},
"web_sql"
:
{
"uri"
:
"../../../third_party/dart/sdk/lib/web_sql/dart2js/web_sql_dart2js.dart"
},
"svg"
:
{
"uri"
:
"../../../third_party/dart/sdk/lib/svg/dart2js/svg_dart2js.dart"
}
}
},
"flutter"
:
{
"libraries"
:
{
"_builtin"
:
{
...
...
lib/snapshot/libraries.yaml
浏览文件 @
e32531f0
...
...
@@ -11,6 +11,9 @@
# changing libraries, sources, and patch files. See
# https://github.com/dart-lang/sdk/issues/28836.
none
:
libraries
:
{}
flutter
:
libraries
:
_builtin
:
...
...
@@ -147,3 +150,115 @@ flutter:
vmservice_io
:
uri
:
"
../../../third_party/dart/runtime/bin/vmservice/vmservice_io.dart"
dartdevc
:
libraries
:
_runtime
:
uri
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart"
_debugger
:
uri
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/debugger.dart"
_foreign_helper
:
uri
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/foreign_helper.dart"
_http
:
uri
:
"
../../../third_party/dart/sdk/lib/_http/http.dart"
_interceptors
:
uri
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/interceptors.dart"
_internal
:
uri
:
"
../../../third_party/dart/sdk/lib/internal/internal.dart"
patches
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/internal_patch.dart"
_isolate_helper
:
uri
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/isolate_helper.dart"
_js_helper
:
uri
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/js_helper.dart"
_js_mirrors
:
uri
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/js_mirrors.dart"
_js_primitives
:
uri
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/js_primitives.dart"
_metadata
:
uri
:
"
../../../third_party/dart/sdk/lib/html/html_common/metadata.dart"
_native_typed_data
:
uri
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/private/native_typed_data.dart"
async
:
uri
:
"
../../../third_party/dart/sdk/lib/async/async.dart"
patches
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/async_patch.dart"
collection
:
uri
:
"
../../../third_party/dart/sdk/lib/collection/collection.dart"
patches
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/collection_patch.dart"
convert
:
uri
:
"
../../../third_party/dart/sdk/lib/convert/convert.dart"
patches
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/convert_patch.dart"
core
:
uri
:
"
../../../third_party/dart/sdk/lib/core/core.dart"
patches
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/core_patch.dart"
developer
:
uri
:
"
../../../third_party/dart/sdk/lib/developer/developer.dart"
patches
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/developer_patch.dart"
io
:
uri
:
"
../../../third_party/dart/sdk/lib/io/io.dart"
patches
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart"
supported
:
false
isolate
:
uri
:
"
../../../third_party/dart/sdk/lib/isolate/isolate.dart"
patches
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/isolate_patch.dart"
supported
:
false
mirrors
:
uri
:
"
../../../third_party/dart/sdk/lib/mirrors/mirrors.dart"
patches
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/mirrors_patch.dart"
supported
:
false
math
:
uri
:
"
../../../third_party/dart/sdk/lib/math/math.dart"
patches
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/math_patch.dart"
typed_data
:
uri
:
"
../../../third_party/dart/sdk/lib/typed_data/typed_data.dart"
patches
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/patch/typed_data_patch.dart"
html
:
uri
:
"
../../../third_party/dart/sdk/lib/html/dart2js/html_dart2js.dart"
html_common
:
uri
:
"
../../../third_party/dart/sdk/lib/html/html_common/html_common_dart2js.dart"
indexed_db
:
uri
:
"
../../../third_party/dart/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart"
js
:
uri
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/lib/js/dart2js/js_dart2js.dart"
js_util
:
uri
:
"
../../../third_party/dart/pkg/dev_compiler/tool/input_sdk/lib/js_util/dart2js/js_util_dart2js.dart"
svg
:
uri
:
"
../../../third_party/dart/sdk/lib/svg/dart2js/svg_dart2js.dart"
web_audio
:
uri
:
"
../../../third_party/dart/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart"
web_gl
:
uri
:
"
../../../third_party/dart/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart"
web_sql
:
uri
:
"
../../../third_party/dart/sdk/lib/web_sql/dart2js/web_sql_dart2js.dart"
ui
:
uri
:
"
flutter/lib/stub_ui/ui.dart"
tools/gn
浏览文件 @
e32531f0
...
...
@@ -227,6 +227,9 @@ def to_gn_args(args):
if
args
.
arm_float_abi
:
gn_args
[
'arm_float_abi'
]
=
args
.
arm_float_abi
# Switch flutter to full Dart SDK.
gn_args
[
'dart_platform_sdk'
]
=
False
return
gn_args
def
parse_args
(
args
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录