Simplify `VIPS_CONFIG` definition (#2964)
This commit is contained in:
parent
99f239b4a6
commit
4d5622c217
|
@ -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(
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue