Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installing generated sources (again) #4073

Open
hanetzer opened this issue Aug 23, 2018 · 0 comments
Open

installing generated sources (again) #4073

hanetzer opened this issue Aug 23, 2018 · 0 comments

Comments

@hanetzer
Copy link
Contributor

Working on porting gnome's adwaita-icon-theme from an autotools build to meson.
Most of it is fairly simple, just some install_subdir calls, but a portion of the icon theme
is generated from svg files.

For this snipped of the source tree:

Adwaita/scalable
 ── actions
    ├── action-unavailable-symbolic.svg
    └── address-book-new-symbolic.svg

One would use install_subdir to place the actions directory into
/usr/share/icons/Adwaita/scalable/actions, but I'm not sure how to get this next bit to
work. A small bash snippet showing what would be done is as follows:

for size in 16x16 24x24 32x32 48x48 64x64 96x96; do
/usr/bin/gtk-encode-symbolic-svg Adwaita/scalable/actions/action-unavailable-symbolic.svg \
    $size -o $size/actions
done

Which will dump out the files action-unavailable-symbolic.symbolic.png and
address-book-new-symbolic.symbolic.png to /usr/share/icons/Adwaita/$size/actions.
The -o option merely specifies the output directory and not the filename itself, which is
autogenerated with something like ${filename%.svg}.symbolic.png in bash shell.

Once this particular port is figured out it can serve as a guide for future icon theme porting
excersizes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant