diff options
Diffstat (limited to 'ports/sqlite3')
| -rw-r--r-- | ports/sqlite3/CMakeLists.txt | 16 | ||||
| -rw-r--r-- | ports/sqlite3/CONTROL | 3 | ||||
| -rw-r--r-- | ports/sqlite3/portfile.cmake | 19 |
3 files changed, 38 insertions, 0 deletions
diff --git a/ports/sqlite3/CMakeLists.txt b/ports/sqlite3/CMakeLists.txt new file mode 100644 index 000000000..3d5f73a4a --- /dev/null +++ b/ports/sqlite3/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.0) +project(sqlite3 C) + +include_directories(${SOURCE}) +add_library(sqlite3 SHARED ${SOURCE}/sqlite3.c) +target_compile_definitions(sqlite3 PRIVATE $<$<CONFIG:Debug>:-DSQLITE_DEBUG> "-DSQLITE_API=__declspec(dllexport)") +if(TRIPLET_SYSTEM_NAME MATCHES "WindowsStore") + target_compile_definitions(sqlite3 PRIVATE -DSQLITE_OS_WINRT=1) +endif() + +install(TARGETS sqlite3 + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) +install(FILES ${SOURCE}/sqlite3.h ${SOURCE}/sqlite3ext.h DESTINATION include CONFIGURATIONS Release) diff --git a/ports/sqlite3/CONTROL b/ports/sqlite3/CONTROL new file mode 100644 index 000000000..886051482 --- /dev/null +++ b/ports/sqlite3/CONTROL @@ -0,0 +1,3 @@ +Source: sqlite3 +Version: 3120200 +Description: SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.
\ No newline at end of file diff --git a/ports/sqlite3/portfile.cmake b/ports/sqlite3/portfile.cmake new file mode 100644 index 000000000..b9cc6abe3 --- /dev/null +++ b/ports/sqlite3/portfile.cmake @@ -0,0 +1,19 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "http://www.sqlite.org/2016/sqlite-amalgamation-3120200.zip" + FILENAME "sqlite-amalgamation-3120200.zip" + MD5 e3b10b952f075252169ac613068ccc97 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${CMAKE_CURRENT_LIST_DIR} + OPTIONS + -DSOURCE=${CURRENT_BUILDTREES_DIR}/src/sqlite-amalgamation-3120200 +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(WRITE ${CURRENT_PACKAGES_DIR}/share/sqlite3/copyright "SQLite is in the Public Domain.\nhttp://www.sqlite.org/copyright.html\n") +vcpkg_copy_pdbs() |
