From d22f2c8265d4688571d703b955f86ec5a0d1f6ee Mon Sep 17 00:00:00 2001 From: Andrey Fidrya Date: Sat, 8 Apr 2017 21:13:56 +0300 Subject: [PATCH 1/2] Modulemap for system sqlite --- LICENSE | 7 +++++++ Package.swift | 8 ++++++++ module.modulemap | 5 +++++ shim.h | 2 ++ 4 files changed, 22 insertions(+) create mode 100644 LICENSE create mode 100644 Package.swift create mode 100644 module.modulemap create mode 100644 shim.h diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b8871b0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +Copyright (C) 2017 Gwendal Roué + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..b49df54 --- /dev/null +++ b/Package.swift @@ -0,0 +1,8 @@ +import PackageDescription + +let package = Package( + name: "SQLiteSDK", + providers: [ + .Apt("libsqlite3-dev") + ] +) diff --git a/module.modulemap b/module.modulemap new file mode 100644 index 0000000..39a7fb7 --- /dev/null +++ b/module.modulemap @@ -0,0 +1,5 @@ +module SQLiteSDK [system] { + header "shim.h" + link "sqlite3" + export * +} diff --git a/shim.h b/shim.h new file mode 100644 index 0000000..8034bef --- /dev/null +++ b/shim.h @@ -0,0 +1,2 @@ +#include + From b183f69e820043d3d113f9b69033041362638ebf Mon Sep 17 00:00:00 2001 From: Andrey Fidrya Date: Mon, 10 Apr 2017 17:31:16 +0300 Subject: [PATCH 2/2] Rename to CSQLite --- Package.swift | 2 +- README.md | 2 +- module.modulemap | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index b49df54..22e2c7c 100644 --- a/Package.swift +++ b/Package.swift @@ -1,7 +1,7 @@ import PackageDescription let package = Package( - name: "SQLiteSDK", + name: "CSQLite", providers: [ .Apt("libsqlite3-dev") ] diff --git a/README.md b/README.md index 8410d1f..a814e9a 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# SQLiteSDK +# CSQLite diff --git a/module.modulemap b/module.modulemap index 39a7fb7..0a291b5 100644 --- a/module.modulemap +++ b/module.modulemap @@ -1,4 +1,4 @@ -module SQLiteSDK [system] { +module CSQLite [system] { header "shim.h" link "sqlite3" export *