mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2025-12-13 00:58:31 +00:00
Merge branch 'nuget-targets' of https://github.com/voltagex/CUE.NET into voltagex-nuget-targets
This commit is contained in:
commit
ee565f838c
@ -115,15 +115,5 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup />
|
<ItemGroup />
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<PropertyGroup>
|
<Import Project="$(MSBuildProjectDirectory)\CUE.NET.targets" />
|
||||||
<PostBuildEvent>if $(PlatformName) == x86 copy "$(SolutionDir)libs\CUESDK_2013.dll" "$(TargetDir)CUESDK_2013.dll"
|
|
||||||
if $(PlatformName) == x64 copy "$(SolutionDir)libs\CUESDK.x64_2013.dll" "$(TargetDir)CUESDK.x64_2013.dll"</PostBuildEvent>
|
|
||||||
</PropertyGroup>
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
</Project>
|
</Project>
|
||||||
@ -18,5 +18,6 @@ I'm currently working on this library and it's far from being finished. Please b
|
|||||||
<files>
|
<files>
|
||||||
<file src="bin\x64\CUE.NET.dll" target="lib\net46\CUE.NET.dll" />
|
<file src="bin\x64\CUE.NET.dll" target="lib\net46\CUE.NET.dll" />
|
||||||
<file src="bin\x64\CUESDK.x64_2013.dll" target="build\net46\x64" />
|
<file src="bin\x64\CUESDK.x64_2013.dll" target="build\net46\x64" />
|
||||||
|
<file src="CUE.NET.targets" target="build\net46\x64\CUE.NET.targets" />
|
||||||
</files>
|
</files>
|
||||||
</package>
|
</package>
|
||||||
@ -9,6 +9,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{1F
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleDevTest", "Examples\SimpleDevTest\SimpleDevTest.csproj", "{7FD88256-5E14-4D7C-862B-7BC2CD04081A}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleDevTest", "Examples\SimpleDevTest\SimpleDevTest.csproj", "{7FD88256-5E14-4D7C-862B-7BC2CD04081A}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FF50AF6A-D2AC-4772-B013-C10D127DBE29}"
|
||||||
|
ProjectSection(SolutionItems) = preProject
|
||||||
|
CUE.NET.nuspec = CUE.NET.nuspec
|
||||||
|
CUE.NET.targets = CUE.NET.targets
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|x64 = Debug|x64
|
Debug|x64 = Debug|x64
|
||||||
|
|||||||
132
CUE.NET.targets
Normal file
132
CUE.NET.targets
Normal file
@ -0,0 +1,132 @@
|
|||||||
|
<!--
|
||||||
|
* Build targets hacked from SQLite (thanks!), please rename all of this when you're feeling brave
|
||||||
|
* System.Data.SQLite.Core.targets -
|
||||||
|
*
|
||||||
|
*
|
||||||
|
-->
|
||||||
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
******************************************************************************
|
||||||
|
** SQLite Interop Library Build Items **
|
||||||
|
******************************************************************************
|
||||||
|
-->
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<SQLiteInteropFiles Condition="'$(MSBuildThisFileDirectory)' != '' And
|
||||||
|
HasTrailingSlash('$(MSBuildThisFileDirectory)')"
|
||||||
|
Include="$(MSBuildThisFileDirectory)\libs\*.dll" />
|
||||||
|
<SQLiteInteropFiles Condition="'$(MSBuildThisFileDirectory)' != '' And
|
||||||
|
HasTrailingSlash('$(MSBuildThisFileDirectory)')"
|
||||||
|
Include="$(MSBuildThisFileDirectory)\*.dll" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
******************************************************************************
|
||||||
|
** SQLite Interop Library Content Items **
|
||||||
|
******************************************************************************
|
||||||
|
-->
|
||||||
|
|
||||||
|
<ItemGroup Condition="'$(ContentSQLiteInteropFiles)' != '' And
|
||||||
|
'$(ContentSQLiteInteropFiles)' != 'false' And
|
||||||
|
'@(SQLiteInteropFiles)' != ''">
|
||||||
|
<Content Include="@(SQLiteInteropFiles)">
|
||||||
|
<Link>%(RecursiveDir)%(FileName)%(Extension)</Link>
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
******************************************************************************
|
||||||
|
** SQLite Interop Library Build Targets **
|
||||||
|
******************************************************************************
|
||||||
|
-->
|
||||||
|
|
||||||
|
<Target Name="CopySQLiteInteropFiles"
|
||||||
|
Condition="'$(CopySQLiteInteropFiles)' != 'false' And
|
||||||
|
'$(OutDir)' != '' And
|
||||||
|
HasTrailingSlash('$(OutDir)') And
|
||||||
|
Exists('$(OutDir)')"
|
||||||
|
Inputs="@(SQLiteInteropFiles)"
|
||||||
|
Outputs="@(SQLiteInteropFiles -> '$(OutDir)%(RecursiveDir)%(Filename)%(Extension)')">
|
||||||
|
<!--
|
||||||
|
NOTE: Copy "SQLite.Interop.dll" and all related files, for every
|
||||||
|
architecture that we support, to the build output directory.
|
||||||
|
-->
|
||||||
|
<Message Text="Copying Interop files..." Importance="high" />
|
||||||
|
<Copy SourceFiles="@(SQLiteInteropFiles)"
|
||||||
|
DestinationFiles="@(SQLiteInteropFiles -> '$(OutDir)%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
******************************************************************************
|
||||||
|
-->
|
||||||
|
|
||||||
|
<Target Name="CleanSQLiteInteropFiles"
|
||||||
|
Condition="'$(CleanSQLiteInteropFiles)' != 'false' And
|
||||||
|
'$(OutDir)' != '' And
|
||||||
|
HasTrailingSlash('$(OutDir)') And
|
||||||
|
Exists('$(OutDir)')">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
NOTE: Delete "SQLite.Interop.dll" and all related files, for every
|
||||||
|
architecture that we support, from the build output directory.
|
||||||
|
-->
|
||||||
|
<Message Text="this file $(MSBuildThisFileDirectory)" Importance="high"/>
|
||||||
|
<Message Text="Cleaning Interop files..." Importance="high" />
|
||||||
|
|
||||||
|
<Delete Files="@(SQLiteInteropFiles -> '$(OutDir)%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
******************************************************************************
|
||||||
|
-->
|
||||||
|
|
||||||
|
<Target Name="CollectSQLiteInteropFiles"
|
||||||
|
Condition="'$(CollectSQLiteInteropFiles)' != 'false'">
|
||||||
|
<Message Text="Collecting Interop files..." Importance="high" />
|
||||||
|
<ItemGroup>
|
||||||
|
<FilesForPackagingFromProject Include="@(SQLiteInteropFiles)">
|
||||||
|
<DestinationRelativePath>bin\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
|
||||||
|
</FilesForPackagingFromProject>
|
||||||
|
</ItemGroup>
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
******************************************************************************
|
||||||
|
** SQLite Interop Library Build Properties **
|
||||||
|
******************************************************************************
|
||||||
|
-->
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<PostBuildEventDependsOn>
|
||||||
|
$(PostBuildEventDependsOn);
|
||||||
|
CopySQLiteInteropFiles;
|
||||||
|
</PostBuildEventDependsOn>
|
||||||
|
<BuildDependsOn>
|
||||||
|
$(BuildDependsOn);
|
||||||
|
CopySQLiteInteropFiles;
|
||||||
|
</BuildDependsOn>
|
||||||
|
<CleanDependsOn>
|
||||||
|
$(CleanDependsOn);
|
||||||
|
CleanSQLiteInteropFiles;
|
||||||
|
</CleanDependsOn>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
******************************************************************************
|
||||||
|
** SQLite Interop Library Publish Properties for Visual Studio 201x **
|
||||||
|
******************************************************************************
|
||||||
|
-->
|
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' Or
|
||||||
|
'$(VisualStudioVersion)' == '10.0' Or
|
||||||
|
'$(VisualStudioVersion)' == '11.0' Or
|
||||||
|
'$(VisualStudioVersion)' == '12.0'">
|
||||||
|
<PipelineCollectFilesPhaseDependsOn>
|
||||||
|
CollectSQLiteInteropFiles;
|
||||||
|
$(PipelineCollectFilesPhaseDependsOn);
|
||||||
|
</PipelineCollectFilesPhaseDependsOn>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
||||||
Loading…
x
Reference in New Issue
Block a user