mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 01:58:54 +01:00 
			
		
		
		
	As with previous commits, we’re enabling `-Wsign-conversion` piecemeal for all of glib.git. It turns out that gthread didn’t have any `-Wsign-conversion` warnings at all, so this was straightforward. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3405
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Meson
		
	
	
	
	
	
# Just a skeleton lib for backwards compatibility since all the functionality
 | 
						|
# has been moved into glib now
 | 
						|
 | 
						|
gthread_sources = ['gthread-impl.c']
 | 
						|
if host_system == 'windows' and glib_build_shared
 | 
						|
  gthread_win_rc = configure_file(
 | 
						|
    input: 'gthread.rc.in',
 | 
						|
    output: 'gthread.rc',
 | 
						|
    configuration: glibconfig_conf,
 | 
						|
  )
 | 
						|
  gthread_win_res = windows.compile_resources(gthread_win_rc)
 | 
						|
  gthread_sources += [gthread_win_res]
 | 
						|
endif
 | 
						|
 | 
						|
libgthread = library('gthread-2.0',
 | 
						|
  sources : gthread_sources,
 | 
						|
  version : library_version,
 | 
						|
  soversion : soversion,
 | 
						|
  darwin_versions : darwin_versions,
 | 
						|
  install : true,
 | 
						|
  dependencies : [libglib_dep],
 | 
						|
  c_args : ['-DG_LOG_DOMAIN="GThread"', glib_c_args_internal, warning_sign_conversion_args],
 | 
						|
  gnu_symbol_visibility : 'hidden',
 | 
						|
  link_args : glib_link_flags,
 | 
						|
)
 | 
						|
 | 
						|
pkg.generate(libgthread,
 | 
						|
  libraries : [thread_dep],
 | 
						|
  requires : ['glib-2.0'],
 | 
						|
  version : glib_version,
 | 
						|
  install_dir : glib_pkgconfigreldir,
 | 
						|
  filebase : 'gthread-2.0',
 | 
						|
  name : 'GThread',
 | 
						|
  description : 'Thread support for GLib',
 | 
						|
)
 | 
						|
 | 
						|
libgthread_dep = declare_dependency(link_with : libgthread)
 | 
						|
meson.override_dependency('gthread-2.0', libgthread_dep)
 | 
						|
 | 
						|
if build_tests
 | 
						|
  subdir('tests')
 | 
						|
endif
 |