[vcpkg-ci-yoga] New ci port (#52084)

This commit is contained in:
Weihang Ding 2026-06-01 16:13:11 +08:00 committed by GitHub
parent 65bda91bbe
commit 5973aa585d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,6 @@
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
vcpkg_cmake_configure(
SOURCE_PATH "${CURRENT_PORT_DIR}/project"
)
vcpkg_cmake_build()

View File

@ -0,0 +1,7 @@
cmake_minimum_required(VERSION 3.16)
project(vcpkg-ci-yoga)
find_package(yoga CONFIG REQUIRED)
add_executable(main main.cpp)
target_link_libraries(main PRIVATE yoga::yogacore)

View File

@ -0,0 +1,8 @@
#include <yoga/Yoga.h>
int main() {
YGNodeRef node = YGNodeNew();
if (node == nullptr) return 1;
YGNodeFree(node);
return 0;
}

View File

@ -0,0 +1,14 @@
{
"name": "vcpkg-ci-yoga",
"version-string": "ci",
"description": "Validates yoga",
"dependencies": [
{
"name": "yoga"
},
{
"name": "vcpkg-cmake",
"host": true
}
]
}