mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-02 03:18:23 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
16 lines
464 B
C#
16 lines
464 B
C#
namespace Facepunch;
|
|
|
|
/// <summary>
|
|
/// macOS platform implementation
|
|
/// </summary>
|
|
internal class MacOSPlatform : Platform
|
|
{
|
|
protected override string PlatformBaseName => "osx";
|
|
|
|
public override bool CompileSolution( string solutionName, bool forceRebuild = false )
|
|
{
|
|
string buildArgs = forceRebuild ? "clean build" : "build";
|
|
return Utility.RunProcess( "xcodebuild", $"-project {solutionName}.xcodeproj -configuration Release {buildArgs}", "src" );
|
|
}
|
|
}
|