mirror of
				https://github.com/eledio-devices/thirdparty-miniz.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Add support for building as a Meson subproject
This commit is contained in:
		
							
								
								
									
										15
									
								
								meson.build
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								meson.build
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | |||||||
|  | project('miniz', 'c') | ||||||
|  |  | ||||||
|  | miniz_includes = include_directories('.') | ||||||
|  |  | ||||||
|  | cfg = configuration_data() | ||||||
|  | cfg.set('MINIZ_EXPORT', '') | ||||||
|  | miniz_export_h = configure_file(output: 'miniz_export.h', | ||||||
|  |                                 configuration: cfg) | ||||||
|  |  | ||||||
|  | libminiz = static_library('miniz', | ||||||
|  |                           miniz_export_h, 'miniz.c', 'miniz_zip.c', 'miniz_tinfl.c', 'miniz_tdef.c', | ||||||
|  |                           include_directories: miniz_includes) | ||||||
|  |  | ||||||
|  | miniz_dependency = declare_dependency(link_with: libminiz, | ||||||
|  |                                       include_directories: miniz_includes) | ||||||
		Reference in New Issue
	
	Block a user