mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
added static build support to sqlite
more static support more sqlite changes finally done with sqlite static
This commit is contained in:
parent
20a9bb8acb
commit
035952b242
@ -2,9 +2,17 @@ cmake_minimum_required(VERSION 3.0)
|
||||
project(sqlite3 C)
|
||||
|
||||
include_directories(${SOURCE})
|
||||
add_library(sqlite3 SHARED ${SOURCE}/sqlite3.c)
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(API "-DSQLITE_API=__declspec(dllexport)")
|
||||
else()
|
||||
set(API "-DSQLITE_API=extern")
|
||||
endif()
|
||||
add_library(sqlite3 ${SOURCE}/sqlite3.c)
|
||||
|
||||
|
||||
target_compile_definitions(sqlite3 PRIVATE
|
||||
$<$<CONFIG:Debug>:-DSQLITE_DEBUG> "-DSQLITE_API=__declspec(dllexport)"
|
||||
$<$<CONFIG:Debug>:-DSQLITE_DEBUG>
|
||||
${API}
|
||||
-DSQLITE_ENABLE_RTREE
|
||||
-DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
)
|
||||
|
@ -1,3 +1,4 @@
|
||||
include(${CMAKE_TRIPLET_FILE})
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/sqlite-amalgamation-3150000)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
@ -14,7 +15,7 @@ vcpkg_configure_cmake(
|
||||
OPTIONS
|
||||
-DSOURCE=${SOURCE_PATH}
|
||||
)
|
||||
|
||||
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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user