mirror of
				https://github.com/raylib-cs/raylib-cs
				synced 2025-11-04 05:16:42 -05:00 
			
		
		
		
	Fix build (#254)
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -84,7 +84,7 @@ jobs:
 | 
			
		||||
          dotnet-version: 6.0.x
 | 
			
		||||
 | 
			
		||||
      - name: build projects
 | 
			
		||||
        run: dotnet build -c Release
 | 
			
		||||
        run: dotnet build -c Release /p:BuildArch=${{ matrix.arch }} 
 | 
			
		||||
 | 
			
		||||
      - name: run tests
 | 
			
		||||
        run: dotnet test Raylib-cs.Tests -c Release
 | 
			
		||||
@@ -117,7 +117,7 @@ jobs:
 | 
			
		||||
          dotnet-version: 6.0.x
 | 
			
		||||
 | 
			
		||||
      - name: build projects
 | 
			
		||||
        run: dotnet build -c Release
 | 
			
		||||
        run: dotnet build -c Release /p:BuildArch=${{ matrix.arch }} 
 | 
			
		||||
 | 
			
		||||
      - name: run tests
 | 
			
		||||
        run: dotnet test Raylib-cs.Tests -c Release
 | 
			
		||||
 
 | 
			
		||||
@@ -10,18 +10,39 @@
 | 
			
		||||
  <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">
 | 
			
		||||
    <NativeExt>so</NativeExt>
 | 
			
		||||
    <NativePre>lib</NativePre>
 | 
			
		||||
    <NativeArch>x64</NativeArch>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">
 | 
			
		||||
    <NativeExt>dylib</NativeExt>
 | 
			
		||||
    <NativePre>lib</NativePre>
 | 
			
		||||
    <NativeArch Condition="$(BuildArch) == ''">x86_x64</NativeArch>
 | 
			
		||||
    <NativeArch Condition="$(BuildArch) != ''">$(BuildArch)</NativeArch>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">
 | 
			
		||||
    <NativeExt>dll</NativeExt>
 | 
			
		||||
    <NativePre>$(Configuration)/</NativePre>
 | 
			
		||||
    <NativeArch Condition="$(BuildArch) == ''">x64</NativeArch>
 | 
			
		||||
    <NativeArch Condition="$(BuildArch) != ''">$(BuildArch)</NativeArch>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup Condition="$([MSBuild]::IsOSPlatform('OSX')) AND $(NativeArch) == 'arm64'">
 | 
			
		||||
    <CMakeArgs Include="-D CMAKE_OSX_ARCHITECTURES=arm64" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup Condition="$([MSBuild]::IsOSPlatform('OSX')) AND $(NativeArch) == 'x86_64'">
 | 
			
		||||
    <CMakeArgs Include="-D CMAKE_OSX_ARCHITECTURES=x86_64" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup Condition="$([MSBuild]::IsOsPlatform('Windows')) AND $(NativeArch) == 'win32'">
 | 
			
		||||
    <CMakeArgs Include="-A win32" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup Condition="$([MSBuild]::IsOsPlatform('Windows')) AND $(NativeArch) == 'x64'">
 | 
			
		||||
    <CMakeArgs Include="-A x64" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <Content
 | 
			
		||||
      Include="$(OutputPath)native/raylib/$(NativePre)raylib.$(NativeExt)"
 | 
			
		||||
@@ -49,7 +70,7 @@
 | 
			
		||||
      DestinationFolder="$(BaseIntermediateOutputPath)"
 | 
			
		||||
      OverwriteReadOnlyFiles="true"
 | 
			
		||||
      Condition="!Exists('$(BaseIntermediateOutputPath)raylib-$(TargetRaylibTag)')" />
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    <Exec Command="cmake @(CMakeArgs, ' ') $(CMakeExtraArgs)"
 | 
			
		||||
      Condition="!Exists('$(BaseIntermediateOutputPath)native/CMakeCache.txt')" />
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user