mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +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:
parent
b36ab480bf
commit
65ddd0553b
Notes:
sideshowbarker
2024-07-17 05:58:46 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/65ddd0553b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/45 Reviewed-by: https://github.com/ADKaster ✅
4 changed files with 32 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
cmake_minimum_required(VERSION 3.25)
|
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
|
project(ladybird
|
||||||
VERSION 0.1.0
|
VERSION 0.1.0
|
||||||
LANGUAGES C CXX
|
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_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}>)
|
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})
|
foreach(header ${GENERATED_SOURCES})
|
||||||
get_filename_component(extension ${header} EXT)
|
get_filename_component(extension ${header} EXT)
|
||||||
if (NOT "${extension}" STREQUAL ".h")
|
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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue