Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions cursors/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ sizes = [
]

foreach size: sizes
run_command('mkdir', join_paths (meson.build_root(), 'cursors', size + 'x' + size))
run_command('mkdir', join_paths (meson.build_root(), 'cursors', size + 'x' + size), check: true)

foreach cursor : cursors
message('rendering: ' + size + 'x' + size + '/' + cursor + '.png')
Expand All @@ -94,7 +94,8 @@ foreach size: sizes
rsvg, '--format', 'png',
'--width=@0@'.format(size), '--height=@0@'.format(size),
'--output', '@0@.png'.format(join_paths (meson.build_root(), 'cursors', size + 'x' + size, cursor)),
join_paths ('24', cursor + '.svg')
join_paths ('24', cursor + '.svg'),
check: true
)
endforeach

Expand All @@ -105,7 +106,8 @@ foreach size: sizes
rsvg, '--format', 'png',
'--width=@0@'.format(size), '--height=@0@'.format(size),
'--output', '@0@.png'.format(join_paths (meson.build_root(), 'cursors', size + 'x' + size, watch)),
join_paths ('24', watch + '.svg')
join_paths ('24', watch + '.svg'),
check: true
)
endforeach
endforeach
Expand All @@ -122,7 +124,8 @@ foreach cursor : cursors
xcursorgen,
cursor + '.in',
'-p', join_paths (meson.build_root(), 'cursors'),
join_paths (meson.build_root(), 'cursors', cursor)
join_paths (meson.build_root(), 'cursors', cursor),
check: true
)

install_data(
Expand Down
5 changes: 3 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ project (
)

i18n = import('i18n')
fs = import('fs')

icon_dir = join_paths(get_option('datadir'), 'icons', 'elementary')

Expand Down Expand Up @@ -91,8 +92,8 @@ foreach directory_entry : directories
directory = directory_entry[0]
directory_context = directory_entry[1]
foreach size: sizes
result = run_command(ls, join_paths(meson.source_root (), directory, size))
if (result.returncode() == 0)
dir_exists = fs.is_dir(join_paths(meson.source_root (), directory, size))
if dir_exists
foreach scale_factor : scale_factors
# The Scale=1 attribute is useless, don't add it
if (scale_factor.to_int() > 1)
Expand Down