Skip to content

Commit

Permalink
Import the Mono.Data.Sqlite project instead of importing the pre-buil…
Browse files Browse the repository at this point in the history
…t assembly
  • Loading branch information
jstedfast committed Nov 23, 2013
1 parent 943021f commit d230525
Show file tree
Hide file tree
Showing 39 changed files with 13,091 additions and 6 deletions.
6 changes: 6 additions & 0 deletions MimeKit.Net40.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests", "UnitTests\Unit
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BouncyCastle", "..\bc-csharp\crypto\BouncyCastle.csproj", "{4C235092-820C-4DEB-9074-D356FB797D8B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mono.Data.Sqlite", "Mono.Data.Sqlite\Mono.Data.Sqlite.csproj", "{F26434C1-BA3D-41FB-B560-C009CB72B1B6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -25,6 +27,10 @@ Global
{C909FC86-6084-41E5-B99C-DCDF2A5B7F82}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C909FC86-6084-41E5-B99C-DCDF2A5B7F82}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C909FC86-6084-41E5-B99C-DCDF2A5B7F82}.Release|Any CPU.Build.0 = Release|Any CPU
{F26434C1-BA3D-41FB-B560-C009CB72B1B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F26434C1-BA3D-41FB-B560-C009CB72B1B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F26434C1-BA3D-41FB-B560-C009CB72B1B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F26434C1-BA3D-41FB-B560-C009CB72B1B6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = MimeKit\MimeKit.csproj
Expand Down
6 changes: 6 additions & 0 deletions MimeKit.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BouncyCastle.Android", "..\
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BouncyCastle.iOS", "..\bc-csharp\crypto\BouncyCastle.iOS.csproj", "{0249241C-205E-4AC0-828B-90F822359B9E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mono.Data.Sqlite", "Mono.Data.Sqlite\Mono.Data.Sqlite.csproj", "{F26434C1-BA3D-41FB-B560-C009CB72B1B6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -55,6 +57,10 @@ Global
{D8F8376B-D81D-4465-8942-CC5242EDB207}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D8F8376B-D81D-4465-8942-CC5242EDB207}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D8F8376B-D81D-4465-8942-CC5242EDB207}.Release|Any CPU.Build.0 = Release|Any CPU
{F26434C1-BA3D-41FB-B560-C009CB72B1B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F26434C1-BA3D-41FB-B560-C009CB72B1B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F26434C1-BA3D-41FB-B560-C009CB72B1B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F26434C1-BA3D-41FB-B560-C009CB72B1B6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = MimeKit\MimeKit.csproj
Expand Down
9 changes: 5 additions & 4 deletions MimeKit/MimeKit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,16 @@
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="System.Security" />
<Reference Include="Mono.Data.Sqlite">
<HintPath>..\lib\Mono.Data.Sqlite.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\bc-csharp\crypto\BouncyCastle.csproj">
<Project>{4C235092-820C-4DEB-9074-D356FB797D8B}</Project>
<Name>BouncyCastle</Name>
</ProjectReference>
<ProjectReference Include="..\Mono.Data.Sqlite\Mono.Data.Sqlite.csproj">
<Project>{F26434C1-BA3D-41FB-B560-C009CB72B1B6}</Project>
<Name>Mono.Data.Sqlite</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="Cryptography\ApplicationPgpEncrypted.cs" />
Expand Down Expand Up @@ -168,10 +169,10 @@
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
-->
<Target Name="AfterBuild">
<Copy Condition="$(OS) != 'Unix'" SourceFiles="..\lib\sqlite3.dll" DestinationFolder="$(OutputPath)" SkipUnchangedFiles="true" ContinueOnError="false" />
</Target>
-->
<ProjectExtensions>
<MonoDevelop>
<Properties>
Expand Down
43 changes: 43 additions & 0 deletions Mono.Data.Sqlite/Assembly/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Security;

#if !PLATFORM_COMPACTFRAMEWORK
using System.Runtime.ConstrainedExecution;
#endif

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("System.Data.SQLite")]
[assembly: AssemblyDescription("ADO.NET 2.0 Data Provider for SQLite")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("http://sqlite.phxsoftware.com")]
[assembly: AssemblyProduct("System.Data.SQLite")]
[assembly: AssemblyCopyright("Public Domain")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM componenets. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
[assembly: CLSCompliant(true)]
//[assembly: InternalsVisibleTo("System.Data.SQLite.Linq, PublicKey=002400000480000094000000060200000024000052534131000400000100010005a288de5687c4e1b621ddff5d844727418956997f475eb829429e411aff3e93f97b70de698b972640925bdd44280df0a25a843266973704137cbb0e7441c1fe7cae4e2440ae91ab8cde3933febcb1ac48dd33b40e13c421d8215c18a4349a436dd499e3c385cc683015f886f6c10bd90115eb2bd61b67750839e3a19941dc9c")]

#if !PLATFORM_COMPACTFRAMEWORK
[assembly: AllowPartiallyTrustedCallers]
[assembly: ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
#endif

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("4.0.0.0")]
28 changes: 28 additions & 0 deletions Mono.Data.Sqlite/LINQ/SQLiteConnection_Linq.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/********************************************************
* ADO.NET 2.0 Data Provider for SQLite Version 3.X
* Written by Robert Simpson ([email protected])
*
* Released to the public domain, use at your own risk!
********************************************************/

namespace Mono.Data.Sqlite
{
using System;
using System.Data;
using System.Data.Common;
using System.Collections.Generic;
using System.Globalization;
using System.ComponentModel;

public sealed partial class SqliteConnection
{
/// <summary>
/// Returns a SQLiteProviderFactory object.
/// </summary>
protected override DbProviderFactory DbProviderFactory
{
get { return SqliteFactory.Instance; }
}
}
}

58 changes: 58 additions & 0 deletions Mono.Data.Sqlite/LINQ/SQLiteFactory_Linq.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/********************************************************
* ADO.NET 2.0 Data Provider for SQLite Version 3.X
* Written by Robert Simpson ([email protected])
*
* Released to the public domain, use at your own risk!
********************************************************/

namespace Mono.Data.Sqlite
{
using System;
using System.Data.Common;
using System.Reflection;
using System.Security.Permissions;

/// <summary>
/// SQLite implementation of DbProviderFactory.
/// </summary>
public sealed partial class SqliteFactory : IServiceProvider
{
private static Type _dbProviderServicesType;
private static object _sqliteServices;

static SqliteFactory()
{
_dbProviderServicesType = Type.GetType("System.Data.Common.DbProviderServices, System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", false);
}

/// <summary>
/// Will provide a DbProviderServices object in .NET 3.5
/// </summary>
/// <param name="serviceType">The class or interface type to query for</param>
/// <returns></returns>
object IServiceProvider.GetService(Type serviceType)
{
if (serviceType == typeof(ISQLiteSchemaExtensions) ||
(_dbProviderServicesType != null && serviceType == _dbProviderServicesType))
{
return GetSQLiteProviderServicesInstance();
}
return null;
}

[ReflectionPermission(SecurityAction.Assert, MemberAccess = true)]
private object GetSQLiteProviderServicesInstance()
{
if (_sqliteServices == null)
{
Type type = Type.GetType("Mono.Data.Sqlite.SQLiteProviderServices, Mono.Data.Sqlite.Linq, Version=2.0.38.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139", false);
if (type != null)
{
FieldInfo field = type.GetField("Instance", BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance);
_sqliteServices = field.GetValue(null);
}
}
return _sqliteServices;
}
}
}
92 changes: 92 additions & 0 deletions Mono.Data.Sqlite/Mono.Data.Sqlite.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.0</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{F26434C1-BA3D-41FB-B560-C009CB72B1B6}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>bin\Debug\</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDesignerFolder>Properties</AppDesignerFolder>
<AssemblyName>Mono.Data.Sqlite</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;SQLITE_STANDARD</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>false</NoStdLib>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;SQLITE_STANDARD</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>false</NoStdLib>
</PropertyGroup>
<ItemGroup>
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="LINQ\SQLiteConnection_Linq.cs" />
<Compile Include="LINQ\SQLiteFactory_Linq.cs" />
<Compile Include="SQLite3.cs" />
<Compile Include="SQLite3_UTF16.cs" />
<Compile Include="SQLiteBase.cs" />
<Compile Include="SQLiteCommand.cs" />
<Compile Include="SQLiteCommandBuilder.cs" />
<Compile Include="SQLiteConnection.cs" />
<Compile Include="SQLiteConnectionPool.cs" />
<Compile Include="SQLiteConnectionStringBuilder.cs" />
<Compile Include="SQLiteConvert.cs" />
<Compile Include="SQLiteDataAdapter.cs" />
<Compile Include="SQLiteDataReader.cs" />
<Compile Include="SqliteDataSourceEnumerator.cs" />
<Compile Include="SQLiteEnlistment.cs" />
<Compile Include="SQLiteException.cs" />
<Compile Include="SQLiteFactory.cs" />
<Compile Include="SQLiteFunction.cs" />
<Compile Include="SQLiteFunctionAttribute.cs" />
<Compile Include="SQLiteKeyReader.cs" />
<Compile Include="SQLiteMetaDataCollectionNames.cs" />
<Compile Include="SQLiteParameter.cs" />
<Compile Include="SQLiteParameterCollection.cs" />
<Compile Include="SQLiteStatement.cs" />
<Compile Include="SQLiteTransaction.cs" />
<Compile Include="UnsafeNativeMethods.cs" />
<Compile Include="SR.Designer.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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>
-->
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Transactions" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Folder Include="resources\" />
</ItemGroup>
<ItemGroup>
<None Include="resources\SR.resx" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="resources\SR.resources">
<LogicalName>SR.resources</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
Loading

0 comments on commit d230525

Please sign in to comment.