2023-12-07 11:41:09 +01:00
|
|
|
globber = run_command('sh', '-c', 'find . -name "*.cpp" | sort', check: true)
|
|
|
|
src = globber.stdout().strip().split('\n')
|
|
|
|
|
2024-09-11 18:00:47 +02:00
|
|
|
executable(
|
|
|
|
'hyprpm',
|
|
|
|
src,
|
2023-12-07 11:41:09 +01:00
|
|
|
dependencies: [
|
2024-06-11 17:17:45 +02:00
|
|
|
dependency('hyprutils', version: '>= 0.1.1'),
|
2023-12-07 11:41:09 +01:00
|
|
|
dependency('threads'),
|
2024-09-11 18:00:47 +02:00
|
|
|
dependency('tomlplusplus'),
|
2023-12-07 11:41:09 +01:00
|
|
|
],
|
2024-09-11 18:00:47 +02:00
|
|
|
install: true,
|
2023-12-07 11:41:09 +01:00
|
|
|
)
|
2024-04-09 10:10:33 +02:00
|
|
|
|
2024-09-11 18:00:47 +02:00
|
|
|
install_data(
|
|
|
|
'../hyprpm.bash',
|
|
|
|
install_dir: join_paths(get_option('datadir'), 'bash-completion/completions'),
|
|
|
|
install_tag: 'runtime',
|
|
|
|
rename: 'hyprpm',
|
|
|
|
)
|
|
|
|
install_data(
|
|
|
|
'../hyprpm.fish',
|
|
|
|
install_dir: join_paths(get_option('datadir'), 'fish/vendor_completions.d'),
|
|
|
|
install_tag: 'runtime',
|
|
|
|
)
|
|
|
|
install_data(
|
|
|
|
'../hyprpm.zsh',
|
|
|
|
install_dir: join_paths(get_option('datadir'), 'zsh/site-functions'),
|
|
|
|
install_tag: 'runtime',
|
|
|
|
rename: '_hyprpm',
|
|
|
|
)
|