Commit Graph

519 Commits (master)

Author SHA1 Message Date
nick black d50a7a8e99
windows: when building with msvc, don't require/use pkgconfig #2066 3 years ago
nick black c9fbc5d7f9
v2.3.15 3 years ago
nick black 28def058ce
v2.3.14 3 years ago
nick black 54c8189ed2
fix msys2 build for real 3 years ago
nick black a523973125
run all ctests in serial 3 years ago
nick black 39face9677
add sgr-direct to ctest suite 3 years ago
nick black ef417c3bbd build nctetris on windows 3 years ago
nick black bbaa3f4afa get ncls compiling on windows, windows terminal has quads+braille 3 years ago
nick black a0007a9a3c add u7/cnorm/civis to windows 3 years ago
nick black dd8700bddd bring terminfo back into windows build #2014 3 years ago
nick black 3f405f1cc1 don't look for terminfo/readline on windows #2009 3 years ago
nick black 187757e22e don't build ncls, nctetris, or ncplayer on windows for now 3 years ago
nick black ee2fcb4039 need TERMINFO_INCLUDE_DIRS for notcurses-demo on mac 3 years ago
nick black 4ed0e09e26
demo: move to fbuf for HUD, making it portable 3 years ago
nick black 9fcbf00420
v2.3.13 3 years ago
nick black 49729dcef9
drone: stop building rust while broken 3 years ago
nick black a69753dac4 demacroize ncplot_destroy() #1976 3 years ago
nick black 08b376c6c2
pull -fstack-protector from Ncpp builds #463 3 years ago
nick black 1e248e41e1
v2.3.12 3 years ago
nick black 14ca7b6bf5
use CMAKE_INSTALL{LIB,DATA}DIR not bare INSTALL_PREFIX 3 years ago
nick black e638ea09f9 CMake: defer to PKG_CONFIG_PATH if it exists #1933 3 years ago
nick black cc139d50b1 CMake: find homebrew deps on OS X #1933 3 years ago
nick black 1e2f3252bd
hark! a vagrant! get windows library linking 3 years ago
nick black e5d77037dc
CMake: link in ws2_32 on windows 3 years ago
nick black dd9e5bc312
CMake: exclude libm/librt on win32 3 years ago
nick black 30d71ab6b9
v2.3.11 3 years ago
igo95862 67c511edba Added compile target for dummy python module
Mostly used to check compilation and for Clangd LSP.
3 years ago
nick black 5a0e2a2ae5 CMake: link zlib into notcurses-core #1821 3 years ago
nick black c1e419fd9d CMake: demand Zlib 3 years ago
nick black 3aaff6a944
v2.3.10 3 years ago
nick black c74c03b948 LIBM, not LIBM_LIBRARIES 3 years ago
nick black 931fa8eb13 get everything building on OSX #195 3 years ago
nick black bc9a4344ae CMake: need terminfo include dirs for libnotcurse #195 3 years ago
nick black 1a4f567fe3 CMake: some reworking necessary for OS X #195 3 years ago
nick black 561f4eba8c
v2.3.9 3 years ago
nick black bc4f2a3626
CHANNELS_RGB_ -> NCCHANNELS_ 3 years ago
nick black 39a69239a3
drop -Wno-nonnull-compare 3 years ago
nick black 3c2fe36fc9
[kitty] pass C=1 for move command 3 years ago
nick black 1189891167
v2.3.8 3 years ago
nick black b4fb4ee20a
_FORTIFY_SOURCE, not FORTIFY_SOURCE, thanks Fedora! 3 years ago
nick black 8b6a30cba8
v2.3.7 3 years ago
nick black 5d92bcb69b find readline properly on freebsd 3 years ago
nick black b425771bce
don't install notcurses-tester.1 if not installing notcurses-tester #1824 3 years ago
nick black 2f24e221f3
CMake: don't install ncls/ncplayer man pages if they're not built #1824 3 years ago
nick black b1fd24a970 notcurses-info: use some coloring #1823 3 years ago
nick black 9ed9f6bfc0 add USE_READLINE cmake flag 3 years ago
nick black 481d539092
v2.3.6 3 years ago
nick black 2ed1ad466f
term_debug_caps: move big unicode block to notcurses-info #1793 3 years ago
nick black 42f9419006
debug_term: use unicode checks/xs when available 3 years ago
nick black ac652ac7f3
use -Wformat-security 3 years ago
nick black a14a5271ac
v2.3.5 3 years ago
nick black 4758946a49
run notcurses-info as part of ctest 3 years ago
nick black 160868d9e8
v2.3.4 3 years ago
nick black 4ca1036da9
v2.3.3 3 years ago
Michael Bradley, Jr 28b2555195 github actions workflow: macos, ubuntu, windows+msys2 3 years ago
nick black c56dfc2607
install caps-rendered as notcurses-info #1745 3 years ago
nick black 507d2c8d8e
v2.3.2 3 years ago
nick black 9c370806c5
CMake: define CMAKE_BUILD_TYPE prior to use 3 years ago
Nick Black cd2b5de5fa
Panblitter ncplane_as_rgba() (#1697)
ncplane_as_rgba: genericize across blitters

ncplane_as_rgba() previously was implemented explicitly
in terms of NCBLIT_2x1. it now uses the `egcs` field of the
`blitset`. this supports NCBLIT_2x2 and NCBLIT_3x2 in
ncplane_rgba(). Closes #1490.
3 years ago
nick black 1b4ffb9eab
CMake: restore INSTALL_DESTINATIONs with correct suffixes 3 years ago
nick black 5a3ff3f707
CMake: remove meaningless INSTALL_DESTINATIONs 3 years ago
nick black 739c96032d
v2.3.1 3 years ago
nick black ea4c593455
v2.3.0 3 years ago
nick black dc9db79100
v2.2.11 3 years ago
nick black 0d70d73100
Write Requires.private in pc files based off discovered TERMINFO_LIBRARIES #1635 3 years ago
nick black 2d6bdd3b5b
v2.2.10 3 years ago
nick black 923bc40516
v2.2.9 3 years ago
nick black 076792bdb8 CMake: properly link in libunistring, fixing notcurses-tester link on bsd #1617 3 years ago
nick black 1d99cc2628
CMake: verify presence of libunistring for linking 3 years ago
nick black d5b58d9f58
v2.2.8 3 years ago
nick black eefc4fb91f
v2.2.7 3 years ago
nick black e017dcba89
v2.2.6 3 years ago
nick black 8c78b089e1
v2.2.5 3 years ago
nick black acc5be058c [plots] move plot.cpp to C plot.c #1421 3 years ago
nick black 57114c8005
[bitmaps] remove redundant PixelWipeBlocks test 3 years ago
data-man 6d4635fc5b Change ON to OFF 3 years ago
data-man 58a4e86c97 Rename QR code support option 3 years ago
nick black 1f4ece224b
[cmake] add -Wno-nonnull-compare 3 years ago
nick black af680839bd
[cmake] remove sgr-direct from test set #1344 3 years ago
nick black c80736a887
cmake: drop -V for ctest 3 years ago
nick black bc84987af5
v2.2.3 3 years ago
nick black c882a44ac5 CMake: CMAKE_REQUIRED_INCLUDES everywhere #1387 3 years ago
nick black cef5e45be6
drone: use new debian unstable 2021-02-24a 3 years ago
nick black c10f5a40ce
v2.2.2 3 years ago
nick black e89c2bc566 CMakeLists.txt: switch from O0 to Og 3 years ago
nick black be4a9154a8
v2.2.1 3 years ago
nick black 3cdf7160de
v2.2.0 3 years ago
nick black 38e9051888
move tests to src/tests 3 years ago
nick black 54ca2249df
v2.1.8 3 years ago
nick black b8596a1b43
don't install INSTALL.md 3 years ago
nick black 66968cddab
write out NotcursesCoreConfigVersion.cmake 3 years ago
nick black e20fb4ac8f
install NotcursesCore cmake support files 3 years ago
nick black 7eafcfe598
rename notcurses-tetris -> nctetris 3 years ago
nick black 121f10a9c5
v2.1.7 3 years ago
nick black b4709bbb4e
tag libnotcurses.so with soversion 3 years ago
nick black 57271d09ce
v2.1.6 3 years ago
nick black 07ec5206cb
install notcurses-core.pc pkg-config support 3 years ago
nick black cde25b9431
ncneofetch: don't require multimedia 3 years ago
nick black 6bd288f056 Workable split of library
Rather than trying to force things in via library constructors
and weak symbols and --whole-archive and pkg-config tricks, just
add new functions ncdirect_core_init() and notcurses_core_init().
libnotcurses has ncdirect_init() and notcurses_init(), which pass
through to these. apps linking against notcurses-core ought use
the _core_ variants directly. This gets exactly the linkage we
want, everywhere. Convert many PoCs to _core_ variants. #1301

Signed-off-by: nick black <dankamongmen@gmail.com>
3 years ago
nick black 9cf2925f47
prepare NotcursesCoreConfig.cmake #1301 3 years ago
nick black bb3f9c1836
move c++ POCs into src/pocpp 3 years ago
nick black c1ea096d31
set CMAKE_LINK_WHAT_YOU_USE to ON #1300 3 years ago
nick black 05193af667
remove extraneous USE_MULTIMEDIA check #1300 3 years ago
nick black 1631818784
rename notcurses-view to ncplayer #1299 3 years ago
Nick Black 9112185657
Split up notcurses/notcurses-core (#1297)
Extract `libnotcurses-core` from `libnotcurses`. The former contains everything except multimedia code. The latter contains multimedia stuff (a wrapper around FFmpeg or OIIO). If built with `-DUSE_MULTIMEDIA=none`, there will not be any `libnotcurses.so` generated. `libnotcurses.so` uses library constructors/destructors to insert its implementation into the `ncvisual` stack at runtime. Users linking `-lnotcurses` will get the full implementation; users linking `-lnotcurses-core` only will get the stack less multimedia code.

The upshot of this is that someone can compile/install only `libnotcurses-core`, and a program linked against it will work just fine. This eliminates the need to install the full (large) dependency stack of the multimedia code unless necessary. This will hopefully be useful for e.g. installers etc. Closes #339.
3 years ago
nick black 3ecdde74d0
v2.1.5 3 years ago
nick black 09dcda0253
README: give DragonFly BSD some love #1121 3 years ago
nick black d4aef247ea
Fixes for DragonFly BSD from Weitian LI #1121 3 years ago
nick black 8283adc28f
Introduce src/compat/ for all bins
I've created the new files src/compat/compat.{hc}. These
are available to all binaries by adding src to the include
directories, and src/compat/compat.c to the sources. Several
functions are implemented here which one or more target
operating systems are missing, right now all related to time.
This includes clock_nanosleep(), which is missing on OS X and
DragonFly BSD. Eliminate the other three definitions of
timespec_to_ns() and friends. Standardize on NANOSECS_IN_SEC
rather than the more opaque GIG. Progress on #1121.
3 years ago
nick black 68b340e3c8
ncdirect: prep readline for use #1120 3 years ago
nick black e617acecc7
v2.1.4 3 years ago
nick black 70b74a749b
v2.1.3 3 years ago
nick black 55d563b646
v2.1.2 3 years ago
nick black d6d5757b1d
v2.1.1 4 years ago
nick black 6edafd1f84
v2.1.0 4 years ago
nick black 8497ee1877
v2.0.12 4 years ago
nick black eb485cda21
v2.0.11 4 years ago
nick black 361a253aea
v2.0.10 4 years ago
nick black cc5f9f0cb7
cmake: run notcurses-tester first among tests 4 years ago
nick black f3688f44fb
CMake: add demo target 4 years ago
nick black 8083b46e3b
v2.0.9 4 years ago
nick black de3944b114 ncls getopt skeleton #693 4 years ago
nick black c2671b6fef
data model: every plane gets an egcpool 4 years ago
nick black 3f9d87f5e6 include data model on web page 4 years ago
nick black 465a0ffbcb Improve handling of dot->graph documentation
Remove the pre-rendered model.png, a generated output. Add a
dot target to CMake, predicated on USE_DOXYGEN (since we have
REQUIRED dot in our Doxygen spec). Generate the png in the
output path. Rename stacks to piles in model.dot.
4 years ago
Marek Habersack 9135663529 [CMake] Restore old way of importing Notcurses into a cmake project
Partially reverts: c5c9432ac0
Context: https://github.com/dankamongmen/notcurses/pull/1146

The above commit implemented the much more convenient way of finding and
using a package from CMake, however it broke compatibility with the way
id had been before, which defined various `Notcurses_*` variables.

Revert the `Notcurses` component to the old way and add support for
`Notcurses++` in the same fashion.

Perhaps one day we should think of implementing `find_package` support
by way of a module, which should make it possible to have the cake and
eat the cake. One day.
4 years ago
Marek Habersack c5c9432ac0 [Misc] A hodgepodge of tiny changes
CMake:
  Simplify cmake target+version config generation and make it actually
  work.  With the changes it is now possible to detect and use
  `Notcurses` in the following way:

     find_package(Notcurses REQUIRED)
     ...
     target_link_libraries(myapp PRIVATE notcurses::notcurses)

  Also, added the same CMake configuration for `Notcurses++`, to be used
  in the following way:

     find_package(Notcurses REQUIRED
     find_package(Notcurses++ REQUIRED)
     ...
     target_link_libraries(myapp PRIVATE notcurses++::notcurses++)

Docs:
  `notcurses_cell(3)`: `cell_styles_{on,off} -> cell_{on,off}_styles`
  and `cell_load_simple` -> `cell_load_char`

C++ API:
  * Plane: added constructors taking `ncplane_options const&` instead of
    the multitude of individual parameters
  * Plane: drop `struct` when `ncplane_options` is used.
  * Plane: added `strdup` (`cell_strdup`)
  * Plane: added `extract` (`cell_extract`)
4 years ago
nick black 2a45620cd6
v2.0.8 4 years ago
nick black b7ea4e2359
run sgr-full and sgr-direct in test suite #1138 4 years ago
nick black 73b2f1bf19
v2.0.7 4 years ago
nick black acdcf9e41f
v2.0.6 4 years ago
nick black 537caa2173
v2.0.5 4 years ago
Nick Black 47cc9f9ecd
Initial easybook chapter (#1129)
* some mdbook #785

* more chapter 1
4 years ago
nick black 1328fc7cf8
drop -V argument from CTest 4 years ago
nick black 1051210679
pandoc: don't use smart extension 4 years ago
nick black 7622cefc3a
v2.0.4 4 years ago
nick black 0d31a03be9
v2.0.3 4 years ago
nick black a221ba2865
notcurses-static doesn't need an SOVERSION 4 years ago
nick black 8189d21709
v2.0.2 4 years ago
nick black a4546c86e3
v2.0.1 4 years ago
nick black 65974aeb0b
v2.0.0 4 years ago
nick black da1b8d1d53
install version.h #1054 4 years ago
nick black 8c9611d085
v1.7.6 4 years ago
nick black 20a49d053d
v1.7.5 4 years ago
nick black 8d347d14bb
move ncreel to PoCs, don't install #1033 4 years ago
nick black f02263e977
v1.7.4 4 years ago
nick black 4459efa216
v1.7.3 4 years ago
nick black bc097a5674
v1.7.2 4 years ago
nick black 1f59eef9d8
CMake: no need to link notcurses-view against libav 4 years ago
nick black 70f062aff5
v1.7.1 4 years ago