aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw
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-mzying2001-sw
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw/portfile.cmake5
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw/project/CMakeLists.txt7
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw/project/main.cpp13
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw/vcpkg.json12
4 files changed, 37 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw/portfile.cmake
new file mode 100644
index 0000000..8a2079b
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw/portfile.cmake
@@ -0,0 +1,5 @@
+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-mzying2001-sw/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw/project/CMakeLists.txt
new file mode 100644
index 0000000..b700acb
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw/project/CMakeLists.txt
@@ -0,0 +1,7 @@
+cmake_minimum_required(VERSION 3.25.1)
+project(mzying2001-sw-test LANGUAGES CXX)
+set(CMAKE_CXX_STANDARD 14)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+find_package(sw CONFIG REQUIRED)
+add_executable(main main.cpp)
+target_link_libraries(main PRIVATE sw::sw)
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw/project/main.cpp b/vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw/project/main.cpp
new file mode 100644
index 0000000..8c9197e
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw/project/main.cpp
@@ -0,0 +1,13 @@
+#include <sw/SimpleWindow.h>
+int main()
+{
+ sw::Window wnd;
+ sw::Button btn;
+ wnd.SetLayout<sw::FillLayout>();
+ btn.AddHandler(sw::ButtonBase_Clicked,
+ [](sw::UIElement& sender, sw::RoutedEventArgs& e) {
+ sw::MsgBox::Show(L"Hello, SimpleWindow!");
+ });
+ wnd.AddChild(btn);
+ return 0;
+}
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw/vcpkg.json
new file mode 100644
index 0000000..c30a469
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-mzying2001-sw/vcpkg.json
@@ -0,0 +1,12 @@
+{
+ "name": "vcpkg-ci-mzying2001-sw",
+ "version-string": "ci",
+ "description": "Validates mzying2001-sw",
+ "dependencies": [
+ "mzying2001-sw",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}