mirror of
				https://codeberg.org/adnano/wmenu.git
				synced 2025-10-29 05:40:20 -04:00 
			
		
		
		
	 ac25b07338
			
		
	
	
		ac25b07338
		
	
	
	
	
		
			
			based off the works of sinanmohd, modified to be simpler and better to read, with shellcheck. Co-authored-by: sinanmohd <sinan@firemail.cc>
		
			
				
	
	
		
			58 lines
		
	
	
	
		
			1,011 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
	
		
			1,011 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
| project(
 | |
| 	'wmenu',
 | |
| 	'c',
 | |
| 	version: '0.1.7',
 | |
| 	license: 'MIT',
 | |
| 	default_options: [
 | |
| 		'c_std=c11',
 | |
| 		'warning_level=2',
 | |
| 		'werror=true',
 | |
| 	]
 | |
| )
 | |
| 
 | |
| cc = meson.get_compiler('c')
 | |
| 
 | |
| add_project_arguments(cc.get_supported_arguments([
 | |
| 	'-DVERSION="@0@"'.format(meson.project_version()),
 | |
| 
 | |
| 	'-Wno-missing-field-initializers',
 | |
| 	'-Wno-unused-parameter',
 | |
| 	'-Wundef',
 | |
| 	'-Wvla',
 | |
| ]), language : 'c')
 | |
| 
 | |
| cairo           = dependency('cairo')
 | |
| pango           = dependency('pango')
 | |
| pangocairo      = dependency('pangocairo')
 | |
| wayland_client  = dependency('wayland-client')
 | |
| wayland_protos  = dependency('wayland-protocols')
 | |
| xkbcommon       = dependency('xkbcommon')
 | |
| 
 | |
| rt = cc.find_library('rt')
 | |
| 
 | |
| subdir('protocols')
 | |
| subdir('docs')
 | |
| 
 | |
| install_data('wmenu_run', install_dir: get_option('bindir'))
 | |
| 
 | |
| executable(
 | |
| 	'wmenu',
 | |
| 	files(
 | |
| 		'main.c',
 | |
| 		'menu.c',
 | |
| 		'pango.c',
 | |
| 		'pool-buffer.c',
 | |
| 		'render.c',
 | |
| 	),
 | |
| 	dependencies: [
 | |
| 		cairo,
 | |
| 		client_protos,
 | |
| 		pango,
 | |
| 		pangocairo,
 | |
| 		rt,
 | |
| 		wayland_client,
 | |
| 		wayland_protos,
 | |
| 		xkbcommon,
 | |
| 	],
 | |
| 	install: true,
 | |
| )
 |