Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build script and generation of Eclipse CDT #1215

Merged
merged 4 commits into from
May 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 22 additions & 11 deletions erizo/generateEclipseProject.sh
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