Copy the local engine repo in the output directory (#49276)

This commit is contained in:
Emmanuel Garcia
2020-01-22 10:57:14 -08:00
committed by GitHub
parent 10fb018247
commit 2b8c75d55c
3 changed files with 35 additions and 1 deletions

View File

@@ -546,6 +546,19 @@ Future<void> buildGradleAar({
command.add('-Plocal-engine-repo=${localEngineRepo.path}');
command.add('-Plocal-engine-build-mode=${androidBuildInfo.buildInfo.modeName}');
command.add('-Plocal-engine-out=${localEngineArtifacts.engineOutPath}');
// Copy the local engine repo in the output directory.
try {
fsUtils.copyDirectorySync(
localEngineRepo,
getRepoDirectory(outputDirectory),
);
} on FileSystemException catch(_) {
throwToolExit(
'Failed to copy the local engine ${localEngineRepo.path} repo '
'in ${outputDirectory.path}'
);
}
}
command.add(aarTask);