mirror of
https://github.com/cuberite/sqlite.git
synced 2025-09-09 20:54:37 -04:00
Initial commit
This commit is contained in:
commit
b6e653bc6e
36
CMakeLists.txt
Normal file
36
CMakeLists.txt
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
|
||||||
|
cmake_minimum_required (VERSION 2.6)
|
||||||
|
project (sqlite)
|
||||||
|
|
||||||
|
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||||
|
|
||||||
|
file(GLOB SOURCE
|
||||||
|
"*.c"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# Lua is required as a DLL for LuaSQLite:
|
||||||
|
if (WIN32)
|
||||||
|
add_definitions(-DLUA_BUILD_AS_DLL)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
# add headers to MSVC project files:
|
||||||
|
if (MSVC)
|
||||||
|
file(GLOB HEADERS "src/*.h")
|
||||||
|
list(REMOVE_ITEM SOURCE "${PROJECT_SOURCE_DIR}/src/lua.h" "${PROJECT_SOURCE_DIR}/src/luac.h")
|
||||||
|
set(SOURCE ${SOURCE} ${HEADERS})
|
||||||
|
source_group("Sources" FILES ${SOURCE})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# FreeBSD requires us to define this to get POSIX 2001 standard
|
||||||
|
if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
||||||
|
add_flags_cxx("-D_XOPEN_SOURCE=600")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_library(sqlite ${SOURCE})
|
||||||
|
target_link_libraries(sqlite lua)
|
||||||
|
|
||||||
|
if (UNIX)
|
||||||
|
target_link_libraries(sqlite ${DYNAMIC_LOADER})
|
||||||
|
endif()
|
2175
lsqlite3.c
Normal file
2175
lsqlite3.c
Normal file
File diff suppressed because it is too large
Load Diff
9
urls.txt
Normal file
9
urls.txt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
SQLite:
|
||||||
|
http://www.sqlite.org
|
||||||
|
SQLite is in public domain
|
||||||
|
|
||||||
|
LuaSQLite3:
|
||||||
|
http://lua.sqlite.org
|
||||||
|
http://lua.sqlite.org/index.cgi/doc/tip/doc/lsqlite3.wiki -- documentation
|
||||||
|
License for LuaSQLite is stored in $/install/LuaSQLite3-LICENSE.txt and distributed with the executables
|
Loading…
x
Reference in New Issue
Block a user