Simplify `VIPS_CONFIG` definition (#2964)

This commit is contained in:
Kleis Auke Wolthuizen 2022-07-30 20:23:09 +02:00 committed by GitHub
parent 99f239b4a6
commit 4d5622c217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 11 deletions

View File

@ -108,7 +108,7 @@ version_data.set('VIPS_MICRO_VERSION', version_patch)
version_data.set('LIBRARY_CURRENT', library_current)
version_data.set('LIBRARY_REVISION', library_revision)
version_data.set('LIBRARY_AGE', library_age)
version_data.set('VIPS_CONFIG', ', '.join(vips_verbose_config))
version_data.set('VIPS_CONFIG', '\\n'.join(vips_verbose_config))
version_data.set10('VIPS_ENABLE_DEPRECATED', get_option('deprecated'))
version_header = configure_file(

View File

@ -829,16 +829,7 @@ static gboolean
vips_lib_config_cb( const gchar *option_name, const gchar *value,
gpointer data, GError **error )
{
char **split;
char *config;
split = g_strsplit( VIPS_CONFIG, ", ", -1 );
config = g_strjoinv( "\n", split );
printf( "%s\n", config );
g_strfreev( split );
g_free( config );
printf( "%s\n", VIPS_CONFIG );
vips_shutdown();
exit( 0 );
}