Support for placing an AOT dylib in the flx. Part of Fuchsia AOT sup… (#9240)

Support for placing an AOT dylib in the flx.  Part of Fuchsia AOT support.
This commit is contained in:
Ryan Macnak
2017-04-06 11:12:12 -07:00
committed by GitHub
parent 57ca2b5ce8
commit 249bbac362
2 changed files with 10 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ const String defaultPrivateKeyPath = 'privatekey.der';
const String _kKernelKey = 'kernel_blob.bin';
const String _kSnapshotKey = 'snapshot_blob.bin';
const String _kDylibKey = 'libapp.so';
Future<int> createSnapshot({
@required String mainPath,
@@ -114,6 +115,7 @@ Future<List<String>> assemble({
String manifestPath,
DevFSContent kernelContent,
File snapshotFile,
File dylibFile,
String outputPath,
String privateKeyPath: defaultPrivateKeyPath,
String workingDirPath,
@@ -151,6 +153,8 @@ Future<List<String>> assemble({
zipBuilder.entries[_kKernelKey] = kernelContent;
if (snapshotFile != null)
zipBuilder.entries[_kSnapshotKey] = new DevFSFileContent(snapshotFile);
if (dylibFile != null)
zipBuilder.entries[_kDylibKey] = new DevFSFileContent(dylibFile);
ensureDirectoryExists(outputPath);