)
UL_BUILD_INIT([libsmartcols])
AM_CONDITIONAL([BUILD_LIBSMARTCOLS], [test "x$build_libsmartcols" = xyes])
-AM_CONDITIONAL([BUILD_LIBSMARTCOLS_TESTS], [test "x$build_libsmartcols" = xyes -a "x$enable_static" = xyes])
AC_SUBST([LIBSMARTCOLS_VERSION])
AC_SUBST([LIBSMARTCOLS_VERSION_INFO])
if BUILD_LIBSMARTCOLS
include libsmartcols/src/Makemodule.am
+include libsmartcols/samples/Makemodule.am
if ENABLE_GTK_DOC
# Docs uses separate Makefiles
}
scols_table_enable_colors(tb, 1);
- scols_table_set_title(tb, "This is table title", SCOLS_TITLE_CENTER, "red");
-
setup_columns(tb, notree);
- while (optind < argc)
+ if (optind == argc)
+ add_lines(tb, ".");
+ else while (optind < argc)
add_lines(tb, argv[optind++]);
scols_print_table(tb);
libsmartcols/src/libsmartcols.sym \
libsmartcols/src/libsmartcols.h.in
-
-if BUILD_LIBSMARTCOLS_TESTS
-check_PROGRAMS += test_smartcols
-
-libsmartcols_tests_cflags = $(libsmartcols_la_CFLAGS)
-libsmartcols_tests_ldadd = libsmartcols.la libcommon.la libtcolors.la
-
-test_smartcols_SOURCES = libsmartcols/src/test.c
-test_smartcols_CFLAGS = $(libsmartcols_tests_cflags)
-test_smartcols_LDADD = $(libsmartcols_tests_ldadd)
-endif # BUILD_LIBSMARTCOLS_TESTS
-
-
# move lib from $(usrlib_execdir) to $(libdir) if needed
install-exec-hook-libsmartcols:
if test "$(usrlib_execdir)" != "$(libdir)" -a -f "$(DESTDIR)$(usrlib_execdir)/libsmartcols.so"; then \
* Gets the value of @cl's flag wrap.
*
* Returns: wrap flag value, negative value in case of an error.
+ *
+ * Since: 2.28
*/
int scols_column_is_wrap(struct libscols_column *cl)
{