Plumb --local-engine flag through to LOCAL_ENGINE in Local.xcconfig

Fixes #4186
This commit is contained in:
Todd Volkert
2016-05-25 18:37:36 -07:00
parent a24e90305f
commit 92ee807a3c

View File

@@ -70,6 +70,9 @@ void updateXcodeLocalProperties(String projectPath) {
String dartSDKPath = path.normalize(path.join(Platform.resolvedExecutable, '..', '..'));
localsBuffer.writeln('DART_SDK_PATH=$dartSDKPath');
if (tools.isLocalEngine)
localsBuffer.writeln('LOCAL_ENGINE=${tools.engineBuildPath}');
File localsFile = new File(path.join(projectPath, 'ios', '.generated', 'Local.xcconfig'));
localsFile.createSync(recursive: true);
localsFile.writeAsStringSync(localsBuffer.toString());