blob: 1bd6c7cb9c9bff54d88ae8d70d94f5fe28b3489a [file] [log] [blame]
#!/bin/bash
set -xe
#################################################################
# Make the host C++ project.
#################################################################
cmake -Bdebug -DCMAKE_BUILD_TYPE=Debug
pushd debug > /dev/null
make
#################################################################
# Make the guest Flutter project.
#################################################################
if [ ! -d myapp ]; then
flutter create myapp
fi
pushd myapp > /dev/null
#cp ../../main.dart lib/main.dart
flutter build bundle \
--local-engine-src-path ../../../../../ \
--local-engine=host_debug_unopt \
--local-engine-host=host_debug_unopt
popd > /dev/null
#################################################################
# Run the Flutter Engine Embedder
#################################################################
./embedder_example_vulkan ./myapp ../../../third_party/icu/common/icudtl.dat
popd > /dev/null