diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/readline | |
Diffstat (limited to 'vcpkg/ports/readline')
| -rw-r--r-- | vcpkg/ports/readline/portfile.cmake | 6 | ||||
| -rw-r--r-- | vcpkg/ports/readline/usage | 10 | ||||
| -rw-r--r-- | vcpkg/ports/readline/vcpkg.json | 17 |
3 files changed, 33 insertions, 0 deletions
diff --git a/vcpkg/ports/readline/portfile.cmake b/vcpkg/ports/readline/portfile.cmake new file mode 100644 index 0000000..a9543d1 --- /dev/null +++ b/vcpkg/ports/readline/portfile.cmake @@ -0,0 +1,6 @@ +if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
+ message(FATAL_ERROR "No implementation of readline is currently available for UWP targets")
+endif()
+
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+FILE(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/readline/usage b/vcpkg/ports/readline/usage new file mode 100644 index 0000000..6127e2a --- /dev/null +++ b/vcpkg/ports/readline/usage @@ -0,0 +1,10 @@ +the package readline can be used under windows via:
+
+ find_package(unofficial-readline-win32 CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE unofficial::readline-win32::readline)
+
+The package readline can be imported via the CMake FindPkgConfig module:
+
+ find_package(PkgConfig REQUIRED)
+ pkg_check_modules(readline REQUIRED IMPORTED_TARGET readline)
+ target_link_libraries(main PRIVATE PkgConfig::readline)
diff --git a/vcpkg/ports/readline/vcpkg.json b/vcpkg/ports/readline/vcpkg.json new file mode 100644 index 0000000..a021fe3 --- /dev/null +++ b/vcpkg/ports/readline/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "readline", + "version": "0", + "port-version": 5, + "description": "GNU readline and history libraries", + "supports": "!uwp", + "dependencies": [ + { + "name": "readline-unix", + "platform": "!windows" + }, + { + "name": "readline-win32", + "platform": "windows" + } + ] +} |