18 Commits

Author SHA1 Message Date
Sébastien Rombauts
c68f651a10
Merge pull request #277 from cuberite/cmake-scoping
Fix cmake scoping issues with packaged SQLite
2022-09-30 20:11:34 +02:00
Sébastien Rombauts
a5aa46732d Updated SQLite3 from 3.36.0 to 3.37.2 (2022-01-06) 2022-01-07 15:43:15 +01:00
Sébastien Rombauts
9b6c0cf6ea
Merge pull request #295 Compile internal SQLite library with -ffunction-sections from smichaku/smichaku/sqlite-function-sections 2021-01-06 10:53:43 +01:00
Kelvin Hammond
9875a7591a Updated SQLite3 from 3.32.3 to 3.33.0 (2020-08-14) 2020-09-10 18:54:32 -04:00
Micha Kalfon
6f9075d511 Compile internal SQLite library with -ffunction-sections
When building with SQLITECPP_INTERNAL_SQLITE=ON the SQLite amalgamation
source is used for generating the library. Using one big source file
means all the library code will be put in a single section. When
building statically linked executables the entire section will be
linked even if a small portion of the library is actually used.

This commit addresses this issue by setting the -ffunction-sections
compiler option when building the library. As each function is placed in
a section of its own the linker, when passed the --gc-sections, will
throw away unused sections (functions) and reduce the executable size.
2020-08-23 13:05:25 +03:00
zxey
0d2294e36f Allow building of sqlite JSON1 extension when building internal sqlite library 2020-07-29 14:38:26 +02:00
Peter Bell
7cfe26ee9f Fix include scoping issues with sqlite3 2020-05-08 12:35:01 +01:00
Mario Emmenlauer
a166062c18 Significantly improved support for external sqlite3, and generalized thread and dl libs on Unix/Linux/Mac 2020-01-13 21:12:25 +01:00
Sébastien Rombauts
8485bb7d29 Add comments and TODO in Travis CI build matrix 2020-01-12 22:12:10 +01:00
Mario Emmenlauer
ff72393658 CMakeLists.txt: use transitive compile definitions via cmake target_compile_definitions() 2019-11-18 11:12:57 +01:00
Richard Hozák
c9e5b080cb
Disable cast-function-type warning when building internal sqlite
Disables cast-function-type warning which is available in gcc 8.0 and greater.
2019-09-04 14:54:25 +02:00
jzt
629497ed60 fix set sqlite3 propertie (#212) 2019-08-26 07:27:51 +02:00
Richard Hozák
ce4eb187a4 Disable implicit fallthrough warning when building internal sqlite3 (#215)
-Wimplicit-fallthrough is available in gcc 7.0 and greater.
2019-08-14 08:02:15 +02:00
Sébastien Rombauts
ca45c67884 Fix #167 sqlite3 library cannot be built on Linux when dynamically linked 2019-03-03 00:18:00 +01:00
Sébastien Rombauts
c53d885393 Update copyright notice to 2016 2016-02-10 10:27:47 +01:00
Sébastien Rombauts
09db07ccc7 Updated version to 1.0.0 changelog and copyright date 2015-05-03 23:32:57 +02:00
Sébastien Rombauts
7bfaafecba Moved include files out of the src/ dir, to an include/ dir
+ started a void test file
2014-03-04 23:04:38 +01:00
Sébastien Rombauts
2b5d66eb25 Added a "sqlite3/CMakeLists.txt" file defining the SQLite3 static library for easier Windows build. 2013-09-01 17:30:54 +02:00