forked from lynckia/licode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build script and generation of Eclipse CDT (lynckia#1215)
- Loading branch information
Showing
1 changed file
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
BIN_DIR="build" | ||
if [ -d $BIN_DIR ]; then | ||
cd $BIN_DIR | ||
# Set to Debug to be able to debug in Eclipse | ||
cmake -G"Eclipse CDT4 - Unix Makefiles" -D ERIZO_BUILD_TYPE=debug ../src | ||
echo "Done" | ||
cd .. | ||
else | ||
echo "Error, build directory does not exist, run generateProject.sh first" | ||
fi | ||
SCRIPT=`pwd`/$0 | ||
FILENAME=`basename $SCRIPT` | ||
PATHNAME=`dirname $SCRIPT` | ||
BASE_BIN_DIR="build" | ||
|
||
|
||
generateVersion() { | ||
echo "generating $1" | ||
BIN_DIR="$BASE_BIN_DIR/$1" | ||
if [ -d $BIN_DIR ]; then | ||
cd $BIN_DIR | ||
else | ||
mkdir -p $BIN_DIR | ||
cd $BIN_DIR | ||
fi | ||
cmake ../../src "-DERIZO_BUILD_TYPE=$1" -G"Eclipse CDT4 - Unix Makefiles" | ||
cd $PATHNAME | ||
} | ||
|
||
|
||
generateVersion debug | ||
generateVersion release |