mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 01:58:54 +01:00 
			
		
		
		
	If `-Ddocumentation=true` is specified without `-Dintrospection=enabled`, warn the user. They might expect the documentation to be built, but it won’t. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
		
			
				
	
	
		
			29 lines
		
	
	
		
			852 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			852 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
if get_option('documentation') and enable_gir
 | 
						|
  gidocgen_dep = dependency('gi-docgen', version: '>= 2024.1',
 | 
						|
                          fallback: ['gi-docgen', 'dummy_dep'],
 | 
						|
                          native: true,
 | 
						|
                          required: true)
 | 
						|
 | 
						|
  toml_conf = configuration_data()
 | 
						|
  toml_conf.set('VERSION', meson.project_version())
 | 
						|
 | 
						|
  gidocgen = find_program('gi-docgen', native: true, required: true)
 | 
						|
 | 
						|
  gidocgen_common_args = [
 | 
						|
    '--quiet',
 | 
						|
    '--no-namespace-dir',
 | 
						|
    '--fatal-warnings',
 | 
						|
    '--add-include-path=@0@'.format(meson.current_build_dir() / '../../girepository/introspection'),
 | 
						|
  ]
 | 
						|
elif get_option('documentation')
 | 
						|
  warning('Full documentation cannot be built without -Dintrospection=enabled')
 | 
						|
endif
 | 
						|
 | 
						|
docs_dir = glib_datadir / 'doc'
 | 
						|
 | 
						|
subdir('glib')
 | 
						|
subdir('gmodule')
 | 
						|
subdir('gobject')
 | 
						|
subdir('gio')
 | 
						|
subdir('girepository')
 |