config.h: generate HAS_LIBREADLINE, do not add #include line for libreadline (yet) as this is wip
This commit is contained in:
parent
43c7e08521
commit
ba44bfb337
|
|
@ -2,6 +2,7 @@ put /local/xschem/cflags [@
|
|||
@cc/cflags@
|
||||
@?libs/sul/libjpeg/cflags@
|
||||
@?libs/gui/cairo/cflags@
|
||||
@?libs/tty/readline/cflags@
|
||||
@?libs/gui/xrender/cflags@
|
||||
@?libs/gui/xcb/cflags@
|
||||
@?libs/gui/xcb_render/cflags@
|
||||
|
|
@ -16,6 +17,7 @@ put /local/xschem/ldflags [@
|
|||
-lm
|
||||
@?libs/sul/libjpeg/ldflags@
|
||||
@?libs/gui/cairo/ldflags@
|
||||
@?libs/tty/readline/ldflags@
|
||||
@?libs/gui/xrender/ldflags@
|
||||
@?libs/gui/xcb/ldflags@
|
||||
@?libs/gui/xcb_render/ldflags@
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ put /local/xschem/includes [@
|
|||
@]
|
||||
|
||||
uniq /local/xschem/includes
|
||||
gsub /local/xschem/includes {[\\][n]} {\n}
|
||||
put /tmpasm/IFS { \t\r\n}
|
||||
|
||||
|
||||
|
|
@ -24,6 +25,9 @@ print {\n\n/* Uncomment following line to work around some GPU problems in graph
|
|||
print {/* with tiled fill pattern. Restore of damaged content will use XCopyArea() */\n}
|
||||
print {/* #define FIX_BROKEN_TILED_FILL 1 */}
|
||||
|
||||
print {\n\n/* Define this var if libreadline is available and is to be used */\n}
|
||||
print_ternary ?libs/tty/readline/presents {#define HAS_LIBREADLINE 1} {/*#undef HAS_LIBREADLINE */}
|
||||
|
||||
print {\n\n/* Define this var if libjpeg is available and is to be used */\n}
|
||||
print_ternary ?libs/sul/libjpeg/presents {#define HAS_LIBJPEG 1} {/*#undef HAS_LIBJPEG */}
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ include $(SRC)/parsgen/Makefile.plugin
|
|||
include $(SRC)/gui/Makefile.plugin
|
||||
|
||||
# Comment this line if you do not need tty (nurses, slang, pty-related calls)
|
||||
#include $(SRC)/tty/Makefile.plugin
|
||||
include $(SRC)/tty/Makefile.plugin
|
||||
|
||||
# Comment this line if you do not need software utility libs (gen*, glib)
|
||||
#include $(SRC)/sul/Makefile.plugin
|
||||
|
|
|
|||
|
|
@ -297,6 +297,7 @@ int hook_detect_target()
|
|||
require("fstools/awk", 0, 1);
|
||||
require("libs/gui/xpm/*", 0, 1);
|
||||
require("libs/gui/cairo/*", 0, 0);
|
||||
require("libs/tty/readline/*", 0, 0);
|
||||
require("libs/sul/libjpeg/*", 0, 0);
|
||||
/* require("libs/types/stdint/*", 0, 0); */
|
||||
require("sys/types/size/4_u_int", 0, 1);
|
||||
|
|
@ -372,6 +373,7 @@ int hook_generate()
|
|||
printf(" tcl: %s\n", get("/target/libs/script/tcl/ldflags"));
|
||||
printf(" tk: %s\n", get("/target/libs/script/tk/ldflags"));
|
||||
printf(" cairo: %s\n", istrue(get("/target/libs/gui/cairo/presents")) ? "yes" : "no");
|
||||
printf(" readline: %s\n", istrue(get("/target/libs/tty/readline/presents")) ? "yes" : "no");
|
||||
printf(" libjpeg: %s\n", istrue(get("/target/libs/sul/libjpeg/presents")) ? "yes" : "no");
|
||||
printf(" xcb: %s\n", istrue(get("/target/libs/gui/xcb/presents")) ? "yes" : "no");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue