Skip to content

Commit

Permalink
proper darwin version for headers
Browse files Browse the repository at this point in the history
  • Loading branch information
konistehrad committed Feb 6, 2024
1 parent 59ff726 commit 6348e87
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/CppParser/Bindings/CSharp/CppSharp.Parser.CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<PlatformParserFolder Condition="$(IsLinux) AND $(PlatformTarget) == arm64 AND $(UseCXX11ABI)">arm64-linux-gnu-cxx11abi</PlatformParserFolder>
<PlatformParserFolder Condition="$(IsLinux) AND $(PlatformTarget) == x64 AND !$(UseCXX11ABI)">x86_64-linux-gnu</PlatformParserFolder>
<PlatformParserFolder Condition="$(IsLinux) AND $(PlatformTarget) == arm64 AND !$(UseCXX11ABI)">arm64-linux-gnu</PlatformParserFolder>
<PlatformParserFolder Condition="$(IsMacOSX) AND $(PlatformTarget) == x64">x86_64-apple-darwin12.4.0</PlatformParserFolder>
<PlatformParserFolder Condition="$(IsMacOSX) AND $(PlatformTarget) == arm64">arm64-apple-darwin12.4.0</PlatformParserFolder>
<PlatformParserFolder Condition="$(IsMacOSX) AND $(PlatformTarget) == x64">x86_64-apple-darwin21.4.0</PlatformParserFolder>
<PlatformParserFolder Condition="$(IsMacOSX) AND $(PlatformTarget) == arm64">arm64-apple-darwin21.4.0</PlatformParserFolder>
<PlatformParserFolder Condition="$(IsWindows) AND $(PlatformTarget) == x86">i686-pc-win32-msvc</PlatformParserFolder>
<PlatformParserFolder Condition="$(IsMacOSX) AND $(PlatformTarget) == x86">i686-apple-darwin12.4.0</PlatformParserFolder>
<PlatformParserFolder Condition="$(IsMacOSX) AND $(PlatformTarget) == x86">i686-apple-darwin21.4.0</PlatformParserFolder>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/CppParser/ParserGen/ParserGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,15 @@ public static void Main(string[] args)
if (Directory.Exists(osxHeadersPath) || Platform.IsMacOS)
{
Console.WriteLine("Generating the C# parser bindings for OSX x86...");
ConsoleDriver.Run(new ParserGen(GeneratorKind.CSharp, "i686-apple-darwin12.4.0"));
ConsoleDriver.Run(new ParserGen(GeneratorKind.CSharp, "i686-apple-darwin21.4.0"));
Console.WriteLine();

Console.WriteLine("Generating the C# parser bindings for OSX x64...");
ConsoleDriver.Run(new ParserGen(GeneratorKind.CSharp, "x86_64-apple-darwin12.4.0"));
ConsoleDriver.Run(new ParserGen(GeneratorKind.CSharp, "x86_64-apple-darwin21.4.0"));
Console.WriteLine();

Console.WriteLine("Generating the C# parser bindings for OSX ARM64...");
ConsoleDriver.Run(new ParserGen(GeneratorKind.CSharp, "arm64-apple-darwin12.4.0"));
ConsoleDriver.Run(new ParserGen(GeneratorKind.CSharp, "arm64-apple-darwin21.4.0"));
Console.WriteLine();
}

Expand Down

0 comments on commit 6348e87

Please sign in to comment.