early-access version 2853
This commit is contained in:
56
externals/vcpkg/ports/readline-win32/CMakeLists.txt
vendored
Executable file
56
externals/vcpkg/ports/readline-win32/CMakeLists.txt
vendored
Executable file
@@ -0,0 +1,56 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
project(readline C)
|
||||
|
||||
add_definitions(-DREADLINE_LIBRARY)
|
||||
add_definitions(-DHAVE_CONFIG_H)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
add_definitions(-DBUILD_READLINE_DLL)
|
||||
else()
|
||||
add_definitions(-DREADLINE_STATIC)
|
||||
endif()
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR} # thats where the config.h is located
|
||||
)
|
||||
|
||||
add_library(readline
|
||||
readline.c
|
||||
funmap.c
|
||||
keymaps.c
|
||||
vi_mode.c
|
||||
parens.c
|
||||
rltty.c
|
||||
complete.c
|
||||
bind.c
|
||||
isearch.c
|
||||
display.c
|
||||
signals.c
|
||||
util.c
|
||||
kill.c
|
||||
undo.c
|
||||
macro.c
|
||||
input.c
|
||||
callback.c
|
||||
terminal.c
|
||||
xmalloc.c
|
||||
history.c
|
||||
histsearch.c
|
||||
histexpand.c
|
||||
histfile.c
|
||||
nls.c
|
||||
search.c
|
||||
shell.c
|
||||
savestring.c
|
||||
tilde.c
|
||||
text.c
|
||||
misc.c
|
||||
compat.c
|
||||
mbutil.c
|
||||
support/wcwidth.c)
|
||||
|
||||
install(TARGETS readline
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
58
externals/vcpkg/ports/readline-win32/config.h
vendored
Executable file
58
externals/vcpkg/ports/readline-win32/config.h
vendored
Executable file
@@ -0,0 +1,58 @@
|
||||
#define RETSIGTYPE void
|
||||
#define VOID_SIGHANDLER 1
|
||||
#define PROTOTYPES 1
|
||||
#define HAVE_ISASCII 1
|
||||
#define HAVE_ISXDIGIT 1
|
||||
#define HAVE_MBRLEN 1
|
||||
#define HAVE_MBRTOWC 1
|
||||
#define HAVE_MBRTOWC 1
|
||||
#define HAVE_MBSRTOWCS 1
|
||||
#define HAVE_MEMMOVE 1
|
||||
#define HAVE_PUTENV 1
|
||||
#define HAVE_SETENV 1
|
||||
#define HAVE_SETLOCALE 1
|
||||
#define HAVE_STRCOLL 1
|
||||
#define STRCOLL_BROKEN 1
|
||||
#define HAVE_STRPBRK 1
|
||||
#define HAVE_TCGETATTR 1
|
||||
#define HAVE_VSNPRINTF 1
|
||||
#define HAVE_WCTOMB 1
|
||||
#define HAVE_WCWIDTH 1
|
||||
#define STDC_HEADERS 1
|
||||
#define HAVE_LANGINFO_H 1
|
||||
#define HAVE_LIMITS_H 1
|
||||
#define HAVE_LOCALE_H 1
|
||||
#define HAVE_MEMORY_H 1
|
||||
#define HAVE_STDARG_H 1
|
||||
#define HAVE_STDLIB_H 1
|
||||
#define HAVE_STRING_H 1
|
||||
#define HAVE_TERMIOS_H 1
|
||||
#define HAVE_WCHAR_H 1
|
||||
#define HAVE_WCTYPE_H 1
|
||||
#define HAVE_MBSTATE_T 1
|
||||
#define HAVE_LANGINFO_CODESET 1
|
||||
#define VOID_SIGHANDLER 1
|
||||
#define STRUCT_WINSIZE_IN_SYS_IOCTL 1
|
||||
#define HAVE_GETPW_DECLS 1
|
||||
#define MUST_REINSTALL_SIGHANDLERS 1
|
||||
#define CTYPE_NON_ASCII 1
|
||||
|
||||
/* Ultrix botches type-ahead when switching from canonical to
|
||||
non-canonical mode, at least through version 4.3 */
|
||||
#if !defined (HAVE_TERMIOS_H) || !defined (HAVE_TCGETATTR) || defined (ultrix)
|
||||
# define TERMIOS_MISSING
|
||||
#endif
|
||||
|
||||
#if defined (STRCOLL_BROKEN)
|
||||
# define HAVE_STRCOLL 1
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) && defined (HAVE_STDARG_H)
|
||||
# define PREFER_STDARG
|
||||
# define USE_VARARGS
|
||||
#else
|
||||
# if defined (HAVE_VARARGS_H)
|
||||
# define PREFER_VARARGS
|
||||
# define USE_VARARGS
|
||||
# endif
|
||||
#endif
|
||||
26
externals/vcpkg/ports/readline-win32/portfile.cmake
vendored
Executable file
26
externals/vcpkg/ports/readline-win32/portfile.cmake
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO lltcggie/readline
|
||||
REF ea414b4e98475e3976198738061824e8a8379a50
|
||||
SHA512 82d54ab3e19fb2673fe97eff07117d36704791669baa283ec737c704635f872e4c7cd30485a6648d445cb2912e4364286e664e9425444f456a4c862b9e4de843
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}/src/readline/5.0/readline-5.0-src)
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h DESTINATION ${SOURCE_PATH}/src/readline/5.0/readline-5.0-src)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}/src/readline/5.0/readline-5.0-src
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
# Copy headers
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include/readline)
|
||||
file(GLOB headers "${SOURCE_PATH}/src/readline/5.0/readline-5.0-src/*.h")
|
||||
file(COPY ${headers} DESTINATION ${CURRENT_PACKAGES_DIR}/include/readline)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/src/readline/5.0/readline-5.0-src/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
8
externals/vcpkg/ports/readline-win32/vcpkg.json
vendored
Executable file
8
externals/vcpkg/ports/readline-win32/vcpkg.json
vendored
Executable file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "readline-win32",
|
||||
"version": "5.0",
|
||||
"port-version": 4,
|
||||
"description": "Implementation of readline for Windows Desktop",
|
||||
"homepage": "https://github.com/lltcggie",
|
||||
"supports": "windows & !uwp"
|
||||
}
|
||||
Reference in New Issue
Block a user