aboutsummaryrefslogtreecommitdiff
path: root/docker_build.sh
blob: 6ee1b9600c3a79cf89c6d513f01bb5124055f070 (plain)
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
#!/bin/bash

TARGET=$1

CI_PROJECT_DIR=$(pwd)
CI_BUILD_NAME=${TARGET}

BASE_NAME="canvas.lv2"
PKG_CONFIG_PATH="/opt/lv2/lib/pkgconfig:/opt/${CI_BUILD_NAME}/lib/pkgconfig"
TOOLCHAIN_FILE="${CI_PROJECT_DIR}/cmake/${CI_BUILD_NAME}.cmake"

rm -rf ${TARGET}
mkdir -p ${TARGET}
pushd ${TARGET}
	PKG_CONFIG_PATH=${PKG_CONFIG_PATH} cmake \
    -DCAIRO_INCLUDE_DIRS="/opt/${CI_BUILD_NAME}/include" \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=${CI_PROJECT_DIR} \
		-DPLUGIN_DEST="${BASE_NAME}-$(cat ../VERSION)/${CI_BUILD_NAME}/${BASE_NAME}" \
		-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \
		..
	make -j4
	make install
	#ARGS='-VV' make test
popd