# UPDATING VERSION NUMBERS FOR RELEASES # If any code has changed in libgnt: # If any functions have been added to libgnt: # If backwards compatibility has been broken in libgnt: # gnt_major_version += 1; # gnt_version_suffix should be similar to one of the following: # For beta releases: 'beta2' # For code under development: 'devel' # For production releases: '' # the last version for Finch 2 was 2.8.10, # the first version for Finch 3 was 2.9.0 gnt_version_suffix = 'devel' gnt_version = '@0@.@1@.@2@'.format(gnt_major_version, gnt_display_version = '@0@@1@'.format(gnt_version, GNT_LIB_VERSION = '@0@.@1@.@2@'.format(gnt_lt_current - gnt_minor_version, # Always true when built as part of pidgin repo. gnt_config = configuration_data() ####################################################################### # Check for ncurses and other things used by the console UI ####################################################################### ncurses_available = false if get_option('consoleui') compiler.find_library('ncursesw', required : false), compiler.find_library('panelw', required : false) if not ncurses_libs[0].found() or not ncurses_libs[1].found() ncurses_available = false ncurses_sys_prefix = '/usr/$host/sys-root/mingw' ncurses_sys_prefix = '/usr' ncurses_sys_dirs = [ncurses_sys_prefix + '/include/ncursesw', ncurses_sys_prefix + '/include'] # Some distros put the headers in ncursesw/, some don't foreach location : ncurses_sys_dirs f = location + '/ncurses.h' if compiler.has_header_symbol(f, 'get_wch', prefix : '#define _XOPEN_SOURCE_EXTENDED') ncurses_inc += [include_directories(location)] ncurses_available = false # ncursesw was not found. Look for plain old ncurses compiler.find_library('ncurses', required : false), compiler.find_library('panel', required : false) ncurses_available = ncurses_libs[0].found() and ncurses_libs[1].found() gnt_config.set('NO_WIDECHAR', true) ncurses = declare_dependency( include_directories : ncurses_inc, dependencies : ncurses_libs # Check for Python headers python_dep = dependency('python3') gnt_config.set('USE_PYTHON', python_dep.found()) configure_file(output : 'gntconfig.h', configuration : gnt_config) gmodule = dependency('gmodule-2.0') install_headers(libgnt_headers, subdir : 'gnt') libgnt_SOURCES += windows.compile_resources('libgnt_winres.rc') libgnt_inc = include_directories('.') include_directories : [toplevel_inc], version : GNT_LIB_VERSION, dependencies : [ncurses, libxml, glib, gobject, gmodule, python_dep]) libgnt_dep = declare_dependency( include_directories : [toplevel_inc, libgnt_inc], dependencies : [ncurses, glib]) description : 'Glib Ncurses Toolkit is a collection of curses-widgets.', version : purple_display_version, libgnt_gir = gnome.generate_gir(libgnt, sources : libgnt_headers, includes : 'GObject-2.0', identifier_prefix : 'Gnt', nsversion : '@0@.@1@'.format(gnt_major_version, gnt_minor_version), endif # ncurses_available