[Meson] Prepare
This commit is contained in:
		
							
								
								
									
										27
									
								
								config/astal/meson.build
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								config/astal/meson.build
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| pkgdatadir = get_option('prefix') / get_option('datadir') / meson.project_name() | ||||
| main = meson.project_name() + '.wrapped' | ||||
|  | ||||
| custom_target( | ||||
|   command: [ | ||||
|     find_program('ags'), | ||||
|     'bundle', | ||||
|     '--root', meson.project_source_root(), | ||||
|     meson.project_source_root() / 'app.ts', | ||||
|     main, | ||||
|   ], | ||||
|   output: main, | ||||
|   input: files('app.ts'), | ||||
|   install: true, | ||||
|   install_dir: pkgdatadir, | ||||
| ) | ||||
|  | ||||
| configure_file( | ||||
|   input: files('wrapper.sh'), | ||||
|   output: meson.project_name(), | ||||
|   configuration: { | ||||
|     'MAIN_PROGRAM': pkgdatadir / main, | ||||
|     'LAYER_SHELL_LIBDIR': dependency('gtk4-layer-shell-0').get_variable('libdir'), | ||||
|   }, | ||||
|   install: true, | ||||
|   install_dir: get_option('prefix') / get_option('bindir'), | ||||
| ) | ||||
		Reference in New Issue
	
	Block a user