Blame autobuild/synfigstudio-linux-cmake.sh

2c0523
#!/bin/bash
2c0523
7388f3
set -e
7388f3
7388f3
export CC="ccache gcc"
7388f3
export CXX="ccache g++"
7388f3
7388f3
#BUILD_FLAGS=(-GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="-fdiagnostics-color")
7388f3
CXX_FLAGS="-fdiagnostics-color"
7388f3
BUILD_FLAGS="-GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS=\"${CXX_FLAGS}\""
7388f3
#echo ${BUILD_FLAGS}
7388f3
#exit
7388f3
2c0523
cd ..
2c0523
pushd ETL
7388f3
mkdir -p build && pushd build
7388f3
cmake .. ${BUILD_FLAGS}
2c0523
cmake --build . -- all test
2c0523
sudo cmake --build . -- install
2c0523
popd # build
2c0523
popd # ETL
7388f3
2c0523
pushd synfig-core
7388f3
mkdir -p build && pushd build
7388f3
cmake .. ${BUILD_FLAGS}
2c0523
cmake --build . -- all
2c0523
sudo cmake --build . -- install
2c0523
popd # build
2c0523
popd # synfig-core
7388f3
2c0523
pushd synfig-studio
7388f3
mkdir -p build && pushd build
7388f3
cmake .. ${BUILD_FLAGS}
2c0523
cmake --build . -- all
2c0523
# this will take a while; alternatively, you can move/copy required images
2c0523
# to build/images directory and skip this step
2c0523
cmake --build . -- build_images
2c0523
sudo cmake --build . -- install
2c0523
popd # build
2c0523
popd # synfig-studio