mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
Android: Integrate vcpkg with Gradle build
This ensures that vcpkg downloads and builds all dependencies for Android. We add it as a CMAKE_TOOLCHAIN_FILE that then chainloads the Android NDK's toolchain file, as per the vcpkg documentation.
This commit is contained in:
committed by
Andrew Kaster
parent
ab82fc8993
commit
1d0de0b450
Notes:
sideshowbarker
2024-07-16 22:54:10 +09:00
Author: https://github.com/thatoddmailbox Commit: https://github.com/LadybirdBrowser/ladybird/commit/1d0de0b450 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/402 Issue: https://github.com/LadybirdBrowser/ladybird/issues/220 Reviewed-by: https://github.com/ADKaster ✅
@@ -1,5 +1,12 @@
|
||||
cmake_minimum_required(VERSION 3.25)
|
||||
|
||||
if (VCPKG_TARGET_ANDROID)
|
||||
# If we are building for Android, we must load vcpkg_android.cmake before the project() declaration.
|
||||
# This ensures that the CMAKE_TOOLCHAIN_FILE is set correctly.
|
||||
# (we cannot set CMAKE_TOOLCHAIN_FILE from Gradle, unfortunately, so this is the only place we can do it.)
|
||||
include("Ladybird/Android/vcpkg_android.cmake")
|
||||
endif()
|
||||
|
||||
project(ladybird
|
||||
VERSION 0.1.0
|
||||
LANGUAGES C CXX
|
||||
|
||||
Reference in New Issue
Block a user