Skip to content

Commit 758ad7a

Browse files
authored
Merge pull request #1057 from praeclarum/static
Create static P/Invoke nuget
2 parents 936589e + 65b2692 commit 758ad7a

File tree

9 files changed

+60
-7
lines changed

9 files changed

+60
-7
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tests/bin/Release/SQLite.Tests.dll: tests/SQLite.Tests.csproj $(SRC)
1616
tests/ApiDiff/bin/Release/ApiDiff.exe: tests/ApiDiff/ApiDiff.csproj $(SRC)
1717
msbuild /p:Configuration=Release tests/ApiDiff/ApiDiff.csproj
1818

19-
nuget: pclnuget basenuget sqlciphernuget
19+
nuget: pclnuget basenuget sqlciphernuget staticnuget
2020

2121
pclnuget: nuget/SQLite-net-std/SQLite-net-std.csproj $(SRC)
2222
dotnet pack -c Release -o $(PACKAGES_OUT) $<
@@ -27,5 +27,8 @@ basenuget: nuget/SQLite-net-base/SQLite-net-base.csproj $(SRC)
2727
sqlciphernuget: nuget/SQLite-net-sqlcipher/SQLite-net-sqlcipher.csproj $(SRC)
2828
dotnet pack -c Release -o $(PACKAGES_OUT) $<
2929

30+
staticnuget: nuget/SQLite-net-static/SQLite-net-static.csproj $(SRC)
31+
dotnet pack -c Release -o $(PACKAGES_OUT) $<
32+
3033
codecoverage:
3134
cd tests/SQLite.Tests && dotnet test /p:AltCover=true /p:AltCoverForce=true "/p:AltCoverTypeFilter=SQLite.Tests.*" && reportgenerator -reports:coverage.xml -targetdir:./CoverageReport

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Use one of these packages:
99
| ------- | ------- | ----------- |
1010
| [![NuGet Package](https://img.shields.io/nuget/v/sqlite-net-pcl.svg)](https://www.nuget.org/packages/sqlite-net-pcl) | [sqlite-net-pcl](https://www.nuget.org/packages/sqlite-net-pcl) | .NET Standard Library |
1111
| [![NuGet Package with Encryption](https://img.shields.io/nuget/v/sqlite-net-sqlcipher.svg)](https://www.nuget.org/packages/sqlite-net-sqlcipher) | [sqlite-net-sqlcipher](https://www.nuget.org/packages/sqlite-net-sqlcipher) | With Encryption Support |
12+
| [![NuGet Package using P/Invoke](https://img.shields.io/nuget/v/sqlite-net-static.svg)](https://www.nuget.org/packages/sqlite-net-static) | [sqlite-net-static](https://www.nuget.org/packages/sqlite-net-static) | Special version that uses P/Invokes to platform-provided sqlite3 |
1213

1314
SQLite-net is an open source, minimal library to allow .NET, .NET Core, and Mono applications to store data in
1415
[SQLite 3 databases](http://www.sqlite.org). It was first designed to work with [Xamarin.iOS](http://xamarin.com),

SQLite.sln

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 11.00
33
# Visual Studio 2010
44
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A0E59A10-7BD0-4554-B133-66FA850159BE}"
55
ProjectSection(SolutionItems) = preProject
6-
sqlite-net-pcl.nuspec = sqlite-net-pcl.nuspec
7-
sqlite-net.nuspec = sqlite-net.nuspec
86
Makefile = Makefile
9-
sqlite-net-base.nuspec = sqlite-net-base.nuspec
10-
sqlite-net-sqlcipher.nuspec = sqlite-net-sqlcipher.nuspec
117
README.md = README.md
128
EndProjectSection
139
EndProject
@@ -25,6 +21,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLite-net-sqlcipher", "nug
2521
EndProject
2622
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLite.Tests", "tests\SQLite.Tests\SQLite.Tests.csproj", "{80B66A43-B358-4438-BF06-6351B86B121A}"
2723
EndProject
24+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLite-net-static", "nuget\SQLite-net-static\SQLite-net-static.csproj", "{7CD60DAE-D505-4C2E-80B3-296556CE711E}"
25+
EndProject
2826
Global
2927
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3028
Debug|Any CPU = Debug|Any CPU
@@ -107,6 +105,18 @@ Global
107105
{80B66A43-B358-4438-BF06-6351B86B121A}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
108106
{80B66A43-B358-4438-BF06-6351B86B121A}.Debug|iPhone.ActiveCfg = Debug|Any CPU
109107
{80B66A43-B358-4438-BF06-6351B86B121A}.Debug|iPhone.Build.0 = Debug|Any CPU
108+
{7CD60DAE-D505-4C2E-80B3-296556CE711E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
109+
{7CD60DAE-D505-4C2E-80B3-296556CE711E}.Debug|Any CPU.Build.0 = Debug|Any CPU
110+
{7CD60DAE-D505-4C2E-80B3-296556CE711E}.Release|Any CPU.ActiveCfg = Release|Any CPU
111+
{7CD60DAE-D505-4C2E-80B3-296556CE711E}.Release|Any CPU.Build.0 = Release|Any CPU
112+
{7CD60DAE-D505-4C2E-80B3-296556CE711E}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
113+
{7CD60DAE-D505-4C2E-80B3-296556CE711E}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
114+
{7CD60DAE-D505-4C2E-80B3-296556CE711E}.Release|iPhone.ActiveCfg = Release|Any CPU
115+
{7CD60DAE-D505-4C2E-80B3-296556CE711E}.Release|iPhone.Build.0 = Release|Any CPU
116+
{7CD60DAE-D505-4C2E-80B3-296556CE711E}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
117+
{7CD60DAE-D505-4C2E-80B3-296556CE711E}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
118+
{7CD60DAE-D505-4C2E-80B3-296556CE711E}.Debug|iPhone.ActiveCfg = Debug|Any CPU
119+
{7CD60DAE-D505-4C2E-80B3-296556CE711E}.Debug|iPhone.Build.0 = Debug|Any CPU
110120
EndGlobalSection
111121
GlobalSection(NestedProjects) = preSolution
112122
{81850129-71C3-40C7-A48B-AA5D2C2E365E} = {FECC0E44-E626-49CB-BD8B-0CFBD93FBEFF}

nuget/SQLite-net-base/SQLite-net-base.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
Please use the package sqlite-net-pcl if you have no idea what any of this means.
1212
</Description>
1313

14+
<Configurations>Release;Debug</Configurations>
1415
</PropertyGroup>
1516

1617
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">

nuget/SQLite-net-sqlcipher/SQLite-net-sqlcipher.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
This enables secure access to the database with password (key) access.
1212
</Description>
1313
<PackageTags>sqlite-net;sqlite;database;orm;encryption;sqlcipher</PackageTags>
14+
<Configurations>Release;Debug</Configurations>
1415
</PropertyGroup>
1516

1617
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<AssemblyName>SQLite-net</AssemblyName>
6+
<PackageId>sqlite-net-static</PackageId>
7+
<AssemblyTitle>SQLite-net .NET Standard P/Invoke Library</AssemblyTitle>
8+
<Description>
9+
SQLite-net is an open source and light weight library providing easy SQLite database storage for .NET, Mono, and Xamarin applications.
10+
This version uses P/Invokes to the "sqlite3" native library provided by the operating system.
11+
This works on Xamarin.iOS, Xamarin.Mac, Wilderness Labs' Meadow, and any other platform that has a "sqlite3" library in the path.
12+
</Description>
13+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
14+
<Configurations>Release;Debug</Configurations>
15+
</PropertyGroup>
16+
17+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
18+
<DebugSymbols>false</DebugSymbols>
19+
<DebugType></DebugType>
20+
<DefineConstants>RELEASE</DefineConstants>
21+
<DocumentationFile>bin\Release\netstandard2.0\SQLite-net.xml</DocumentationFile>
22+
</PropertyGroup>
23+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
24+
<DefineConstants>DEBUG</DefineConstants>
25+
<DocumentationFile>bin\Debug\netstandard2.0\SQLite-net.xml</DocumentationFile>
26+
</PropertyGroup>
27+
<ItemGroup>
28+
<Compile Include="..\..\src\SQLite.cs">
29+
<Link>SQLite.cs</Link>
30+
</Compile>
31+
<Compile Include="..\..\src\SQLiteAsync.cs">
32+
<Link>SQLiteAsync.cs</Link>
33+
</Compile>
34+
<None Include="..\..\LICENSE.txt" Pack="true" PackagePath="" />
35+
</ItemGroup>
36+
</Project>

nuget/SQLite-net-std/SQLite-net-std.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
</Description>
1313

14+
<Configurations>Release;Debug</Configurations>
1415
</PropertyGroup>
1516

1617
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">

src/SQLite.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright (c) 2009-2019 Krueger Systems, Inc.
2+
// Copyright (c) 2009-2021 Krueger Systems, Inc.
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

src/SQLiteAsync.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright (c) 2012-2019 Krueger Systems, Inc.
2+
// Copyright (c) 2012-2021 Krueger Systems, Inc.
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)