myou-engine-template-project/scripts/update_android_files.sh
2024-08-23 17:08:24 +02:00

11 lines
400 B
Bash

# TODO: port this to nimscript
# TODO: modify the CMake file instead of copying to clipboard
# Build for android like this:
# nim c -c --os:android --cpu:arm64 src/main.nim
# and then run this script to update the files in CMakeLists.txt
# (the result will be copied to clipboard)
OUT_NAME=game
cat tmp/android/${OUT_NAME}.json|grep '\.\(c\|cpp\)",' | sed -e 's/,$//' -e 's/@/\\@/g' | xsel -b