diff --git a/scripts/test_ports/vcpkg-ci-yoga/portfile.cmake b/scripts/test_ports/vcpkg-ci-yoga/portfile.cmake new file mode 100644 index 0000000000..d1ab44ac5a --- /dev/null +++ b/scripts/test_ports/vcpkg-ci-yoga/portfile.cmake @@ -0,0 +1,6 @@ +set(VCPKG_POLICY_EMPTY_PACKAGE enabled) + +vcpkg_cmake_configure( + SOURCE_PATH "${CURRENT_PORT_DIR}/project" +) +vcpkg_cmake_build() diff --git a/scripts/test_ports/vcpkg-ci-yoga/project/CMakeLists.txt b/scripts/test_ports/vcpkg-ci-yoga/project/CMakeLists.txt new file mode 100644 index 0000000000..5f81db9dc6 --- /dev/null +++ b/scripts/test_ports/vcpkg-ci-yoga/project/CMakeLists.txt @@ -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) diff --git a/scripts/test_ports/vcpkg-ci-yoga/project/main.cpp b/scripts/test_ports/vcpkg-ci-yoga/project/main.cpp new file mode 100644 index 0000000000..19f25181ec --- /dev/null +++ b/scripts/test_ports/vcpkg-ci-yoga/project/main.cpp @@ -0,0 +1,8 @@ +#include + +int main() { + YGNodeRef node = YGNodeNew(); + if (node == nullptr) return 1; + YGNodeFree(node); + return 0; +} diff --git a/scripts/test_ports/vcpkg-ci-yoga/vcpkg.json b/scripts/test_ports/vcpkg-ci-yoga/vcpkg.json new file mode 100644 index 0000000000..6c631150a2 --- /dev/null +++ b/scripts/test_ports/vcpkg-ci-yoga/vcpkg.json @@ -0,0 +1,14 @@ +{ + "name": "vcpkg-ci-yoga", + "version-string": "ci", + "description": "Validates yoga", + "dependencies": [ + { + "name": "yoga" + }, + { + "name": "vcpkg-cmake", + "host": true + } + ] +}