Handle self, static, super
[hiphop-php.git] / hphp / hack / configure
blob7258cb3b87959d22f07dc41520f4cc87ac8c983d
1 #!/usr/bin/env bash
3 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../../"
5 if [ "$1" = '--help' ] || [ "$1" = '-h' ]; then
6 echo "usage: $0 -Dvariable=argument ..."
7 echo ''
8 echo 'Variables: '
9 options=`cat $DIR/CMake/Options.cmake | grep option | sed -e 's/^[ \t]*//' |
10 sed 's/\s*option(/ -D/; s/ "/=ON|OFF : /;
11 s/" / : Default: /; s/)$//' | sort`
12 options=" -DCMAKE_BUILD_TYPE=Debug|Release|RelWithDebInfo|MinSizeRel : Sets build type \
13 : Default: Release
14 $options"
15 if which column > /dev/null; then
16 options=`echo "$options" | column -t -s : `
18 echo "$options"
19 exit 2
22 options+=" -DCMAKE_MODULE_PATH=$DIR/CMake"
24 cmake $options "$@" .