]> git.lizzy.rs Git - sqlite3-cmake.git/commitdiff
add appveyor.yml,examples in readme.md and license
authoralex85k <alexei_kasatkin@mail.ru>
Fri, 6 Jun 2014 06:07:27 +0000 (12:07 +0600)
committeralex85k <alexei_kasatkin@mail.ru>
Fri, 6 Jun 2014 14:11:23 +0000 (20:11 +0600)
LICENSE [new file with mode: 0644]
README.md
appveyor.yml [new file with mode: 0644]

diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
index 0000000..6f1905e
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,42 @@
+Build script from this repository is Public Domain
+
+SQLite itself too :)
+
+http://www.sqlite.org/copyright.html
+
+The author disclaims copyright to this source code.  In place of
+a legal notice, here is a blessing:
+
+    May you do good and not evil.
+    May you find forgiveness for yourself and forgive others.
+    May you share freely, never taking more than you give.
+
+SQLite Copyright
+ SQLite is in the Public Domain 
+
+ All of the code and documentation in SQLite has been dedicated to the public domain by the authors. All code authors, and representatives of the companies they work for, have signed affidavits dedicating their contributions to the public domain and originals of those signed affidavits are stored in a firesafe at the main offices of Hwaci. Anyone is free to copy, modify, publish, use, compile, sell, or distribute the original SQLite code, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. 
+
+ The previous paragraph applies to the deliverable code and documentation in SQLite - those parts of the SQLite library that you actually bundle and ship with a larger application. Some scripts used as part of the build process (for example the "configure" scripts generated by autoconf) might fall under other open-source licenses. Nothing from these build scripts ever reaches the final deliverable SQLite library, however, and so the licenses associated with those scripts should not be a factor in assessing your rights to copy and use the SQLite library. 
+
+ All of the deliverable code in SQLite has been written from scratch. No code has been taken from other projects or from the open internet. Every line of code can be traced back to its original author, and all of those authors have public domain dedications on file. So the SQLite code base is clean and is uncontaminated with licensed code from other projects. 
+Obtaining An Explicit License To Use SQLite
+
+ Even though SQLite is in the public domain and does not require a license, some users want to obtain a license anyway. Some reasons for obtaining a license include: 
+ You are using SQLite in a jurisdiction that does not recognize the public domain. 
+ You are using SQLite in a jurisdiction that does not recognize the right of an author to dedicate their work to the public domain. 
+ You want to hold a tangible legal document as evidence that you have the legal right to use and distribute SQLite. 
+ Your legal department tells you that you have to purchase a license. 
+
+ If you feel like you really have to purchase a license for SQLite, Hwaci, the company that employs the architect and principal developers of SQLite, will sell you one. 
+Contributed Code
+
+ In order to keep SQLite completely free and unencumbered by copyright, all new contributors to the SQLite code base are asked to dedicate their contributions to the public domain. If you want to send a patch or enhancement for possible inclusion in the SQLite source tree, please accompany the patch with the following statement: 
+ The author or authors of this code dedicate any and all copyright interest in this code to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this code under copyright law. 
+
+ We are not able to accept patches or changes to SQLite that are not accompanied by a statement such as the above. In addition, if you make changes or enhancements as an employee, then a simple statement such as the above is insufficient. You must also send by surface mail a copyright release signed by a company officer. A signed original of the copyright release should be mailed to:
+ Hwaci
+ 6200 Maple Cove Lane
+ Charlotte, NC 28269
+ USA 
+
+ A template copyright release is available in PDF or HTML. You can use this release to make future changes.
\ No newline at end of file
index 074534c009a5edc73d352b931fe88b5296b428ce..03e47f89a67c80a1ccc6c398b4c7a67cf88e31af 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,4 +1,24 @@
 sqlite3-cmake
 =============
 
-CMake script to sqlite3 distibution to build with different compilers
+Simplest CMake script + full sqlite3 amalgamation distibution to build with different compilers
+
+Build examples:
+
+On Windows from Visual Studio command prompt
+```
+  cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=d:/libs
+  nmake install
+```
+
+On Windows from Visual Studio IDE
+```
+  cmake -G "Visual Studio 12 Win64" -DCMAKE_INSTALL_PREFIX=d:/libs
+  < open and build sqlite3.sln >
+```
+
+On Linux/FreeBSD without root access
+```
+  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/student/libs
+  make install
+``` 
\ No newline at end of file
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644 (file)
index 0000000..49f9d35
--- /dev/null
@@ -0,0 +1,52 @@
+version: 3.8.5.{build}
+
+environment:
+  P: "c:/projects/libs"
+  ACCOUNT:
+    secure: haKHy4KWVnBuCd6I3obXGMa9TjRa8oXFm9P+Pw6f5P0=
+
+# branches to build
+branches:
+  # whitelist
+  only:
+    - master
+
+# Operating system (build VM template)
+os: Windows Server 2012 R2
+
+# scripts that are called at very beginning, before repo cloning
+init:
+  - git config --global core.autocrlf input
+
+
+# clone directory
+clone_folder: c:\projects\sqlite
+
+platform: x64
+configuration: Release
+
+install:
+  # by default, all script lines are interpreted as batch
+
+build:
+  project: INSTALL.vcxproj      # path to Visual Studio solution or project
+
+# scripts to run before build
+before_build:
+  - echo Running cmake...
+  - cd c:\projects\sqlite
+  - cmake -G "Visual Studio 12 Win64" -DCMAKE_INSTALL_PREFIX=%P%
+
+# scripts to run after build
+after_build:
+  - cd %P%
+  - 7z a c:\projects\sqlite\sqlite.zip * -tzip
+  - cd c:\projects\sqlite
+
+artifacts:
+  - path: sqlite.zip
+    name: sqlite.zip
+
+deploy_script:
+  - cd c:\projects\sqlite
+  - curl -T sqlite.zip --user %ACCOUNT% https://webdav.yandex.ru/libs/sqlite.zip