Write Requires.private in pc files based off discovered TERMINFO_LIBRARIES #1635

pull/1637/head
nick black 3 years ago
parent 052b9148e7
commit 0d70d73100
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -83,6 +83,7 @@ set_package_properties(Threads PROPERTIES TYPE REQUIRED)
pkg_search_module(TERMINFO REQUIRED tinfo>=6.1 ncursesw>=6.1)
set_property(GLOBAL APPEND PROPERTY PACKAGES_FOUND terminfo)
set_package_properties(terminfo PROPERTIES TYPE REQUIRED)
set(PKGCONF_REQ_PRIV "${TERMINFO_LIBRARIES}")
pkg_search_module(READLINE REQUIRED readline>=8.0)
set_property(GLOBAL APPEND PROPERTY PACKAGES_FOUND readline)
set_package_properties(readline PROPERTIES TYPE REQUIRED)

@ -447,7 +447,7 @@ write_kitty_data(FILE* fp, int linesize, int leny, int lenx,
*parse_start = fprintf(fp, "\e_Gf=32,s=%d,v=%d,i=%d,a=T,%c=1;",
lenx, leny, sprixelid, chunks ? 'm' : 'q');
}else{
fprintf(fp, "\e_G%sm=%d;", chunks ? "" : "q=1,", chunks ? 1 : 0);
fprintf(fp, "\e_G%sm=%d;", chunks ? "" : "q=2,", chunks ? 1 : 0);
}
if((targetout += RGBA_MAXLEN) > total){
targetout = total;

@ -8,7 +8,7 @@ Description: TUI library for modern terminal emulators (core library)
Version: @PROJECT_VERSION@
Requires:
Requires.private: tinfo
Requires.private: @PKGCONF_REQ_PRIV@
Libs: -L${libdir} -lnotcurses-core
Libs.private: -lunistring -lm
Cflags: -I${includedir}

Loading…
Cancel
Save