diff options
author | Michele Calgaro <[email protected]> | 2024-03-23 12:36:06 +0900 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2024-03-24 23:17:06 +0200 |
commit | 341a38ba101216f8b544cc653416d6e2e6b6d34e (patch) | |
tree | 6b519900aaedb621fae20842152e86c745c2b688 /client/create-buttons.sh.cmake | |
parent | fd62635a2792b5cbbbae1c5288992af0054332ee (diff) | |
download | tde-style-polyester-341a38ba101216f8b544cc653416d6e2e6b6d34e.tar.gz tde-style-polyester-341a38ba101216f8b544cc653416d6e2e6b6d34e.zip |
1. Replace inkscape with rsvg-convert (this idea comes from a patch in the original debian packaging files).
2. All png images and the associated `button.h` file are generate at build time.
3. Make `create-buttons.sh` work for out-of-source builds.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'client/create-buttons.sh.cmake')
-rwxr-xr-x | client/create-buttons.sh.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/client/create-buttons.sh.cmake b/client/create-buttons.sh.cmake new file mode 100755 index 0000000..36cb38c --- /dev/null +++ b/client/create-buttons.sh.cmake @@ -0,0 +1,11 @@ +#!/bin/sh + +mkdir -p @CMAKE_CURRENT_BINARY_DIR@/images +for f in `ls @CMAKE_CURRENT_SOURCE_DIR@/images/*.svg` +do + @RSVG_COMMAND@ --width=32 --height=32 --output=images/`basename $f .svg`.png --format=png $f +done + +tquic -o buttons.h -embed buttons images/circle.png images/circle2.png images/close.png images/help.png images/keep_above.png images/keep_above_lit.png images/keep_below.png images/keep_below_lit.png images/maximize.png images/minimize.png images/restore.png images/splat.png images/unsplat.png images/window_background.png images/window_foreground.png + +sed -i -e "s/factory/bfactory/" buttons.h |