| 
									
										
										
										
											2024-06-23 14:59:26 +02:00
										 |  |  | project(
 | 
					
						
							|  |  |  |   'musicus',
 | 
					
						
							|  |  |  |   'rust', 
 | 
					
						
							|  |  |  |   version: '0.1.0',
 | 
					
						
							|  |  |  |   meson_version: '>= 0.62.0',
 | 
					
						
							| 
									
										
										
										
											2023-06-18 14:02:21 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | i18n = import('i18n')
 | 
					
						
							|  |  |  | gnome = import('gnome')
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-23 14:59:26 +02:00
										 |  |  | # TODO: Add dependency checks for required shared libraries like SQLite,
 | 
					
						
							|  |  |  | # GStreamer (including plugins), Gtk, Libadwaita etc.
 | 
					
						
							| 
									
										
										
										
											2023-06-18 14:02:21 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-23 14:59:26 +02:00
										 |  |  | name = 'Musicus'
 | 
					
						
							|  |  |  | base_id = 'de.johrpan.Musicus'
 | 
					
						
							|  |  |  | app_id = base_id
 | 
					
						
							|  |  |  | path_id = '/de/johrpan/Musicus'
 | 
					
						
							|  |  |  | profile = get_option('profile')
 | 
					
						
							|  |  |  | datadir = get_option('prefix') / get_option('datadir')
 | 
					
						
							|  |  |  | localedir = get_option('prefix') / get_option('localedir')
 | 
					
						
							|  |  |  | bindir = get_option('prefix') / get_option('bindir')
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if profile == 'development'
 | 
					
						
							|  |  |  |   app_id = '@0@.Devel'.format(app_id)
 | 
					
						
							|  |  |  | endif
 | 
					
						
							| 
									
										
										
										
											2023-06-18 14:02:21 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | subdir('data')
 | 
					
						
							|  |  |  | subdir('src')
 | 
					
						
							|  |  |  | subdir('po')
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | gnome.post_install(
 | 
					
						
							| 
									
										
										
										
											2024-06-23 14:59:26 +02:00
										 |  |  |   glib_compile_schemas: true,
 | 
					
						
							|  |  |  |   gtk_update_icon_cache: true,
 | 
					
						
							| 
									
										
										
										
											2023-06-18 14:02:21 +02:00
										 |  |  |   update_desktop_database: true,
 | 
					
						
							|  |  |  | )
 |