add android flags to ./build.sh
diff --git a/build.sh b/build.sh index 1b13624..bc183b4 100755 --- a/build.sh +++ b/build.sh
@@ -4,7 +4,6 @@ pushd build &>/dev/null - while getopts p: flag do case "${flag}" in @@ -23,10 +22,12 @@ echo build.sh - build debug library echo build.sh clean - clean the build echo build.sh release - build release library - echo build.sh release -p ios - build release ios library + echo build.sh -p ios release - build release ios library + echo build.sh -p android release - build release android library exit else build() { + echo "Building Rive for platform=$platform option=$OPTION" PREMAKE="premake5 gmake2 $1" eval $PREMAKE if [ "$OPTION" = "clean" ] @@ -61,6 +62,9 @@ # print all the available architectures lipo -info ios/bin/$config/librive_fat.a ;; + android) + build "--os=android" + ;; *) build ;;
diff --git a/skia/renderer/build.sh b/skia/renderer/build.sh index 5f0ab48..e8f2c62 100755 --- a/skia/renderer/build.sh +++ b/skia/renderer/build.sh
@@ -29,10 +29,13 @@ echo build.sh - build debug library echo build.sh clean - clean the build echo build.sh release - build release library - echo build.sh release -p ios - build release ios library + echo build.sh -p ios release - build release ios library + echo build.sh -p android release - build release android library exit else build() { + echo "Building Skia Renderer for $platform option=$OPTION" + PREMAKE="premake5 gmake2 $1" eval $PREMAKE if [ "$OPTION" = "clean" ] @@ -67,6 +70,10 @@ # print all the available architectures lipo -info ios/bin/$config/librive_skia_renderer_fat.a ;; + android) + + build "--os=android" + ;; *) build ;;