aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAdam Johnson <AdamJohnso@gmail.com>2021-04-30 14:12:25 -0400
committerGitHub <noreply@github.com>2021-04-30 11:12:25 -0700
commitcc726b6a6d0e8cb6da0a5af16fb62ea67706b49b (patch)
treebda42c3c2a4f2505085ce8449727893c8d1aa345 /scripts
parentefddfbf13e65a096146bda3580abb11a1aac5288 (diff)
downloadvcpkg-cc726b6a6d0e8cb6da0a5af16fb62ea67706b49b.tar.gz
vcpkg-cc726b6a6d0e8cb6da0a5af16fb62ea67706b49b.zip
[ncurses] Add new port (#17226)
* [ncurses] Add new port. * x-add-version * Test ncurses port against CMake.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/test_ports/cmake/portfile.cmake8
-rw-r--r--scripts/test_ports/cmake/vcpkg.json4
2 files changed, 12 insertions, 0 deletions
diff --git a/scripts/test_ports/cmake/portfile.cmake b/scripts/test_ports/cmake/portfile.cmake
index b08df8afb..9df7b3f43 100644
--- a/scripts/test_ports/cmake/portfile.cmake
+++ b/scripts/test_ports/cmake/portfile.cmake
@@ -10,6 +10,10 @@ vcpkg_from_gitlab(
HEAD_REF master
)
+if(NOT VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_UWP)
+ set(BUILD_CURSES_DIALOG ON)
+endif()
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
@@ -26,6 +30,7 @@ vcpkg_configure_cmake(
-DCMAKE_USE_SYSTEM_JSONCPP=ON
-DCMAKE_USE_SYSTEM_LIBRHASH=OFF # not yet in VCPKG
-DCMAKE_USE_SYSTEM_LIBUV=ON
+ -DBUILD_CursesDialog=${BUILD_CURSES_DIALOG}
-DBUILD_QtDialog=ON # Just to test Qt with CMake
)
@@ -37,6 +42,9 @@ if(NOT VCPKG_TARGET_IS_OSX)
if(VCPKG_TARGET_IS_WINDOWS)
list(APPEND _tools cmcldeps)
endif()
+ if(BUILD_CURSES_DIALOG)
+ list(APPEND _tools ccmake)
+ endif()
vcpkg_copy_tools(TOOL_NAMES ${_tools} AUTO_CLEAN)
else()
# On OSX everything is within a CMake.app folder
diff --git a/scripts/test_ports/cmake/vcpkg.json b/scripts/test_ports/cmake/vcpkg.json
index 5ffb7f124..c2c4d9752 100644
--- a/scripts/test_ports/cmake/vcpkg.json
+++ b/scripts/test_ports/cmake/vcpkg.json
@@ -11,6 +11,10 @@
"libarchive",
"liblzma",
"libuv",
+ {
+ "name": "ncurses",
+ "platform": "!(windows | uwp)"
+ },
"nghttp2",
"qt5-base",
{