Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
49c40641
Commit
49c40641
authored
May 31, 2016
by
Jason Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Dart IO entry points to the snapshotter command line (#4257)
parent
b4002506
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
build_aot.dart
packages/flutter_tools/lib/src/commands/build_aot.dart
+7
-4
No files found.
packages/flutter_tools/lib/src/commands/build_aot.dart
View file @
49c40641
...
...
@@ -117,11 +117,12 @@ Future<String> _buildAotSnapshot(
return
null
;
}
String
entryPointsDir
,
genSnapshot
;
String
entryPointsDir
,
dartEntryPointsDir
,
genSnapshot
;
String
engineSrc
=
tools
.
engineSrcPath
;
if
(
engineSrc
!=
null
)
{
entryPointsDir
=
path
.
join
(
engineSrc
,
'sky'
,
'engine'
,
'bindings'
);
dartEntryPointsDir
=
path
.
join
(
engineSrc
,
'dart'
,
'runtime'
,
'bin'
);
String
engineOut
=
tools
.
getEngineArtifactsDirectory
(
platform
,
buildMode
).
path
;
if
(
platform
==
TargetPlatform
.
ios
)
{
genSnapshot
=
path
.
join
(
engineOut
,
'clang_x64'
,
'gen_snapshot'
);
...
...
@@ -132,6 +133,7 @@ Future<String> _buildAotSnapshot(
}
else
{
String
artifactsDir
=
tools
.
getEngineArtifactsDirectory
(
platform
,
buildMode
).
path
;
entryPointsDir
=
artifactsDir
;
dartEntryPointsDir
=
entryPointsDir
;
if
(
platform
==
TargetPlatform
.
ios
)
{
genSnapshot
=
path
.
join
(
artifactsDir
,
'gen_snapshot'
);
}
else
{
...
...
@@ -148,6 +150,7 @@ Future<String> _buildAotSnapshot(
String
rodataBlob
=
path
.
join
(
outputDir
.
path
,
'snapshot_aot_rodata'
);
String
vmEntryPoints
=
path
.
join
(
entryPointsDir
,
'dart_vm_entry_points.txt'
);
String
ioEntryPoints
=
path
.
join
(
dartEntryPointsDir
,
'dart_io_entries.txt'
);
String
packagesPath
=
path
.
absolute
(
Directory
.
current
.
path
,
'packages'
);
if
(!
FileSystemEntity
.
isDirectorySync
(
packagesPath
))
{
...
...
@@ -174,6 +177,7 @@ Future<String> _buildAotSnapshot(
List
<
String
>
filePaths
=
<
String
>[
genSnapshot
,
vmEntryPoints
,
ioEntryPoints
,
mojoInternalPath
,
uiPath
,
jniPath
,
...
...
@@ -226,9 +230,8 @@ Future<String> _buildAotSnapshot(
];
if
(!
interpreter
)
{
genSnapshotCmd
.
addAll
(<
String
>[
'--embedder_entry_points_manifest=
$vmEntryPoints
'
,
]);
genSnapshotCmd
.
add
(
'--embedder_entry_points_manifest=
$vmEntryPoints
'
);
genSnapshotCmd
.
add
(
'--embedder_entry_points_manifest=
$ioEntryPoints
'
);
}
switch
(
platform
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment