| 
									
										
										
										
											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',
 | 
					
						
							| 
									
										
										
										
											2021-04-06 17:03:02 -04:00
										 |  |  |   version: '0.1.0',
 | 
					
						
							| 
									
										
										
										
											2018-02-21 13:19:27 -06:00
										 |  |  |   license: 'MIT',
 | 
					
						
							| 
									
										
										
										
											2021-04-06 17:03:02 -04:00
										 |  |  |   meson_version: '>=0.52.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',
 | 
					
						
							| 
									
										
										
										
											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')
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-01 20:26:50 -05:00
										 |  |  | libxml2 = dependency('libxml-2.0')
 | 
					
						
							| 
									
										
										
										
											2022-02-20 23:01:46 -05:00
										 |  |  | wlroots = dependency('wlroots', version: '>=0.15.0')
 | 
					
						
							| 
									
										
										
										
											2020-03-10 21:00:56 -04:00
										 |  |  | wayland_server = dependency('wayland-server', version: '>=1.15')
 | 
					
						
							| 
									
										
										
										
											2020-02-27 17:59:06 -05:00
										 |  |  | wayland_protos  = dependency('wayland-protocols', version: '>=1.17')
 | 
					
						
							| 
									
										
										
										
											2020-02-18 15:41:39 -05:00
										 |  |  | xkbcommon  = dependency('xkbcommon')
 | 
					
						
							| 
									
										
										
										
											2018-06-15 13:16:15 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-18 18:10:30 -05:00
										 |  |  | msgfmt = find_program('msgfmt', required: false)
 | 
					
						
							|  |  |  | if msgfmt.found()
 | 
					
						
							|  |  |  |   source_root = meson.current_source_dir()
 | 
					
						
							|  |  |  |   add_project_arguments('-DUSE_NLS=1', language: 'c')
 | 
					
						
							|  |  |  |   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')
 |