download_and_compile.sh: added --compositor option.
This commit is contained in:
parent
14ee759409
commit
a2eb0d7b4c
@ -364,6 +364,7 @@ function _usage() {
|
|||||||
echo " doing the same for SIMGEAR (e.g., if doing repeated TERRAGEAR"
|
echo " doing the same for SIMGEAR (e.g., if doing repeated TERRAGEAR"
|
||||||
echo " builds and you know your SIMGEAR is already fine and up-to-date)."
|
echo " builds and you know your SIMGEAR is already fine and up-to-date)."
|
||||||
echo " -s compile only the last known stable versions"
|
echo " -s compile only the last known stable versions"
|
||||||
|
echo " --compositor buld fgfs with compositor enabled."
|
||||||
}
|
}
|
||||||
|
|
||||||
#######################################################
|
#######################################################
|
||||||
@ -470,7 +471,7 @@ if [[ `uname` == 'OpenBSD' ]]; then
|
|||||||
fi
|
fi
|
||||||
TEMP=$($getopt -o '+shc:p:a:d:r:j:O:ib:' \
|
TEMP=$($getopt -o '+shc:p:a:d:r:j:O:ib:' \
|
||||||
--longoptions git-clone-default-proto:,git-clone-site-params:,help \
|
--longoptions git-clone-default-proto:,git-clone-site-params:,help \
|
||||||
--longoptions package-manager:,sudo:,ignore-intercomponent-deps,version \
|
--longoptions package-manager:,sudo:,ignore-intercomponent-deps,compositor,version \
|
||||||
-n "$PROGNAME" -- "$@")
|
-n "$PROGNAME" -- "$@")
|
||||||
|
|
||||||
case $? in
|
case $? in
|
||||||
@ -547,6 +548,7 @@ while true; do
|
|||||||
-O) OOPTION=" -O$2"; shift 2 ;;
|
-O) OOPTION=" -O$2"; shift 2 ;;
|
||||||
-i) OPENRTI="OPENRTI"; shift ;;
|
-i) OPENRTI="OPENRTI"; shift ;;
|
||||||
-b) BUILD_TYPE="$2"; shift 2 ;;
|
-b) BUILD_TYPE="$2"; shift 2 ;;
|
||||||
|
--compositor) COMPOSITOR="-DENABLE_COMPOSITOR=ON"; shift ;;
|
||||||
-h|--help) _usage; exit 0 ;;
|
-h|--help) _usage; exit 0 ;;
|
||||||
--version) _printVersion; exit 0 ;;
|
--version) _printVersion; exit 0 ;;
|
||||||
--) shift; break ;;
|
--) shift; break ;;
|
||||||
@ -626,6 +628,7 @@ _log "OOPTION=$OOPTION"
|
|||||||
_log "BUILD_TYPE=$BUILD_TYPE"
|
_log "BUILD_TYPE=$BUILD_TYPE"
|
||||||
_log "SG_CMAKEARGS=$SG_CMAKEARGS"
|
_log "SG_CMAKEARGS=$SG_CMAKEARGS"
|
||||||
_log "FG_CMAKEARGS=$FG_CMAKEARGS"
|
_log "FG_CMAKEARGS=$FG_CMAKEARGS"
|
||||||
|
_log "COMPOSITOR=$COMPOSITOR"
|
||||||
_log "DIRECTORY=$CBD"
|
_log "DIRECTORY=$CBD"
|
||||||
|
|
||||||
if [ "$STABLE" = "STABLE" ]; then
|
if [ "$STABLE" = "STABLE" ]; then
|
||||||
@ -1047,6 +1050,7 @@ if _elementIn "FGFS" "${WHATTOBUILD[@]}" || \
|
|||||||
-DVERBOSE=1"
|
-DVERBOSE=1"
|
||||||
fi
|
fi
|
||||||
"$CMAKE" -DCMAKE_BUILD_TYPE="$BUILD_TYPE" \
|
"$CMAKE" -DCMAKE_BUILD_TYPE="$BUILD_TYPE" \
|
||||||
|
$COMPOSITOR \
|
||||||
-DENABLE_FLITE=ON \
|
-DENABLE_FLITE=ON \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_DIR_FGFS" \
|
-DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_DIR_FGFS" \
|
||||||
-DCMAKE_PREFIX_PATH="$INSTALL_DIR_SIMGEAR;$INSTALL_DIR_OSG;$INSTALL_DIR_OPENRTI;$INSTALL_DIR_PLIB" \
|
-DCMAKE_PREFIX_PATH="$INSTALL_DIR_SIMGEAR;$INSTALL_DIR_OSG;$INSTALL_DIR_OPENRTI;$INSTALL_DIR_PLIB" \
|
||||||
|
Loading…
Reference in New Issue
Block a user