File: build-binary

package info (click to toggle)
ccache 4.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,188 kB
  • sloc: cpp: 47,282; asm: 28,570; sh: 8,674; ansic: 5,357; python: 685; perl: 68; makefile: 23
file content (20 lines) | stat: -rwxr-xr-x 347 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -eux

: ${CMAKE_PARAMS:=}

mkdir -p "build"
cd "build"
cmake \
    -D CMAKE_BUILD_TYPE=Release \
    -D DEPS=DOWNLOAD \
    -D ENABLE_TESTING=OFF \
    ${CMAKE_PARAMS} \
    ..
cmake --build .
DESTDIR=$(pwd)/../install cmake --install . --strip

cd ..
find install -name 'ccache*' -type f -exec mv '{}' install ';'
find install -ls