mirror of https://github.com/microsoft/vcpkg.git
[vcpkg-ci-yoga] New ci port (#52084)
This commit is contained in:
parent
65bda91bbe
commit
5973aa585d
|
|
@ -0,0 +1,6 @@
|
|||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${CURRENT_PORT_DIR}/project"
|
||||
)
|
||||
vcpkg_cmake_build()
|
||||
|
|
@ -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)
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
#include <yoga/Yoga.h>
|
||||
|
||||
int main() {
|
||||
YGNodeRef node = YGNodeNew();
|
||||
if (node == nullptr) return 1;
|
||||
YGNodeFree(node);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"name": "vcpkg-ci-yoga",
|
||||
"version-string": "ci",
|
||||
"description": "Validates yoga",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "yoga"
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue