libgnt/libgnt

make gnt.h a single include file

2020-08-13, Gary Kramlich
23e34422bea8
make gnt.h a single include file

Move the ncurses bits to a new gntncurses.h.in setup

Move all the function prototypes from gnt.h to gntmain.h since thats where they should be

Move the KEY_EVENT undef to gntncurses.h as that's where it is needed

create a global header file and don't let the library use it

Add the single include header guards and deal with fall out

Testing Done:
Compile testing and ran all of the manual tests.

Reviewed at https://reviews.imfreedom.org/r/62/
DOC_MODULE = 'libgnt'
# Extra content files, other than the main one.
content_files = [
'migrating-2to3.xml',
]
# Header files or dirs to ignore when scanning. Use base file/dir names
ignore_headers = [
'test',
'wms',
'gntinternal.h',
'gnt-skel.h',
'gntboxprivate.h',
'gntmainprivate.h',
'gntmenuprivate.h',
'gntmenuitemprivate.h',
'gntstyleprivate.h',
'gnttreeprivate.h',
'gntwidgetprivate.h',
'gntwmprivate.h',
'gntwsprivate.h',
]
# Extra options to supply to gtkdoc-scan.
scan_args = [
'--deprecated-guards=GNT_DISABLE_DEPRECATED',
'--rebuild-types',
'--rebuild-sections',
]
configure_file(
input : 'version.xml.in',
output : 'version.xml',
configuration : gnt_config)
gnome.gtkdoc(DOC_MODULE,
main_xml : DOC_MODULE + '-docs.xml',
content_files : content_files,
src_dir : libgnt_inc,
dependencies : libgnt_dep,
install : true,
ignore_headers : ignore_headers,
scan_args : scan_args,
gobject_typesfile : DOC_MODULE + '.types')