-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into danirabbit/cursors-badges
- Loading branch information
Showing
7 changed files
with
33 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,16 +85,17 @@ sizes = [ | |
] | ||
|
||
foreach size: sizes | ||
run_command('mkdir', join_paths (meson.build_root(), 'cursors', size + 'x' + size)) | ||
run_command('mkdir', join_paths (meson.project_build_root(), 'cursors', size + 'x' + size), check: false) | ||
|
||
foreach cursor : cursors | ||
message('rendering: ' + size + 'x' + size + '/' + cursor + '.png') | ||
|
||
run_command( | ||
rsvg, '--format', 'png', | ||
'--width=@0@'.format(size), '--height=@0@'.format(size), | ||
'--output', '@[email protected]'.format(join_paths (meson.build_root(), 'cursors', size + 'x' + size, cursor)), | ||
join_paths ('24', cursor + '.svg') | ||
'--output', '@[email protected]'.format(join_paths (meson.project_build_root(), 'cursors', size + 'x' + size, cursor)), | ||
join_paths ('24', cursor + '.svg'), | ||
check: true, | ||
) | ||
endforeach | ||
|
||
|
@@ -104,8 +105,9 @@ foreach size: sizes | |
run_command( | ||
rsvg, '--format', 'png', | ||
'--width=@0@'.format(size), '--height=@0@'.format(size), | ||
'--output', '@[email protected]'.format(join_paths (meson.build_root(), 'cursors', size + 'x' + size, watch)), | ||
join_paths ('24', watch + '.svg') | ||
'--output', '@[email protected]'.format(join_paths (meson.project_build_root(), 'cursors', size + 'x' + size, watch)), | ||
join_paths ('24', watch + '.svg'), | ||
check: true, | ||
) | ||
endforeach | ||
endforeach | ||
|
@@ -121,12 +123,12 @@ foreach cursor : cursors | |
run_command( | ||
xcursorgen, | ||
cursor + '.in', | ||
'-p', join_paths (meson.build_root(), 'cursors'), | ||
join_paths (meson.build_root(), 'cursors', cursor) | ||
'-p', join_paths (meson.project_build_root(), 'cursors'), | ||
join_paths (meson.project_build_root(), 'cursors', cursor) | ||
) | ||
|
||
install_data( | ||
join_paths (meson.build_root(), 'cursors', cursor), | ||
join_paths (meson.project_build_root(), 'cursors', cursor), | ||
install_dir: cursor_dir | ||
) | ||
endforeach | ||
|
@@ -307,10 +309,10 @@ links += [[ | |
foreach link_entry : links | ||
src = link_entry[0] | ||
foreach dest : link_entry[1] | ||
meson.add_install_script( | ||
symlink, | ||
'--src', join_paths (cursor_dir, src), | ||
'--dest', join_paths (cursor_dir, dest) | ||
install_symlink( | ||
dest, | ||
install_dir: cursor_dir, | ||
pointing_to: src, | ||
) | ||
endforeach | ||
endforeach | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
i18n.gettext('extra', | ||
args: '--directory=' + meson.source_root(), | ||
args: '--directory=' + meson.project_source_root(), | ||
install: false, | ||
preset: 'glib' | ||
) |