diff options
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui')
4 files changed, 104 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/portfile.cmake new file mode 100644 index 0000000..d1ab44a --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/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/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/CMakeLists.txt new file mode 100644 index 0000000..4d03bc6 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.30) +project(hello-imgui-test CXX) + +set(CMAKE_CXX_STANDARD 17) + +find_package(hello-imgui CONFIG REQUIRED) + +add_executable(main main.cpp) +target_link_libraries(main PRIVATE + hello-imgui::hello_imgui +) diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/main.cpp b/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/main.cpp new file mode 100644 index 0000000..12433aa --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/main.cpp @@ -0,0 +1,10 @@ +#include <hello_imgui/hello_imgui.h> + +int main() +{ + HelloImGui::Run([]() { + ImGui::Text("Hello vcpkg"); + ImGui::ShowDemoWindow(); + }); + return 0; +} diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/vcpkg.json new file mode 100644 index 0000000..a74ede4 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/vcpkg.json @@ -0,0 +1,77 @@ +{ + "name": "vcpkg-ci-hello-imgui", + "version-string": "ci", + "description": "Port to force features of hello-imgui within CI", + "homepage": "https://github.com/microsoft/vcpkg", + "license": "MIT", + "dependencies": [ + { + "name": "hello-imgui", + "default-features": false + }, + { + "name": "vcpkg-cmake", + "host": true + } + ], + "default-features": [ + "all" + ], + "features": { + "all": { + "description": "Test all features", + "dependencies": [ + { + "name": "hello-imgui", + "features": [ + "glfw-binding", + "opengl3-binding", + "test-engine" + ], + "platform": "linux" + }, + { + "$comment": "No platform backend available since removal of imgui[sdl2-binding]", + "name": "hello-imgui", + "features": [ + "opengl3-binding" + ], + "platform": "android" + }, + { + "name": "hello-imgui", + "features": [ + "glfw-binding", + "metal-binding" + ], + "platform": "ios | osx" + }, + { + "name": "hello-imgui", + "features": [ + "glfw-binding", + "opengl3-binding" + ], + "platform": "x64 & windows" + }, + { + "name": "hello-imgui", + "features": [ + "experimental-dx11-binding", + "glfw-binding" + ], + "platform": "x86 & windows" + }, + { + "name": "hello-imgui", + "features": [ + "experimental-vulkan-binding", + "glfw-binding", + "test-engine" + ], + "platform": "arm64 & windows" + } + ] + } + } +} |