Skip to content

Commit 519b36d

Browse files
committed
Merge branch 'saudi/xcode-add-custom-lldb-init-file' into 'main'
Add option to set custom LLDB init file path See merge request Sharpmake/sharpmake!603
2 parents 924e567 + 8d393ab commit 519b36d

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

Sharpmake.Generators/Apple/XCodeProj.Template.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ private static class Template
607607
selectedDebuggerIdentifier = ""Xcode.DebuggerFoundation.Debugger.LLDB""
608608
selectedLauncherIdentifier = ""Xcode.DebuggerFoundation.Launcher.LLDB""
609609
launchStyle = ""0""
610+
customLLDBInitFile = ""[options.CustomLLDBInitFile]""
610611
useCustomWorkingDirectory = ""[UseCustomDir]""
611612
customWorkingDirectory = ""[options.CustomDirectory]""
612613
ignoresPersistentStateOnLaunch = ""NO""

Sharpmake.Generators/Apple/XCodeProj.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,8 @@ string projectFile
339339
options["CustomDirectory"] = Options.PathOption.Get<Options.XCode.Scheme.CustomWorkingDirectory>(activeConfiguration);
340340
var useCustomDirectory = options["CustomDirectory"] != RemoveLineTag ? "YES" : "NO";
341341

342+
options["CustomLLDBInitFile"] = Options.PathOption.Get<Options.XCode.Scheme.CustomLLDBInitFile>(activeConfiguration);
343+
342344
string targetName = $"&quot;{activeConfiguration.Target.Name}&quot;";
343345
string buildImplicitDependencies = activeConfiguration.IsFastBuild ? "NO" : "YES";
344346
bool useBuildableProductRunnableSection = true;

Sharpmake/Options.XCode.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,15 @@ public CustomWorkingDirectory(string path) : base(path)
12651265
}
12661266
}
12671267

1268+
/// <summary>
1269+
/// This option can be used to set a custom working directory
1270+
/// </summary>
1271+
public class CustomLLDBInitFile : PathOption
1272+
{
1273+
public CustomLLDBInitFile(string path) : base(path)
1274+
{
1275+
}
1276+
}
12681277
}
12691278
}
12701279
}

0 commit comments

Comments
 (0)