File: pathconfig.sh

package info (click to toggle)
performous-composer 2.0%2B20181009-gitbeeea23-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 668 kB
  • sloc: cpp: 5,646; python: 153; sh: 42; makefile: 13
file content (24 lines) | stat: -rwxr-xr-x 542 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# This is sourced by the other scripts to determine some paths.
# Feel free to modify the variables at the top of this file.

SOURCE_DIR="`pwd`/../.."
BUILD_DIR="`pwd`/build"
INSTALL_DIR="$BUILD_DIR/stage"


# You shouldn't need to touch anything below this

CROSS_ID=i686-pc-mingw32

CROSS_CXX=`which ${CROSS_ID}"-g++"`

if [ $? -ne 0 ]; then
	echo "Couldn't find cross-compiler ${CROSS_ID}-g++!"
	echo "Please add it to your PATH."
	exit 1
fi

CROSS_PREFIX=`dirname "$CROSS_CXX"`/..
CROSS_PREFIX=`readlink -f "$CROSS_PREFIX"`