remove IconFontCppHeaders module, new update imicons script

This commit is contained in:
BlackMATov
2020-10-30 07:27:11 +07:00
parent 7cfc8fdac6
commit 6794286d38
10 changed files with 45 additions and 40 deletions

View File

@@ -12,25 +12,34 @@ mkdir -p $SOURCES_DIR
mkdir -p $HEADERS_RDPARTY_DIR
mkdir -p $SOURCES_RDPARTY_DIR
HEADERS_ICONS_DIR=$HEADERS_RDPARTY_DIR/icons
SOURCES_ICONS_DIR=$SOURCES_RDPARTY_DIR/icons
SOURCES_ICONS_BUILD_DIR=$SOURCES_RDPARTY_DIR/icons/build
HEADERS_IMICONS_DIR=$HEADERS_RDPARTY_DIR/imicons
SOURCES_IMICONS_DIR=$SOURCES_RDPARTY_DIR/imicons
SOURCES_IMICONS_BUILD_DIR=$SOURCES_IMICONS_DIR/build
mkdir -p $HEADERS_ICONS_DIR
cp -fv $MODULES_DIR/IconFontCppHeaders/IconsFontAwesome5.h $HEADERS_ICONS_DIR/icon_fa.h
cp -fv $MODULES_DIR/IconFontCppHeaders/IconsMaterialDesign.h $HEADERS_ICONS_DIR/icon_md.h
mkdir -p $HEADERS_IMICONS_DIR
mkdir -p $SOURCES_IMICONS_DIR
mkdir -p $SOURCES_IMICONS_BUILD_DIR
mkdir -p $SOURCES_ICONS_BUILD_DIR
cp -fv $MODULES_DIR/imgui/misc/fonts/binary_to_compressed_c.cpp $SOURCES_ICONS_BUILD_DIR/binary_to_compressed_c.cpp
wget -N -O $SOURCES_ICONS_BUILD_DIR/fa_solid_900.ttf https://github.com/FortAwesome/Font-Awesome/raw/master/webfonts/fa-solid-900.ttf
wget -N -O $SOURCES_ICONS_BUILD_DIR/fa_regular_400.ttf https://github.com/FortAwesome/Font-Awesome/raw/master/webfonts/fa-regular-400.ttf
wget -N -O $SOURCES_ICONS_BUILD_DIR/materialicons_regular.ttf https://github.com/google/material-design-icons/raw/master/iconfont/MaterialIcons-Regular.ttf
cp -fv $MODULES_DIR/imgui/misc/fonts/binary_to_compressed_c.cpp $SOURCES_IMICONS_BUILD_DIR/binary_to_compressed_c.cpp
pushd $SOURCES_IMICONS_BUILD_DIR
wget -q --show-progress -N https://github.com/FortAwesome/Font-Awesome/raw/master/webfonts/fa-solid-900.ttf
wget -q --show-progress -N https://github.com/FortAwesome/Font-Awesome/raw/master/webfonts/fa-regular-400.ttf
wget -q --show-progress -N https://github.com/google/material-design-icons/raw/master/font/MaterialIcons-Regular.ttf
wget -q --show-progress -N https://raw.githubusercontent.com/juliettef/IconFontCppHeaders/master/IconsFontAwesome5.h
wget -q --show-progress -N https://raw.githubusercontent.com/juliettef/IconFontCppHeaders/master/IconsMaterialDesign.h
pushd $SOURCES_ICONS_BUILD_DIR
clang++ binary_to_compressed_c.cpp -o binary_to_compressed_c
./binary_to_compressed_c fa_solid_900.ttf fa_solid_900 > ../fa_solid_900.h
./binary_to_compressed_c fa_regular_400.ttf fa_regular_400 > ../fa_regular_400.h
./binary_to_compressed_c materialicons_regular.ttf materialicons_regular > ../materialicons_regular.h
./binary_to_compressed_c fa-solid-900.ttf fa_solid > fa_solid.bin.h
./binary_to_compressed_c fa-regular-400.ttf fa_regular > fa_regular.bin.h
./binary_to_compressed_c MaterialIcons-Regular.ttf md_regular > md_regular.bin.h
popd
rm -rf $SOURCES_ICONS_BUILD_DIR
cp -fv $SOURCES_IMICONS_BUILD_DIR/fa_solid.bin.h $SOURCES_IMICONS_DIR
cp -fv $SOURCES_IMICONS_BUILD_DIR/fa_regular.bin.h $SOURCES_IMICONS_DIR
cp -fv $SOURCES_IMICONS_BUILD_DIR/md_regular.bin.h $SOURCES_IMICONS_DIR
cp -fv $SOURCES_IMICONS_BUILD_DIR/IconsFontAwesome5.h $HEADERS_IMICONS_DIR/icons_fa.h
cp -fv $SOURCES_IMICONS_BUILD_DIR/IconsMaterialDesign.h $HEADERS_IMICONS_DIR/icons_md.h
rm -rf $SOURCES_IMICONS_BUILD_DIR