mirror of
				https://github.com/hyprwm/hyprland-plugins.git
				synced 2025-10-29 19:58:49 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			1021 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1021 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
| project('hyprbars', 'cpp',
 | |
|   version: '0.1',
 | |
|   default_options: ['buildtype=release'],
 | |
| )
 | |
| 
 | |
| cpp_compiler = meson.get_compiler('cpp')
 | |
| if cpp_compiler.has_argument('-std=c++23')
 | |
|   add_global_arguments('-std=c++23', language: 'cpp')
 | |
| elif cpp_compiler.has_argument('-std=c++2b')
 | |
|   add_global_arguments('-std=c++2b', language: 'cpp')
 | |
| else
 | |
|   error('Could not configure current C++ compiler (' + cpp_compiler.get_id() + ' ' + cpp_compiler.version() + ') with required C++ standard (C++23)')
 | |
| endif
 | |
| 
 | |
| add_project_arguments(
 | |
|   [
 | |
|     '-Wno-narrowing',
 | |
|   ],
 | |
|   language: 'cpp')
 | |
| 
 | |
| globber = run_command('find', '.', '-name', '*.cpp', check: true)
 | |
| src = globber.stdout().strip().split('\n')
 | |
| 
 | |
| hyprland = dependency('hyprland')
 | |
| 
 | |
| shared_module(meson.project_name(), src,
 | |
|   dependencies: [
 | |
|     dependency('hyprland'),
 | |
|     dependency('pixman-1'),
 | |
|     dependency('libdrm'),
 | |
|     dependency('pangocairo'),
 | |
|     dependency('libinput'),
 | |
|     dependency('libudev'),
 | |
|     dependency('wayland-server'),
 | |
|     dependency('xkbcommon'),
 | |
|   ],
 | |
|   install: true,
 | |
| )
 |