| 
									
										
										
										
											2018-02-21 13:19:27 -06:00
										 |  |  | # SirCmpwn is a god. (from mcwayface)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | project(
 | 
					
						
							|  |  |  |   'waybox',
 | 
					
						
							|  |  |  |   'c',
 | 
					
						
							|  |  |  |   version: '0.0.1',
 | 
					
						
							|  |  |  |   license: 'MIT',
 | 
					
						
							|  |  |  |   meson_version: '>=0.43.0',
 | 
					
						
							|  |  |  |   default_options: [
 | 
					
						
							|  |  |  |     'c_std=c11',
 | 
					
						
							|  |  |  |     'warning_level=2',
 | 
					
						
							|  |  |  |     'werror=true',
 | 
					
						
							|  |  |  |   ],
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | add_project_arguments('-Wno-unused-parameter', language: 'c')
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cc = meson.get_compiler('c')
 | 
					
						
							| 
									
										
										
										
											2018-06-15 13:16:15 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-21 13:19:27 -06:00
										 |  |  | if cc.get_id() == 'clang'
 | 
					
						
							|  |  |  |   add_project_arguments('-Wno-missing-field-initializers', language: 'c')
 | 
					
						
							|  |  |  |   add_project_arguments('-Wno-missing-braces', language: 'c')
 | 
					
						
							|  |  |  | endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Hiding depreciation warnings
 | 
					
						
							|  |  |  | add_project_arguments('-DWL_HIDE_DEPRECATED', language: 'c')
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | pixman = dependency('pixman-1')
 | 
					
						
							|  |  |  | wlroots = dependency('wlroots')
 | 
					
						
							|  |  |  | wayland_server = dependency('wayland-server')
 | 
					
						
							| 
									
										
										
										
											2018-06-15 13:16:15 -05:00
										 |  |  | wayland_client = dependency('wayland-client')
 | 
					
						
							|  |  |  | wayland_protos  = dependency('wayland-protocols', version: '>=1.12')
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | subdir('protocol')
 | 
					
						
							| 
									
										
										
										
											2018-02-21 13:19:27 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | executable(
 | 
					
						
							|  |  |  |   'waybox',
 | 
					
						
							|  |  |  |   [
 | 
					
						
							|  |  |  |     'src/main.c'
 | 
					
						
							|  |  |  |   ],
 | 
					
						
							|  |  |  |   dependencies: [
 | 
					
						
							|  |  |  |     pixman,
 | 
					
						
							|  |  |  |     wlroots,
 | 
					
						
							|  |  |  |     wayland_server,
 | 
					
						
							| 
									
										
										
										
											2018-06-15 13:16:15 -05:00
										 |  |  |     wayland_protos,
 | 
					
						
							|  |  |  |     wayland_client
 | 
					
						
							| 
									
										
										
										
											2018-02-21 13:19:27 -06:00
										 |  |  |   ]
 | 
					
						
							|  |  |  | )
 |