Update embedded resources management
BIN
tools/assets/icons/cburnett.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
tools/assets/icons/chesscom_8bits.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
tools/assets/icons/hide.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
tools/assets/icons/mat.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
tools/assets/icons/swap.png
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
tools/assets/icons/visible.png
Normal file
After Width: | Height: | Size: 6 KiB |
BIN
tools/assets/icons/zoomin.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
tools/assets/icons/zoomout.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
|
@ -3,8 +3,14 @@
|
|||
|
||||
########## RESOURCES ##########
|
||||
ressources=$(cat <<-EndOfResources
|
||||
assets/boards/chesscom_8bits.png
|
||||
assets/pieces/cburnett.png
|
||||
assets/icons/hide.png
|
||||
assets/icons/mat.png
|
||||
assets/icons/ochess.png
|
||||
assets/icons/ochess.svg
|
||||
assets/icons/swap.png
|
||||
assets/icons/zoomin.png
|
||||
assets/icons/zoomout.png
|
||||
EndOfResources
|
||||
)
|
||||
###############################
|
||||
|
@ -28,9 +34,9 @@ do
|
|||
name_std=${name}_${ext}.hpp # Header name standard
|
||||
out="${dst}/${name_std}"
|
||||
echo "- Generating ${name_std} resource..."
|
||||
bin2c "$res" "${name}_${ext}" # TODO: Apply!
|
||||
bin2c "$res" "${name}_${ext}" > "$out"
|
||||
[ -z "$includes" ] && includes="${name_std}" || includes="${includes} ${name_std}"
|
||||
done
|
||||
echo "Please add the following includes to binres.hpp:"
|
||||
echo "Please update the binres.cpp and binres.hpp to reflect these changes."
|
||||
echo "$includes"|tr "[:space:]" "\n"|awk '{print("#include \""$1"\"")}'
|
||||
|
||||
|
|