aboutsummaryrefslogtreecommitdiff
path: root/scripts/test_ports
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test_ports')
-rw-r--r--scripts/test_ports/vcpkg-find-acquire-program/CONTROL4
-rw-r--r--scripts/test_ports/vcpkg-find-acquire-program/portfile.cmake21
2 files changed, 25 insertions, 0 deletions
diff --git a/scripts/test_ports/vcpkg-find-acquire-program/CONTROL b/scripts/test_ports/vcpkg-find-acquire-program/CONTROL
new file mode 100644
index 000000000..6f248be58
--- /dev/null
+++ b/scripts/test_ports/vcpkg-find-acquire-program/CONTROL
@@ -0,0 +1,4 @@
+Source: vcpkg-find-acquire-program
+Version: 0
+Description: Test port to exercise vcpkg_find_acquire_program
+Supports: windows
diff --git a/scripts/test_ports/vcpkg-find-acquire-program/portfile.cmake b/scripts/test_ports/vcpkg-find-acquire-program/portfile.cmake
new file mode 100644
index 000000000..88a4856c5
--- /dev/null
+++ b/scripts/test_ports/vcpkg-find-acquire-program/portfile.cmake
@@ -0,0 +1,21 @@
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+
+if(CMAKE_HOST_WIN32)
+ foreach(PROG GO JOM NASM PERL YASM GIT PYTHON3 PYTHON2 RUBY 7Z NUGET FLEX BISON GPERF GASPREPROCESSOR DARK SCONS SWIG DOXYGEN ARIA2 PKGCONFIG)
+ vcpkg_find_acquire_program(${PROG})
+ foreach(SUBPROG IN LISTS ${PROG})
+ if(NOT EXISTS "${SUBPROG}")
+ message(FATAL_ERROR "Program ${SUBPROG} did not exist.")
+ endif()
+ endforeach()
+ endforeach()
+endif()
+
+foreach(PROG GN NINJA MESON BAZEL)
+ vcpkg_find_acquire_program(${PROG})
+ foreach(SUBPROG IN LISTS ${PROG})
+ if(NOT EXISTS "${SUBPROG}")
+ message(FATAL_ERROR "Program ${SUBPROG} did not exist.")
+ endif()
+ endforeach()
+endforeach()