mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 06:29:07 +08:00
48 lines
1.3 KiB
CMake
48 lines
1.3 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
set(SQLITE_VERSION 3300100)
|
|
set(SQLITE_HASH 030b53fe684e0fb8e9747b1f160e5e875807eabb0763caff66fe949ee6aa92f26f409b9b25034d8d1f5cee554a99e56a2bb92129287b0fe0671409babe9d18ea )
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://sqlite.org/2019/sqlite-amalgamation-${SQLITE_VERSION}.zip"
|
|
FILENAME "sqlite-amalgamation-${SQLITE_VERSION}.zip"
|
|
SHA512 ${SQLITE_HASH}
|
|
)
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
ARCHIVE ${ARCHIVE}
|
|
REF ${SQLITE_VERSION}
|
|
PATCHES fix-arm-uwp.patch
|
|
)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
set(SQLITE3_SKIP_TOOLS ON)
|
|
if("tool" IN_LIST FEATURES)
|
|
set(SQLITE3_SKIP_TOOLS OFF)
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DSQLITE3_SKIP_TOOLS=${SQLITE3_SKIP_TOOLS}
|
|
OPTIONS_DEBUG
|
|
-DSQLITE3_SKIP_TOOLS=ON
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_fixup_cmake_targets()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
configure_file(
|
|
${CMAKE_CURRENT_LIST_DIR}/sqlite3-config.in.cmake
|
|
${CURRENT_PACKAGES_DIR}/share/sqlite3/sqlite3-config.cmake
|
|
@ONLY
|
|
)
|
|
|
|
file(WRITE ${CURRENT_PACKAGES_DIR}/share/sqlite3/copyright "SQLite is in the Public Domain.\nhttp://www.sqlite.org/copyright.html\n")
|
|
vcpkg_copy_pdbs()
|