
basedir=`pwd`
mkdir qtbase
pushd 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 .
popd

mkdir qtbase-android
pushd qtbase-android
/usr/bin/cmake -DCMAKE_BUILD_TYPE=Debug -GNinja -DCMAKE_TOOLCHAIN_FILE=/home/andreasbuhr/Android/Sdk/ndk/21.3.6528147/build/cmake/android.toolchain.cmake -DANDROID_SDK_ROOT=/home/andreasbuhr/Android/Sdk -DQT_HOST_PATH=$basedir/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
popd

mkdir qtdeclarative
pushd 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=$basedir/qtbase -DBUILD_WITH_PCH=OFF /home/andreasbuhr/development/qtdev/qtdeclarative
cmake --build .
popd

mkdir qtdeclarative-android
pushd qtdeclarative-android
/usr/bin/cmake -GNinja -DWARNINGS_ARE_ERRORS=OFF -DBUILD_WITH_PCH=OFF -DCMAKE_TOOLCHAIN_FILE=/home/andreasbuhr/Android/Sdk/ndk/21.3.6528147/build/cmake/android.toolchain.cmake -DANDROID_SDK_ROOT=/home/andreasbuhr/Android/Sdk  -DANDROID_STL="c++_shared" -DQT_HOST_PATH=$basedir/qtbase -DCMAKE_FIND_ROOT_PATH=$basedir/qtbase-android -DFEATURE_developer_build=ON -DCMAKE_CXX_FLAGS=-Wfatal-errors -DQT_BUILD_EXAMPLES=ON /home/andreasbuhr/development/qtdev/qtdeclarative
cmake --build .
popd


