File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 2525xmake_sh_projectdir=$( X= cd -- " $( dirname -- " $0 " ) " && pwd -P)
2626xmake_sh_builddir=" build"
2727xmake_sh_version=" 1.0.5"
28- xmake_sh_verbose=true
29- xmake_sh_diagnosis=true
28+ xmake_sh_verbose=false
29+ xmake_sh_diagnosis=false
3030xmake_sh_copyright=" Copyright (C) 2022-present Ruki Wang, https://xmake.io."
3131xmake_sh_makefile=" ${xmake_sh_projectdir} /Makefile"
3232xmake_sh_ninjafile=" ${xmake_sh_projectdir} /build.ninja"
Original file line number Diff line number Diff line change @@ -99,6 +99,9 @@ option("curses")
9999 if is_plat (" mingw" ) then
100100 option :add (" cincludes" , " ncursesw/curses.h" )
101101 option :add (" links" , " ncursesw" )
102+ elseif is_plat (" macosx" ) then
103+ option :add (" cincludes" , " curses.h" )
104+ option :add (" links" , " ncurses" )
102105 else
103106 option :add (" cincludes" , " curses.h" )
104107 option :add (" links" , " curses" )
Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ option_find_curses() {
7171 if test_nz " ${ncurses_ldflags} " ; then
7272 add_cflags ` pkg-config --cflags ${ncurses} 2> /dev/null`
7373 add_ldflags " ${ncurses_ldflags} "
74+ elif is_plat " macosx" ; then
75+ add_links " ncurses"
7476 else
7577 add_links " curses"
7678 fi
You can’t perform that action at this time.
0 commit comments