mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
TS100: move translation generation to Makefile
Translation.cpp is now automatically regenerated when necessary. This frees the developer from having to remember to execute build.sh after the translations have changed. Translation.cpp has been moved from Core/Src/ to the new Core/Gen/ as otherwise it would end up twice in SOURCE, once through the source discovery and once through the explicit entry.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
TRANSLATION_DIR="../../Translation Editor"
|
||||
TRANSLATION_DIR="../../Translations"
|
||||
TRANSLATION_SCRIPT="make_translation.py"
|
||||
|
||||
# AVAILABLE_LANGUAGES will be calculating according to json files in $TRANSLATION_DIR
|
||||
@@ -116,10 +116,6 @@ fi
|
||||
echo "*********************************************"
|
||||
|
||||
if [ ${#BUILD_LANGUAGES[@]} -gt 0 ] && [ ${#BUILD_MODELS[@]} -gt 0 ]; then
|
||||
echo "Generating Translation.cpp"
|
||||
python3 "$TRANSLATION_DIR/$TRANSLATION_SCRIPT" "$TRANSLATION_DIR"
|
||||
checkLastCommand
|
||||
|
||||
echo "Cleaning previous builds"
|
||||
rm -rf Hexfile/ >/dev/null
|
||||
rm -rf Objects/ >/dev/null
|
||||
|
||||
Reference in New Issue
Block a user