File: synfigstudio-linux-cmake.sh

package info (click to toggle)
synfigstudio 1.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 162,048 kB
  • sloc: cpp: 208,474; javascript: 25,487; ansic: 13,216; python: 7,509; sh: 6,391; makefile: 2,999; objc: 1,400; csh: 486; perl: 238; ruby: 73; xml: 11
file content (40 lines) | stat: -rwxr-xr-x 948 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash

set -e

export CC="ccache gcc"
export CXX="ccache g++"

#BUILD_FLAGS=(-GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="-fdiagnostics-color")
CXX_FLAGS="-fdiagnostics-color"
BUILD_FLAGS="-GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS=\"${CXX_FLAGS}\""
#echo ${BUILD_FLAGS}
#exit

cd ..
pushd ETL
mkdir -p build && pushd build
cmake .. ${BUILD_FLAGS}
cmake --build . -- all test
sudo cmake --build . -- install
popd # build
popd # ETL

pushd synfig-core
mkdir -p build && pushd build
cmake .. ${BUILD_FLAGS}
cmake --build . -- all
sudo cmake --build . -- install
popd # build
popd # synfig-core

pushd synfig-studio
mkdir -p build && pushd build
cmake .. ${BUILD_FLAGS}
cmake --build . -- all
# this will take a while; alternatively, you can move/copy required images
# to build/images directory and skip this step
cmake --build . -- build_images
sudo cmake --build . -- install
popd # build
popd # synfig-studio