| 
									
										
										
										
											2018-02-21 13:19:27 -06:00
										 |  |  | project(
 | 
					
						
							| 
									
										
										
										
											2020-03-09 17:08:08 -04:00
										 |  |  |   'Waybox',
 | 
					
						
							| 
									
										
										
										
											2018-02-21 13:19:27 -06:00
										 |  |  |   'c',
 | 
					
						
							| 
									
										
										
										
											2023-11-25 18:38:15 -05:00
										 |  |  |   version: '0.2.3',
 | 
					
						
							| 
									
										
										
										
											2018-02-21 13:19:27 -06:00
										 |  |  |   license: 'MIT',
 | 
					
						
							| 
									
										
										
										
											2024-06-03 01:21:47 -04:00
										 |  |  |   meson_version: '>=0.60.0',
 | 
					
						
							| 
									
										
										
										
											2018-02-21 13:19:27 -06:00
										 |  |  |   default_options: [
 | 
					
						
							|  |  |  |     'c_std=c11',
 | 
					
						
							|  |  |  |     'warning_level=2',
 | 
					
						
							|  |  |  |     'werror=true',
 | 
					
						
							|  |  |  |   ],
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-27 16:47:18 -05:00
										 |  |  | add_project_arguments(
 | 
					
						
							|  |  |  |   '-Wno-unused-parameter',
 | 
					
						
							| 
									
										
										
										
											2022-02-20 19:45:53 -05:00
										 |  |  |   '-D_DEFAULT_SOURCE',
 | 
					
						
							| 
									
										
										
										
											2022-02-18 22:24:20 -05:00
										 |  |  |   '-D_POSIX_C_SOURCE=200112L',
 | 
					
						
							| 
									
										
										
										
											2024-02-07 00:46:35 -05:00
										 |  |  |   '-DWL_HIDE_DEPRECATED', # Hide the deprecated parts of the Wayland API
 | 
					
						
							| 
									
										
										
										
											2020-02-27 16:47:18 -05:00
										 |  |  |   '-DWLR_USE_UNSTABLE',
 | 
					
						
							| 
									
										
										
										
											2020-03-08 12:47:58 -04:00
										 |  |  |   '-DPACKAGE_NAME="' + meson.project_name() + '"',
 | 
					
						
							|  |  |  |   '-DPACKAGE_VERSION="' + meson.project_version() + '"',
 | 
					
						
							| 
									
										
										
										
											2020-02-27 16:47:18 -05:00
										 |  |  |   language: 'c')
 | 
					
						
							| 
									
										
										
										
											2018-02-21 13:19:27 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | cc = meson.get_compiler('c')
 | 
					
						
							| 
									
										
										
										
											2018-06-15 13:16:15 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-19 10:26:54 -05:00
										 |  |  | # Adding include directory
 | 
					
						
							|  |  |  | inc_dir = include_directories('include')
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-07-13 21:37:35 -04:00
										 |  |  | if get_option('wlroots-version') != ''
 | 
					
						
							|  |  |  |   wlroots_version = get_option('wlroots-version')
 | 
					
						
							|  |  |  | else
 | 
					
						
							|  |  |  |   wlroots_version = ['wlroots-0.19', 'wlroots-0.18', 'wlroots']
 | 
					
						
							|  |  |  | endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-12-08 16:16:05 -05:00
										 |  |  | libevdev = dependency('libevdev')
 | 
					
						
							| 
									
										
										
										
											2024-07-16 03:14:50 -04:00
										 |  |  | libinput = dependency('libinput', version: '>=1.21.0', required: false)
 | 
					
						
							| 
									
										
										
										
											2022-02-01 20:26:50 -05:00
										 |  |  | libxml2 = dependency('libxml-2.0')
 | 
					
						
							| 
									
										
										
										
											2023-02-07 13:47:56 -05:00
										 |  |  | wayland_protos = dependency('wayland-protocols', version: '>=1.27')
 | 
					
						
							| 
									
										
										
										
											2024-04-21 14:16:29 -04:00
										 |  |  | wayland_server = dependency('wayland-server', version: '>=1.15')
 | 
					
						
							| 
									
										
										
										
											2024-07-13 21:37:35 -04:00
										 |  |  | wlroots = dependency(wlroots_version, version: '>=0.17.0')
 | 
					
						
							| 
									
										
										
										
											2023-02-07 13:47:56 -05:00
										 |  |  | xkbcommon = dependency('xkbcommon')
 | 
					
						
							| 
									
										
										
										
											2018-06-15 13:16:15 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-07-16 03:14:50 -04:00
										 |  |  | if libinput.found()
 | 
					
						
							|  |  |  |   add_project_arguments('-DHAS_LIBINPUT', language: 'c')
 | 
					
						
							|  |  |  | endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-18 18:10:30 -05:00
										 |  |  | msgfmt = find_program('msgfmt', required: false)
 | 
					
						
							|  |  |  | if msgfmt.found()
 | 
					
						
							|  |  |  |   source_root = meson.current_source_dir()
 | 
					
						
							|  |  |  |   subdir('po')
 | 
					
						
							|  |  |  | endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-22 20:29:04 -05:00
										 |  |  | subdir('data')
 | 
					
						
							| 
									
										
										
										
											2018-06-15 13:16:15 -05:00
										 |  |  | subdir('protocol')
 | 
					
						
							| 
									
										
										
										
											2018-06-27 15:41:51 -05:00
										 |  |  | subdir('waybox')
 |