# rm -rf ~/foobuild
mkdir ~/foobuild

mkdir ~/foobuild/qtbase
cd ~/foobuild/qtbase
/usr/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/bin/gcc-10 -DCMAKE_CXX_COMPILER=/usr/bin/g++-10 -G Ninja -DFEATURE_developer_build=ON -DCMAKE_CXX_FLAGS=-Wfatal-errors -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_WITH_PCH=OFF /home/andreasbuhr/development/qtdev/qtbase
/usr/bin/cmake --build .

mkdir ~/foobuild/qtbase-android
cd ~/foobuild/qtbase-android
/usr/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/home/andreasbuhr/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DCMAKE_CXX_COMPILER=/home/andreasbuhr/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -GNinja -DCMAKE_TOOLCHAIN_FILE=/home/andreasbuhr/Android/Sdk/ndk/22.0.7026061/build/cmake/android.toolchain.cmake -DANDROID_SDK_ROOT=/home/andreasbuhr/Android/Sdk -DANDROID_ABI=arm64-v8a -DQT_HOST_PATH=/home/andreasbuhr/foobuild/qtbase -DFEATURE_developer_build=ON -DCMAKE_CXX_FLAGS=-Wfatal-errors -DQT_BUILD_EXAMPLES=ON /home/andreasbuhr/development/qtdev/qtbase
/usr/bin/cmake --build .
ninja analogclock_make_apk

mkdir ~/foobuild/qtdeclarative
cd ~/foobuild/qtdeclarative
/usr/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/bin/gcc-10 -DCMAKE_CXX_COMPILER=/usr/bin/g++-10 -G Ninja -DFEATURE_developer_build=ON -DCMAKE_CXX_FLAGS=-Wfatal-errors -DCMAKE_PREFIX_PATH=/home/andreasbuhr/foobuild/qtbase -DBUILD_WITH_PCH=OFF /home/andreasbuhr/development/qtdev/qtdeclarative
cmake --build .

mkdir ~/foobuild/qtdeclarative-android
cd ~/foobuild/qtdeclarative-android
/usr/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/home/andreasbuhr/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DCMAKE_CXX_COMPILER=/home/andreasbuhr/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -GNinja -DBUILD_WITH_PCH=OFF -DCMAKE_TOOLCHAIN_FILE=/home/andreasbuhr/Android/Sdk/ndk/22.0.7026061/build/cmake/android.toolchain.cmake -DANDROID_SDK_ROOT=/home/andreasbuhr/Android/Sdk -DANDROID_ABI=arm64-v8a -DQT_HOST_PATH=/home/andreasbuhr/foobuild/qtbase -DFEATURE_developer_build=ON -DCMAKE_CXX_FLAGS=-Wfatal-errors -DQT_BUILD_EXAMPLES=ON -DCMAKE_PREFIX_PATH=/home/andreasbuhr/foobuild/qtbase /home/andreasbuhr/development/qtdev/qtdeclarative

mkdir ~/foobuild/qtandroidextras-android
cd ~/foobuild/qtandroidextras-android
/usr/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/home/andreasbuhr/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DCMAKE_CXX_COMPILER=/home/andreasbuhr/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -GNinja -DBUILD_WITH_PCH=OFF -DCMAKE_TOOLCHAIN_FILE=/home/andreasbuhr/Android/Sdk/ndk/22.0.7026061/build/cmake/android.toolchain.cmake -DANDROID_SDK_ROOT=/home/andreasbuhr/Android/Sdk -DANDROID_ABI=arm64-v8a -DQT_HOST_PATH=/home/andreasbuhr/foobuild/qtbase -DFEATURE_developer_build=ON -DCMAKE_CXX_FLAGS=-Wfatal-errors -DQT_BUILD_EXAMPLES=OFF -DCMAKE_FIND_ROOT_PATH=/home/andreasbuhr/foobuild/qtbase-android -DANDROID_STL="c++_shared" /home/andreasbuhr/development/qtdev/qtandroidextras
cmake --build .

mkdir ~/foobuild/qtconnectivity-android
cd ~/foobuild/qtconnectivity-android
/usr/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/home/andreasbuhr/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DCMAKE_CXX_COMPILER=/home/andreasbuhr/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -GNinja -DBUILD_WITH_PCH=OFF -DCMAKE_TOOLCHAIN_FILE=/home/andreasbuhr/Android/Sdk/ndk/22.0.7026061/build/cmake/android.toolchain.cmake -DANDROID_SDK_ROOT=/home/andreasbuhr/Android/Sdk -DANDROID_ABI=arm64-v8a -DQT_HOST_PATH=/home/andreasbuhr/foobuild/qtbase -DFEATURE_developer_build=ON -DCMAKE_CXX_FLAGS=-Wfatal-errors -DQT_BUILD_EXAMPLES=ON -DCMAKE_FIND_ROOT_PATH=/home/andreasbuhr/foobuild/qtbase-android -DANDROID_STL="c++_shared" /home/andreasbuhr/development/qtdev/qtconnectivity
cmake --build .

ninja qml_chat_make_apk
