diff --git a/scripts/build-tensorflow-android.sh b/scripts/build-tensorflow-android.sh new file mode 100755 index 00000000..a2c07082 --- /dev/null +++ b/scripts/build-tensorflow-android.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" + +read -p "Did you run ./configure with iOS + Android in /tensorflow/ already? [yN]: " -n 1 -r +echo "" +if [[ $REPLY =~ ^[Yy]$ ]] +then + # Assumes the user ran ./configure in tensorflow/ already + cd tensorflow + + bazel build --config=android # -c opt --cxxopt=--std=c++17 //tensorflow/lite/ios:TensorFlowLiteC_framework + + cd .. + + cp -f -r tensorflow/bazel-bin/tensorflow/lite/android/ android/ + + echo "What now?" +fi diff --git a/scripts/build-tensorflow-ios.sh b/scripts/build-tensorflow-ios.sh index 791a3151..97cda86d 100755 --- a/scripts/build-tensorflow-ios.sh +++ b/scripts/build-tensorflow-ios.sh @@ -1,13 +1,16 @@ #!/bin/bash -echo "Did you run ./configure in ./tensorflow/ already?" -echo "Did you run ./configure in ./tensorflow/ already?" -echo "Did you run ./configure in ./tensorflow/ already?" -echo "Did you run ./configure in ./tensorflow/ already?" -echo "Did you run ./configure in ./tensorflow/ already?" -echo "Did you run ./configure in ./tensorflow/ already?" +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" +echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?" -read -p "Did you run ./configure in /tensorflow/ already? [yN]: " -n 1 -r +read -p "Did you run ./configure with iOS + Android in /tensorflow/ already? [yN]: " -n 1 -r +echo "" if [[ $REPLY =~ ^[Yy]$ ]] then # Assumes the user ran ./configure in tensorflow/ already