libgnt/libgnt

Add an option to disable python2 support
release-2.x.y
2021-09-23, Gary Kramlich
ec210e0a9332
Add an option to disable python2 support

Testing Done:
Compiled with no arguments, `-Dpython2=true`, and `-Dpython2=false` and verified the build was successful and was only linked to libpython2 when it should have been via ldd.

Bugs closed: LIBGNT-16

Reviewed at https://reviews.imfreedom.org/r/930/
DOC_MODULE = 'libgnt'
# Header files or dirs to ignore when scanning. Use base file/dir names
ignore_hfiles = [
'test',
'wms',
'gntinternal.h',
'gnt-skel.h'
]
# Extra options to supply to gtkdoc-scan.
scan_args = [
'--deprecated-guards=GNT_DISABLE_DEPRECATED',
'--rebuild-types',
'--rebuild-sections',
'--ignore-headers=' + ' '.join(ignore_hfiles),
]
# Extra options to supply to gtkdoc-mkdb.
mkdb_args = [
'--ignore-files=' + ' '.join(ignore_hfiles),
]
configure_file(
input : 'version.xml.in',
output : 'version.xml',
configuration : gnt_config)
gnome.gtkdoc(DOC_MODULE,
main_xml : DOC_MODULE + '-docs.xml',
namespace : 'gnt',
src_dir : libgnt_inc,
dependencies : libgnt_dep,
install : true,
scan_args : scan_args,
mkdb_args : mkdb_args,
gobject_typesfile : DOC_MODULE + '.types')