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
76460967
Commit
76460967
authored
Jan 23, 2017
by
Ryan Macnak
Committed by
GitHub
Jan 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt to refactoring of snapshot APIs in the Dart VM. (#7589)
parent
bf296f71
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
28 deletions
+28
-28
engine.version
bin/internal/engine.version
+1
-1
FlutterPlugin.groovy
...ces/android/buildSrc/src/main/groovy/FlutterPlugin.groovy
+4
-4
build_aot.dart
packages/flutter_tools/lib/src/commands/build_aot.dart
+23
-23
No files found.
bin/internal/engine.version
View file @
76460967
858e401c4d83f44634341a0e1fe2b01428fe674
6
adef37080fc7dd025c53bec5413edc353ff25b0
6
examples/hello_services/android/buildSrc/src/main/groovy/FlutterPlugin.groovy
View file @
76460967
...
...
@@ -134,10 +134,10 @@ class FlutterTask extends DefaultTask {
return
project
.
copySpec
{
from
"${intermediateDir}/app.flx"
if
(
buildMode
!=
'debug'
)
{
from
"${intermediateDir}/
snapshot_aot_instr
"
from
"${intermediateDir}/
snapshot_aot_isolate
"
from
"${intermediateDir}/
snapshot_aot_ro
data"
from
"${intermediateDir}/
snapshot_aot_vmisolate
"
from
"${intermediateDir}/
vm_snapshot_data
"
from
"${intermediateDir}/
vm_snapshot_instr
"
from
"${intermediateDir}/
isolate_snapshot_
data"
from
"${intermediateDir}/
isolate_snapshot_instr
"
}
}
}
...
...
packages/flutter_tools/lib/src/commands/build_aot.dart
View file @
76460967
...
...
@@ -19,7 +19,7 @@ import 'build.dart';
// Files generated by the ahead-of-time snapshot builder.
const
List
<
String
>
kAotSnapshotFiles
=
const
<
String
>[
'
snapshot_aot_instr'
,
'snapshot_aot_isolate'
,
'snapshot_aot_rodata'
,
'snapshot_aot_vmisolate
'
,
'
vm_snapshot_data'
,
'vm_snapshot_instr'
,
'isolate_snapshot_data'
,
'isolate_snapshot_instr
'
,
];
class
BuildAotCommand
extends
BuildSubCommand
{
...
...
@@ -144,10 +144,10 @@ Future<String> _buildAotSnapshot(
Directory
outputDir
=
fs
.
directory
(
outputPath
);
outputDir
.
createSync
(
recursive:
true
);
String
vm
IsolateSnapshot
=
path
.
join
(
outputDir
.
path
,
'snapshot_aot_vmisolate
'
);
String
isolateSnapshot
=
path
.
join
(
outputDir
.
path
,
'snapshot_aot_isolate
'
);
String
i
nstructionsBlob
=
path
.
join
(
outputDir
.
path
,
'snapshot_aot_instr
'
);
String
rodataBlob
=
path
.
join
(
outputDir
.
path
,
'snapshot_aot_rodata
'
);
String
vm
SnapshotData
=
path
.
join
(
outputDir
.
path
,
'vm_snapshot_data
'
);
String
vmSnapshotInstructions
=
path
.
join
(
outputDir
.
path
,
'vm_snapshot_instr
'
);
String
i
solateSnapshotData
=
path
.
join
(
outputDir
.
path
,
'isolate_snapshot_data
'
);
String
isolateSnapshotInstructions
=
path
.
join
(
outputDir
.
path
,
'isolate_snapshot_instr
'
);
String
vmEntryPoints
=
path
.
join
(
entryPointsDir
,
'dart_vm_entry_points.txt'
);
String
ioEntryPoints
=
path
.
join
(
dartEntryPointsDir
,
'dart_io_entries.txt'
);
...
...
@@ -209,8 +209,8 @@ Future<String> _buildAotSnapshot(
List
<
String
>
genSnapshotCmd
=
<
String
>[
genSnapshot
,
'--vm_
isolate_snapshot=
$vmIsolateSnapshot
'
,
'--isolate_snapshot
=
$isolateSnapshot
'
,
'--vm_
snapshot_data=
$vmSnapshotData
'
,
'--isolate_snapshot
_data=
$isolateSnapshotData
'
,
'--packages=
${packageMap.packagesPath}
'
,
'--url_mapping=dart:ui,
$uiPath
'
,
'--url_mapping=dart:jni,
$jniPath
'
,
...
...
@@ -227,8 +227,8 @@ Future<String> _buildAotSnapshot(
case
TargetPlatform
.
android_x64
:
case
TargetPlatform
.
android_x86
:
genSnapshotCmd
.
addAll
(<
String
>[
'--
rodata_blob=
$rodataBlob
'
,
'--i
nstructions_blob=
$instructionsBlob
'
,
'--
vm_snapshot_instructions=
$vmSnapshotInstructions
'
,
'--i
solate_snapshot_instructions=
$isolateSnapshotInstructions
'
,
'--embedder_entry_points_manifest=
$vmEntryPointsAndroid
'
,
'--no-sim-use-hardfp'
,
'--no-use-integer-division'
,
// Not supported by the Pixel in 32-bit mode.
...
...
@@ -264,34 +264,34 @@ Future<String> _buildAotSnapshot(
printStatus
(
'Building app.dylib...'
);
// These names are known to from the engine.
String
kVm
IsolateSnapshot
=
'kVmIsolateSnapshot
'
;
String
kIsolateSnapshot
=
'kIsolateSnapshot
'
;
String
kVm
SnapshotData
=
'kDartVmSnapshotData
'
;
String
kIsolateSnapshot
Data
=
'kDartIsolateSnapshotData
'
;
String
kVmIsolateSnapshotC
=
path
.
join
(
outputDir
.
path
,
'
$kVmIsolateSnapshot
.c'
);
String
kIsolateSnapshotC
=
path
.
join
(
outputDir
.
path
,
'
$kIsolateSnapshot
.c'
);
String
kVmSnapshotDataC
=
path
.
join
(
outputDir
.
path
,
'
$kVmSnapshotData
.c'
);
String
kIsolateSnapshotDataC
=
path
.
join
(
outputDir
.
path
,
'
$kIsolateSnapshotData
.c'
);
String
kVmSnapshotDataO
=
path
.
join
(
outputDir
.
path
,
'
$kVmSnapshotData
.o'
);
String
kIsolateSnapshotDataO
=
path
.
join
(
outputDir
.
path
,
'
$kIsolateSnapshotData
.o'
);
String
assemblyO
=
path
.
join
(
outputDir
.
path
,
'snapshot_assembly.o'
);
String
kVmIsolateSnapshotO
=
path
.
join
(
outputDir
.
path
,
'
$kVmIsolateSnapshot
.o'
);
String
kIsolateSnapshotO
=
path
.
join
(
outputDir
.
path
,
'
$kIsolateSnapshot
.o'
);
List
<
String
>
commonBuildOptions
=
<
String
>[
'-arch'
,
'arm64'
,
'-miphoneos-version-min=8.0'
];
if
(
interpreter
)
{
runCheckedSync
(<
String
>[
'mv'
,
vm
IsolateSnapshot
,
path
.
join
(
outputDir
.
path
,
kVmIsolateSnapshot
)]);
runCheckedSync
(<
String
>[
'mv'
,
isolateSnapshot
,
path
.
join
(
outputDir
.
path
,
kIsolateSnapshot
)]);
runCheckedSync
(<
String
>[
'mv'
,
vm
SnapshotData
,
path
.
join
(
outputDir
.
path
,
kVmSnapshotData
)]);
runCheckedSync
(<
String
>[
'mv'
,
isolateSnapshot
Data
,
path
.
join
(
outputDir
.
path
,
kIsolateSnapshotData
)]);
runCheckedSync
(<
String
>[
'xxd'
,
'--include'
,
kVm
IsolateSnapshot
,
path
.
basename
(
kVmIsolateSnapshot
C
)
'xxd'
,
'--include'
,
kVm
SnapshotData
,
path
.
basename
(
kVmSnapshotData
C
)
],
workingDirectory:
outputDir
.
path
);
runCheckedSync
(<
String
>[
'xxd'
,
'--include'
,
kIsolateSnapshot
,
path
.
basename
(
kIsolateSnapshot
C
)
'xxd'
,
'--include'
,
kIsolateSnapshot
Data
,
path
.
basename
(
kIsolateSnapshotData
C
)
],
workingDirectory:
outputDir
.
path
);
runCheckedSync
(<
String
>[
'xcrun'
,
'cc'
]
..
addAll
(
commonBuildOptions
)
..
addAll
(<
String
>[
'-c'
,
kVm
IsolateSnapshotC
,
'-o'
,
kVmIsolateSnapshot
O
]));
..
addAll
(<
String
>[
'-c'
,
kVm
SnapshotDataC
,
'-o'
,
kVmSnapshotData
O
]));
runCheckedSync
(<
String
>[
'xcrun'
,
'cc'
]
..
addAll
(
commonBuildOptions
)
..
addAll
(<
String
>[
'-c'
,
kIsolateSnapshot
C
,
'-o'
,
kIsolateSnapshot
O
]));
..
addAll
(<
String
>[
'-c'
,
kIsolateSnapshot
DataC
,
'-o'
,
kIsolateSnapshotData
O
]));
}
else
{
runCheckedSync
(<
String
>[
'xcrun'
,
'cc'
]
..
addAll
(
commonBuildOptions
)
...
...
@@ -310,8 +310,8 @@ Future<String> _buildAotSnapshot(
'-o'
,
appSo
,
]);
if
(
interpreter
)
{
linkCommand
.
add
(
kVm
IsolateSnapshot
O
);
linkCommand
.
add
(
kIsolateSnapshotO
);
linkCommand
.
add
(
kVm
SnapshotData
O
);
linkCommand
.
add
(
kIsolateSnapshot
Data
O
);
}
else
{
linkCommand
.
add
(
assemblyO
);
}
...
...
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