Commit 3837a6e 1 parent 6ffdbdb commit 3837a6e Copy full SHA for 3837a6e
File tree 3 files changed +17
-1
lines changed
Sharpmake.Generators/Apple
3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -607,7 +607,8 @@ private static class Template
607
607
selectedDebuggerIdentifier = ""Xcode.DebuggerFoundation.Debugger.LLDB""
608
608
selectedLauncherIdentifier = ""Xcode.DebuggerFoundation.Launcher.LLDB""
609
609
launchStyle = ""0""
610
- useCustomWorkingDirectory = ""NO""
610
+ useCustomWorkingDirectory = ""[UseCustomDir]""
611
+ customWorkingDirectory = ""[options.CustomDirectory]""
611
612
ignoresPersistentStateOnLaunch = ""NO""
612
613
debugDocumentVersioning = ""YES""
613
614
enableGPUFrameCaptureMode = ""[options.EnableGpuFrameCaptureMode]""
Original file line number Diff line number Diff line change @@ -336,6 +336,9 @@ string projectFile
336
336
Options . Option ( Options . XCode . Scheme . MetalAPIValidation . Disable , ( ) => options [ "MetalAPIValidation" ] = "1" )
337
337
) ;
338
338
339
+ options [ "CustomDirectory" ] = Options . PathOption . Get < Options . XCode . Scheme . CustomWorkingDirectory > ( activeConfiguration ) ;
340
+ var useCustomDirectory = options [ "CustomDirectory" ] != RemoveLineTag ? "YES" : "NO" ;
341
+
339
342
string targetName = $ ""{ activeConfiguration . Target . Name } "";
340
343
string buildImplicitDependencies = activeConfiguration . IsFastBuild ? "NO" : "YES" ;
341
344
bool useBuildableProductRunnableSection = true ;
@@ -375,6 +378,7 @@ string projectFile
375
378
using ( fileGenerator . Declare ( "options" , options ) )
376
379
using ( fileGenerator . Declare ( "testableElements" , testableElements ) )
377
380
using ( fileGenerator . Declare ( "DefaultTarget" , targetName ) )
381
+ using ( fileGenerator . Declare ( "UseCustomDir" , useCustomDirectory ) )
378
382
using ( fileGenerator . Declare ( "commandLineArguments" , commandLineArguments ) )
379
383
using ( fileGenerator . Declare ( "environmentVariables" , environmentVariablesBuilder ) )
380
384
using ( fileGenerator . Declare ( "buildImplicitDependencies" , buildImplicitDependencies ) )
Original file line number Diff line number Diff line change @@ -1254,6 +1254,17 @@ public CustomRunnablePath(string path) : base(path)
1254
1254
{
1255
1255
}
1256
1256
}
1257
+
1258
+ /// <summary>
1259
+ /// This option can be used to set a custom working directory
1260
+ /// </summary>
1261
+ public class CustomWorkingDirectory : PathOption
1262
+ {
1263
+ public CustomWorkingDirectory ( string path ) : base ( path )
1264
+ {
1265
+ }
1266
+ }
1267
+
1257
1268
}
1258
1269
}
1259
1270
}
You can’t perform that action at this time.
0 commit comments