aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/portfile.cmake6
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/CMakeLists.txt11
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/main.cpp10
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/vcpkg.json77
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"
+ }
+ ]
+ }
+ }
+}