Cdroid/allwinnerx5.sh
2022-01-14 12:35:58 +08:00

28 lines
565 B
Bash
Executable File

if [ $# -gt 0 ]
then
mkdir -p out-allwinnerr
pushd out-allwinnerr
TYPE=Release
else
mkdir -p out-allwinner
pushd out-allwinner
TYPE=Debug
fi
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/allwinner-x5toolchain.cmake\
-DCDROID_CHIPSET=allwinner -DENABLE_RFB=OFF \
-DCMAKE_INSTALL_PREFIX=./ \
-DCMAKE_BUILD_TYPE=${TYPE} \
..
popd
if [ ! -d "src/gui" ]; then
pushd deps/lib
mv libcairo.a libcairo_static.a
mv libjrtp.a libjrtplib-static.a
mv libgui.a libgui_static.a
mv libdvbepg.a libdvbepg_static.a
mv libtvhal.a libtvhal_static.a
popd
fi