mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Meta+LibWebView: Install and link sqlite3 with vcpkg
We will use sqlite3 as a replacement for LibSQL. Using a tried-and-true database will allow us to avoid maintaining our an incomplete, non-ACID, and less performant implementation. It also means we do not have to launch and manage the singleton SQLServer process.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
cmake_minimum_required(VERSION 3.25)
|
||||
|
||||
SET(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake")
|
||||
set(VCPKG_INSTALL_OPTIONS --no-print-usage)
|
||||
|
||||
project(ladybird
|
||||
VERSION 0.1.0
|
||||
LANGUAGES C CXX
|
||||
|
||||
@@ -49,6 +49,10 @@ serenity_lib(LibWebView webview)
|
||||
target_link_libraries(LibWebView PRIVATE LibCore LibFileSystem LibGfx LibIPC LibProtocol LibJS LibWeb LibSQL LibUnicode LibURL)
|
||||
target_compile_definitions(LibWebView PRIVATE ENABLE_PUBLIC_SUFFIX=$<BOOL:${ENABLE_PUBLIC_SUFFIX_DOWNLOAD}>)
|
||||
|
||||
find_package(SQLite3 REQUIRED)
|
||||
target_include_directories(LibWebView PRIVATE ${SQLite3_INCLUDE_DIRS})
|
||||
target_link_libraries(LibWebView PRIVATE ${SQLite3_LIBRARIES})
|
||||
|
||||
foreach(header ${GENERATED_SOURCES})
|
||||
get_filename_component(extension ${header} EXT)
|
||||
if (NOT "${extension}" STREQUAL ".h")
|
||||
|
||||
14
vcpkg-configuration.json
Normal file
14
vcpkg-configuration.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"default-registry": {
|
||||
"kind": "git",
|
||||
"baseline": "01f602195983451bc83e72f4214af2cbc495aa94",
|
||||
"repository": "https://github.com/microsoft/vcpkg"
|
||||
},
|
||||
"registries": [
|
||||
{
|
||||
"kind": "artifact",
|
||||
"location": "https://github.com/microsoft/vcpkg-ce-catalog/archive/refs/heads/main.zip",
|
||||
"name": "microsoft"
|
||||
}
|
||||
]
|
||||
}
|
||||
11
vcpkg.json
Normal file
11
vcpkg.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"dependencies": [
|
||||
"sqlite3"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
"name": "sqlite3",
|
||||
"version": "3.45.3"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user