Skip to content

Commit

Permalink
achieve composition of files into build folder
Browse files Browse the repository at this point in the history
  • Loading branch information
wpkelso committed Jan 24, 2025
1 parent 11f54ab commit c0559a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion mimes/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,15 @@ mime_types = [
['x-office-spreadsheet-template', 'base-generic']
]

foreach size: mime_sizes
run_command('mkdir', join_paths(meson.project_build_root(), 'mimes', size), check: false)
endforeach

foreach type : mime_types
foreach size: mime_sizes
message('compositing: ' + type[0] + '.svg and ' + type[1] + '.svg @ ' + size )

output_file = '@0@'.format(join_paths(meson.project_build_root(), 'mimes', size, type[0]))
output_file = '@0@.svg'.format(join_paths(meson.project_build_root(), 'mimes', size, type[0]))
run_command('touch', output_file)

run_command(
Expand Down
3 changes: 1 addition & 2 deletions scripts/composite-svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@
bRoot.extend(shapes)

# Write out the tree to the target filename
with open(fTarget, 'w') as file:
bTree.write(file)
bTree.write(fTarget)

0 comments on commit c0559a1

Please sign in to comment.