Skip to content

Commit

Permalink
Add Eigen 3.2 library to build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Feb 24, 2015
1 parent f4a4820 commit 531660a
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions scripts/build-shotcut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ function to_key {
x265)
echo 13
;;
eigen)
echo 14
;;
*)
echo UNKNOWN
;;
Expand Down Expand Up @@ -328,7 +331,7 @@ function set_globals {
SUBDIRS="frei0r $SUBDIRS"
fi
if test "$ENABLE_MOVIT" = 1 && test "$MOVIT_HEAD" = 1 -o "$MOVIT_REVISION" != ""; then
SUBDIRS="libepoxy movit $SUBDIRS"
SUBDIRS="libepoxy eigen movit $SUBDIRS"
fi
if test "$FFMPEG_SUPPORT_H264" = 1 && test "$X264_HEAD" = 1 -o "$X264_REVISION" != ""; then
SUBDIRS="x264 $SUBDIRS"
Expand Down Expand Up @@ -372,6 +375,7 @@ function set_globals {
REPOLOCS[11]="git://github.com/anholt/libepoxy.git"
REPOLOCS[12]="git://git.opus-codec.org/opus.git"
REPOLOCS[13]="https://github.com/videolan/x265"
REPOLOCS[14]="http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz"

# REPOTYPE Array holds the repo types. (Yes, this might be redundant, but easy for me)
REPOTYPES[0]="git"
Expand All @@ -388,6 +392,7 @@ function set_globals {
REPOTYPES[11]="git"
REPOTYPES[12]="git"
REPOTYPES[13]="git"
REPOTYPES[14]="http-tgz"

# And, set up the revisions
REVISIONS[0]=""
Expand Down Expand Up @@ -441,6 +446,7 @@ function set_globals {
if test 0 = "$X265_HEAD" -a "$X265_REVISION" ; then
REVISIONS[13]="$X265_REVISION"
fi
REVISIONS[14]="eigen-eigen-10219c95fe65"

# Figure out the number of cores in the system. Used both by make and startup script
if test "$TARGET_OS" = "Darwin"; then
Expand Down Expand Up @@ -720,6 +726,9 @@ function set_globals {
fi
LDFLAGS_[13]=$LDFLAGS

#######
# eigen
CONFIG[14]="cmake -DCMAKE_INSTALL_PREFIX=$FINAL_INSTALL_DIR .."
}

######################################################################
Expand Down Expand Up @@ -803,8 +812,8 @@ function prepare_feedback {
NUMSTEPS=$(( $NUMSTEPS + 1 ))
fi
if test 1 = "$ENABLE_MOVIT" ; then
debug Adding 2 steps for get movit and libepoxy
NUMSTEPS=$(( $NUMSTEPS + 2 ))
debug Adding 3 steps for get movit, libepoxy, and eigen
NUMSTEPS=$(( $NUMSTEPS + 3 ))
fi
if test 1 = "$ENABLE_WEBVFX" ; then
debug Adding 1 step for get webvfx
Expand All @@ -819,8 +828,8 @@ function prepare_feedback {
NUMSTEPS=$(( $NUMSTEPS + 1 ))
fi
if test 1 = "$ENABLE_MOVIT" ; then
debug Adding 2 steps for clean movit and libepoxy
NUMSTEPS=$(( $NUMSTEPS + 2 ))
debug Adding 3 steps for clean movit, libepoxy, and eigen
NUMSTEPS=$(( $NUMSTEPS + 3 ))
fi
if test 1 = "$ENABLE_WEBVFX" ; then
debug Adding 1 step for clean webvfx
Expand All @@ -835,8 +844,8 @@ function prepare_feedback {
NUMSTEPS=$(( $NUMSTEPS + 3 ))
fi
if test 1 = "$ENABLE_MOVIT" ; then
debug Adding 6 steps for compile-install movit and libepoxy
NUMSTEPS=$(( $NUMSTEPS + 6 ))
debug Adding 9 steps for compile-install movit, libepoxy, and eigen
NUMSTEPS=$(( $NUMSTEPS + 9 ))
fi
if test 1 = "$ENABLE_WEBVFX" ; then
debug Adding 3 steps for compile-install webvfx
Expand Down Expand Up @@ -1404,6 +1413,12 @@ function configure_compile_install_subproject {
cd source
fi

# Special hack for eigen
if test "eigen" = "$1"; then
cmd mkdir build 2> /dev/null
cmd cd build
fi

cmd `lookup CONFIG $1` || die "Unable to configure $1"
feedback_progress Done configuring $1

Expand Down

0 comments on commit 531660a

Please sign in to comment.