This repository has been archived by the owner on Mar 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added build output for .NET Core apps and UWP apps for the core Sharp…
…DX library. Refactored some of the common properties into MSBuild .props and .targets files.
- Loading branch information
1 parent
4b827d7
commit d330c38
Showing
6 changed files
with
51 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<DebugType>full</DebugType> | ||
<DefineConstants>$(DefineConstants);DIRECTX11_1;DIRECTX11_2;DirectX12</DefineConstants> | ||
|
||
<PackageIconUrl>http://sharpdx.org/logo_100x100.png</PackageIconUrl> | ||
<PackageLicenseUrl>http://sharpdx.org/License.txt</PackageLicenseUrl> | ||
<PackageProjectUrl>http://sharpdx.org</PackageProjectUrl> | ||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> | ||
<PackageTags>SharpDX DirectX Direct3D Multimedia MDX 3D</PackageTags> | ||
|
||
<Authors>Alexandre Mutel</Authors> | ||
<Owners>Alexandre Mutel</Owners> | ||
<Copyright>Copyright (c) 2010-2014 Alexandre Mutel</Copyright> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,8 @@ | ||
<!-- | ||
This Target file must be imported in a project using SharpDX | ||
It adds automatically references to SharpDX assemblies | ||
--> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<!-- Global property most of them are overridable in the project including this project file --> | ||
<!-- The Most important variable is SharpDXSdkDir that should be a global system environement variable --> | ||
<PropertyGroup> | ||
<!--Detect SharpDX Platform based on .NETFramework version--> | ||
|
||
<!-- Query the DirectX version to use unless already specified --> | ||
<!-- By default: DirectX11 on desktop .NET, DirectX11_2 for Windows8.x+, DirectX11_1 for WP8 --> | ||
<SharpDXDirectXVersion Condition="'$(SharpDXDirectXVersion)' == '' and '$(TargetFrameworkIdentifier)' == '.NETFramework'">DirectX11</SharpDXDirectXVersion> | ||
<SharpDXDirectXVersion Condition="'$(SharpDXDirectXVersion)' == '' and '$(TargetFrameworkIdentifier)' == '.NETCore'">DirectX11_2</SharpDXDirectXVersion> | ||
<SharpDXDirectXVersion Condition="'$(SharpDXDirectXVersion)' == '' and '$(TargetPlatformIdentifier)' == 'WindowsPhoneApp'">DirectX11_2</SharpDXDirectXVersion> | ||
<SharpDXDirectXVersion Condition="'$(SharpDXDirectXVersion)' == '' and '$(TargetFrameworkIdentifier)' == 'WindowsPhone' and $(TargetFrameworkVersion.Contains('v8'))">DirectX11_1</SharpDXDirectXVersion> | ||
<!-- Use latest DirectX11_2 in case we don't know the .NET framework --> | ||
<SharpDXDirectXVersion Condition="'$(SharpDXDirectXVersion)' == ''">DirectX11_2</SharpDXDirectXVersion> | ||
|
||
<!-- Detect the .NET Framework --> | ||
<SharpDXNETFramework Condition="'$(SharpDXNETFramework)' == '' and '$(TargetFrameworkIdentifier)' == '.NETFramework' and ('$(TargetFrameworkVersion)' == 'v2.0' or '$(TargetFrameworkVersion)' == 'v3.5') ">net20</SharpDXNETFramework> | ||
<SharpDXNETFramework Condition="'$(SharpDXNETFramework)' == '' and '$(TargetFrameworkIdentifier)' == '.NETFramework' and $(TargetFrameworkVersion.Contains('v4'))">net40</SharpDXNETFramework> | ||
<SharpDXNETFramework Condition="'$(SharpDXNETFramework)' == '' and '$(TargetFrameworkIdentifier)' == '.NETCore'">winrt</SharpDXNETFramework> | ||
<SharpDXNETFramework Condition="'$(SharpDXNETFramework)' == '' and '$(TargetFrameworkProfile)' == 'Profile32'">winrt</SharpDXNETFramework> | ||
<SharpDXNETFramework Condition="'$(SharpDXNETFramework)' == '' and '$(TargetFrameworkIdentifier)' == 'WindowsPhone' and $(TargetFrameworkVersion.Contains('v8')) and '$(Platform)' != 'ARM'">wp8-x86</SharpDXNETFramework> | ||
<SharpDXNETFramework Condition="'$(SharpDXNETFramework)' == '' and '$(TargetFrameworkIdentifier)' == 'WindowsPhone' and $(TargetFrameworkVersion.Contains('v8')) and '$(Platform)' == 'ARM'">wp8-ARM</SharpDXNETFramework> | ||
<SharpDXNETFramework Condition="'$(SharpDXNETFramework)' == '' and '$(TargetPlatformIdentifier)' == 'WindowsPhoneApp'">wp81</SharpDXNETFramework> | ||
|
||
<!-- Use latest net40 in case we don't detect the .NET framework (to avoid nuget to crash when trying to add a SharpDX reference) --> | ||
<SharpDXNETFramework Condition="'$(SharpDXNETFramework)' == ''">net40</SharpDXNETFramework> | ||
|
||
<!-- Select Signed or not signed assemblies --> | ||
<SharpDXSigned Condition="'$(SharpDXNoSigned)' == '' and '$(TargetFrameworkIdentifier)' != 'WindowsPhone'">Signed-</SharpDXSigned> | ||
<SharpDXSigned Condition="'$(SharpDXNoSigned)' == 'true'"></SharpDXSigned> | ||
|
||
<!-- Compute the full version number --> | ||
<SharpDXPlatform Condition="'$(SharpDXPlatform)' == ''">$(SharpDXDirectXVersion)-$(SharpDXSigned)$(SharpDXNETFramework)</SharpDXPlatform> | ||
|
||
<!-- Variable used to select the platform used for the tool at compile time - default to Win8Desktop-net40 --> | ||
<SharpDXPlatformTool Condition="'$(SharpDXPlatformTool)' == ''">DirectX11-net40</SharpDXPlatformTool> | ||
|
||
<!--Root SharpDX SDK Directory where assemblies are stored. This variable should be set as a Global System Environement Variable --> | ||
<SharpDXPackageDir Condition="'$(SharpDXPackageDir)' == ''">$(MSBuildThisFileDirectory)..</SharpDXPackageDir> | ||
|
||
<!--SharpDX Directory to link against - based on platform--> | ||
<SharpDXPackageBinDir Condition="'$(SharpDXPackageBinDir)' == ''">$(SharpDXPackageDir)\Bin\$(SharpDXPlatform)</SharpDXPackageBinDir> | ||
|
||
<!--SharpDX Directory used for compiling - Default to DirectX11-net40--> | ||
<!--<SharpDXSdkToolsDir Condition="'$(SharpDXSdkToolsDir)' == ''">$(SharpDXPackageDir)\Bin\Win8Desktop-net40</SharpDXSdkToolsDir>--> | ||
<SharpDXSdkToolsDir Condition="'$(SharpDXSdkToolsDir)' == ''">$(SharpDXPackageDir)\Bin\$(SharpDXPlatformTool)</SharpDXSdkToolsDir> | ||
</PropertyGroup> | ||
<Project> | ||
<Target Name="RunGenerator" BeforeTargets="BeforeBuild"> | ||
<Exec Command=""$(SolutionDir)Source\Tools\SharpGen\RunGenerator.bat" $(ConfigurationName)" /> | ||
</Target> | ||
<Target Name="PatchAssembly" AfterTargets="AfterBuild"> | ||
<Exec Command=""$(SolutionDir)\Source\Bin\SharpCLI.exe" "$(TargetPath)"" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters