mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Let's be Mono friendly
This is a massive overhaul that replaces System.Data.SQLite with Mono.Data.Sqlite. This should make it more compatible with Linux and Mac and has no known downsides for Windows.
This commit is contained in:
141
packages/System.Data.SQLite.Core.1.0.101.0/build/net20/System.Data.SQLite.Core.targets
vendored
Normal file
141
packages/System.Data.SQLite.Core.1.0.101.0/build/net20/System.Data.SQLite.Core.targets
vendored
Normal file
@@ -0,0 +1,141 @@
|
||||
<!--
|
||||
*
|
||||
* System.Data.SQLite.Core.targets -
|
||||
*
|
||||
* WARNING: This MSBuild file requires MSBuild 4.0 features.
|
||||
*
|
||||
* Written by Joe Mistachkin and David Archer.
|
||||
* Released to the public domain, use at your own risk!
|
||||
*
|
||||
-->
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<!--
|
||||
******************************************************************************
|
||||
** Load Per-User Settings **
|
||||
******************************************************************************
|
||||
-->
|
||||
|
||||
<!--
|
||||
NOTE: If the per-user settings file exists, import it now. The contained
|
||||
settings, if any, will override the default ones provided below.
|
||||
-->
|
||||
<Import Condition="'$(MSBuildThisFileDirectory)' != '' And
|
||||
HasTrailingSlash('$(MSBuildThisFileDirectory)') And
|
||||
Exists('$(MSBuildThisFileDirectory)\System.Data.SQLite.Core.targets.user')"
|
||||
Project="$(MSBuildThisFileDirectory)\System.Data.SQLite.Core.targets.user" />
|
||||
|
||||
<!--
|
||||
******************************************************************************
|
||||
** SQLite Interop Library Build Items **
|
||||
******************************************************************************
|
||||
-->
|
||||
|
||||
<ItemGroup>
|
||||
<SQLiteInteropFiles Condition="'$(MSBuildThisFileDirectory)' != '' And
|
||||
HasTrailingSlash('$(MSBuildThisFileDirectory)')"
|
||||
Include="$(MSBuildThisFileDirectory)**\SQLite.Interop.*" />
|
||||
</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.
|
||||
-->
|
||||
<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.
|
||||
-->
|
||||
<Delete Files="@(SQLiteInteropFiles -> '$(OutDir)%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||
</Target>
|
||||
|
||||
<!--
|
||||
******************************************************************************
|
||||
-->
|
||||
|
||||
<Target Name="CollectSQLiteInteropFiles"
|
||||
Condition="'$(CollectSQLiteInteropFiles)' != 'false'">
|
||||
<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' Or
|
||||
'$(VisualStudioVersion)' == '14.0'">
|
||||
<PipelineCollectFilesPhaseDependsOn>
|
||||
CollectSQLiteInteropFiles;
|
||||
$(PipelineCollectFilesPhaseDependsOn);
|
||||
</PipelineCollectFilesPhaseDependsOn>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user